First page Back Continue Last page Overview Graphics
Really basic Apache performance tuning: use RAM wisely
you@box:~$ ab http://yoursite.com/ -c5 -t300 2>&1 > /dev/null &
you@box:~$ ps waux | head -n 1 ; ps waux | grep apache2 | grep -v grep
USER PID %CPU %MEM VSZ RSS COMMAND
www-data 21381 0.1 4.8 221364 86644 /usr/sbin/apache2 -k start
www-data 22235 0.3 5.0 222128 90380 /usr/sbin/apache2 -k start
www-data 22236 0.1 4.9 223384 88844 /usr/sbin/apache2 -k start
www-data 22237 0.1 4.6 222888 83760 /usr/sbin/apache2 -k start
www-data 24789 0.1 4.1 222340 73992 /usr/sbin/apache2 -k start
you@box:~$ ps wwaux | grep pach | grep -v grep | awk '{s+=($6/1024)} END {print (s/NR)" MB"}'
44.0575 MB
you@box:~$ free -m
total used free
Mem: 7974 7646 328
-/+ buffers/cache: 3662 4312
Swap: 2047 58 1988