Linode OOM, IO Spikes and CPU Spikes

My website has of late been experiencing some very in consistant spikes in the I/O rate, and the CPU even though my traffic has been constant all the time.

I initially looked at and implemented the recommendations made by linode performance recommendations: http://library.linode.com/troubleshooti … networking">http://library.linode.com/troubleshooting/memory-networking

However this did not solve the issue. I am new to server and network admin diagnostic so will be happy to recieve any recommendations and help to get this sorted as my site has been down for nearly the whole day. To get it back up I constantly have to restart the server. Restarts have been made at least 10 times in similar days.

I have been able to start off with some data collection that I run few days back and below is the snap shot of the data BEFORE the server went down.

Apologies for the cloggin up of the post but I want to give as much information to see if any one can help..

I have been able to run 4 commands on the box prior to it falling over this morning.

1 Top command which gave.

top - 09:37:39 up 1:43, 4 users, load average: 11.23, 2.77, 1.01

Tasks: 109 total, 2 running, 107 sleeping, 0 stopped, 0 zombie

Cpu(s): 0.7%us, 4.1%sy, 0.0%ni, 19.4%id, 75.6%wa, 0.0%hi, 0.0%si, 0.2%st

Mem: 874852k total, 856156k used, 18696k free, 424k buffers

Swap: 262140k total, 262136k used, 4k free, 16392k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

269 root 20 0 0 0 0 S 11 0.0 0:02.75 kswapd0

2034 mysql 20 0 116m 15m 336 S 5 1.8 0:30.95 mysqld

3094 root 20 0 9736 2840 872 D 1 0.3 1:02.54 iotop

3572 root 20 0 9420 2592 876 S 1 0.3 0:55.34 iotop

3620 tomcat6 20 0 263m 8700 40 S 1 1.0 0:07.16 java

4485 www-data 20 0 64676 33m 1168 D 1 3.9 0:01.88 apache2

4510 www-data 20 0 67772 34m 1268 D 1 4.1 0:00.72 apache2

3862 www-data 20 0 86560 37m 592 R 1 4.4 0:06.97 apache2

3859 www-data 20 0 70400 26m 524 D 1 3.2 0:05.71 apache2

3890 www-data 20 0 58672 2856 620 D 1 0.3 0:04.79 apache2

4486 www-data 20 0 69808 37m 676 D 1 4.4 0:02.14 apache2

4502 www-data 20 0 73908 38m 948 D 1 4.6 0:01.10 apache2

4509 www-data 20 0 63404 30m 1272 S 1 3.6 0:00.67 apache2

4511 www-data 20 0 38308 7472 784 D 1 0.9 0:00.18 apache2

4515 root 20 0 17516 1724 388 D 1 0.2 0:00.07 miniserv.pl

4519 root 20 0 17516 1696 344 D 1 0.2 0:00.03 miniserv.pl

4488 www-data 20 0 69564 37m 848 D 0 4.4 0:01.60 apache2

4490 www-data 20 0 58592 27m 728 D 0 3.2 0:00.94 apache2

4500 www-data 20 0 74420 39m 812 D 0 4.6 0:01.11 apache2

4501 www-data 20 0 74428 39m 700 D 0 4.6 0:01.06 apache2

4516 root 20 0 5732 164 0 D 0 0.0 0:00.03 cleanup

4517 root 20 0 5900 184 0 D 0 0.0 0:00.05 smtpd

2103 ntp 20 0 4460 108 56 S 0 0.0 0:00.40 ntpd

2215 root 20 0 33344 808 116 S 0 0.1 0:00.51 apache2

2302 root 20 0 12996 136 0 S 0 0.0 0:00.46 monit

2715 root 20 0 17516 704 0 D 0 0.1 0:00.59 miniserv.pl

4058 root 20 0 2572 328 136 R 0 0.0 0:01.41 top

2 iotop -a -o -t -b | tee output.txt (all these are the last logs created prior to fall over)

Total DISK READ: 64.60 M/s | Total DISK WRITE: 341.68 K/s

TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND

09:37:40 4510 be/4 www-data 6.66 M 0.00 B 4.00 % 75.64 % apache2 -k start

09:37:40 4486 be/4 www-data 5.73 M 4.00 K 0.33 % 65.65 % apache2 -k start

09:37:40 269 be/4 root 0.00 B 0.00 B 0.00 % 0.65 % [kswapd0]

09:37:40 4488 be/4 www-data 6.30 M 0.00 B 8.35 % 63.68 % apache2 -k start

09:37:40 4485 be/4 www-data 12.72 M 0.00 B 4.02 % 61.15 % apache2 -k start

09:37:40 4509 be/4 www-data 10.01 M 0.00 B 13.65 % 66.26 % apache2 -k start

09:37:40 4517 be/4 root 15.68 M 0.00 B 0.00 % 99.32 % smtpd -n smtp -t inet -u -c -o stress=

09:37:40 4501 be/4 www-data 8.89 M 0.00 B 7.66 % 50.16 % apache2 -k start

09:37:40 4516 be/4 root 17.10 M 0.00 B 0.00 % 95.61 % cleanup -z -t unix -u -c

09:37:40 4498 be/4 www-data 5.81 M 0.00 B 5.05 % 47.37 % apache2 -k start

09:37:40 3859 be/4 www-data 4.87 M 440.00 K 0.04 % 0.75 % apache2 -k start

09:37:40 4502 be/4 www-data 5.91 M 0.00 B 9.58 % 45.69 % apache2 -k start

09:37:40 3638 be/4 tomcat6 42.51 M 4.00 K 0.15 % 0.44 % java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

09:37:40 4515 be/4 root 27.09 M 0.00 B 39.20 % 60.46 % webmincron.pl

09:37:40 3857 be/4 mysql 12.88 M 760.00 K 0.02 % 0.68 % mysqld

09:37:40 4500 be/4 www-data 6.83 M 0.00 B 19.07 % 41.70 % apache2 -k start

09:37:40 3876 be/4 mysql 23.16 M 348.00 K 0.02 % 0.60 % mysqld

09:37:40 3879 be/4 mysql 12.08 M 132.00 K 0.04 % 0.60 % mysqld

09:37:40 4495 be/4 www-data 1744.00 K 0.00 B 6.55 % 33.27 % apache2 -k start

09:37:40 3864 be/4 mysql 15.96 M 544.00 K 0.01 % 0.51 % mysqld

09:37:40 3878 be/4 mysql 14.26 M 308.00 K 0.03 % 0.50 % mysqld

09:37:40 3094 be/4 root 26.31 M 0.00 B 0.01 % 0.30 % python /usr/bin/iotop -ao

09:37:40 4496 be/4 www-data 1876.00 K 0.00 B 12.52 % 30.13 % apache2 -k start

09:37:40 3572 be/4 root 24.30 M 0.00 B 0.00 % 0.27 % python /usr/bin/iotop -a -o -t -b

09:37:40 3885 be/4 mysql 9.29 M 400.00 K 0.06 % 0.42 % mysqld

09:37:40 4497 be/4 www-data 2.13 M 0.00 B 13.45 % 25.79 % apache2 -k start

09:37:40 4499 be/4 www-data 4.97 M 0.00 B 8.97 % 23.69 % apache2 -k start

09:37:40 4490 be/4 www-data 15.13 M 4.00 K 18.22 % 22.79 % apache2 -k start

09:37:40 4484 be/4 www-data 2.71 M 0.00 B 18.54 % 20.49 % apache2 -k start

09:37:40 4025 be/4 www-data 7.28 M 12.00 K 1.46 % 0.77 % apache2 -k start

09:37:40 4504 be/4 mysql 8.61 M 0.00 B 5.48 % 22.01 % mysqld

09:37:40 3862 be/4 www-data 10.24 M 20.00 K 0.54 % 0.34 % apache2 -k start

09:37:40 4503 be/4 mysql 15.02 M 20.00 K 4.23 % 20.88 % mysqld

09:37:40 3943 be/4 www-data 4.78 M 24.00 K 0.21 % 0.43 % apache2 -k start

09:37:40 4492 be/4 mysql 4.30 M 24.00 K 3.05 % 17.80 % mysqld

09:37:40 3634 be/4 tomcat6 11.02 M 2.30 M 0.00 % 0.18 % java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

09:37:40 3890 be/4 www-data 13.69 M 32.00 K 0.75 % 0.22 % apache2 -k start

09:37:40 2103 be/4 ntp 7.27 M 4.00 K 0.00 % 0.12 % ntpd -p /var/run/ntpd.pid -g -u 102:104

09:37:40 4511 be/4 www-data 3.95 M 4.00 K 25.35 % 11.93 % apache2 -k start

09:37:40 4491 be/4 www-data 1576.00 K 0.00 B 3.31 % 8.98 % apache2 -k start

09:37:40 4487 be/4 mysql 5.27 M 96.00 K 2.76 % 8.66 % mysqld

09:37:40 4513 be/4 mysql 1204.00 K 92.00 K 0.30 % 9.22 % mysqld

09:37:40 4058 be/4 root 5.77 M 0.00 B 0.00 % 0.40 % top

09:37:40 4493 be/4 mysql 4.09 M 68.00 K 0.00 % 8.04 % mysqld

09:37:40 2215 be/4 root 5.22 M 4.00 K 0.00 % 0.07 % apache2 -k start

09:37:40 3852 be/4 mysql 2020.00 K 292.00 K 0.01 % 0.11 % mysqld

09:37:40 4439 be/4 www-data 5.49 M 4.00 K 1.79 % 0.60 % apache2 -k start

09:37:40 3886 be/4 mysql 6.04 M 524.00 K 0.02 % 0.11 % mysqld

09:37:40 4505 be/4 mysql 1492.00 K 28.00 K 2.00 % 6.01 % mysqld

09:37:40 4506 be/4 mysql 1892.00 K 4.00 K 1.80 % 5.62 % mysqld

09:37:40 2302 be/4 root 4.17 M 76.00 K 0.00 % 0.05 % monit -c /etc/monit/monitrc -s /var/lib/monit/monit.state

09:37:40 4507 be/4 mysql 2.05 M 40.00 K 5.75 % 5.36 % mysqld

09:37:40 4489 be/4 www-data 380.00 K 0.00 B 3.66 % 5.05 % apache2 -k start

09:37:40 2715 be/4 root 9.08 M 244.00 K 0.03 % 0.05 % perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf

09:37:40 3716 be/4 root 6.61 M 0.00 B 0.01 % 0.05 % sshd: root@pts/3

09:37:40 4508 be/4 mysql 3.93 M 40.00 K 4.31 % 3.77 % mysqld

09:37:40 994 be/4 root 44.00 K 7.40 M 0.00 % 0.04 % [kjournald]

09:37:40 3626 be/4 tomcat6 2.89 M 0.00 B 0.00 % 0.03 % java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

09:37:40 4494 be/4 mysql 664.00 K 64.00 K 0.24 % 2.91 % mysqld

09:37:40 2158 be/4 root 1780.00 K 0.00 B 0.07 % 0.03 % master

09:37:40 2318 be/4 root 1688.00 K 0.00 B 0.00 % 0.03 % monit -c /etc/monit/monitrc -s /var/lib/monit/monit.state

09:37:40 4512 be/4 mysql 1076.00 K 0.00 B 4.39 % 2.68 % mysqld

09:37:40 3627 be/4 tomcat6 6.25 M 24.00 K 0.01 % 0.02 % java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

09:37:40 2156 be/4 mysql 396.00 K 0.00 B 0.00 % 0.02 % mysqld

09:37:40 1998 be/4 syslog 96.00 K 1496.00 K 0.00 % 0.02 % rsyslogd -c4

09:37:40 2153 be/4 mysql 2.56 M 0.00 B 0.00 % 0.02 % mysqld

09:37:40 2154 be/4 mysql 3.18 M 0.00 B 0.00 % 0.01 % mysqld

09:37:40 4514 be/4 mysql 480.00 K 20.00 K 3.68 % 1.58 % mysqld

09:37:40 3545 be/4 root 1112.00 K 0.00 B 0.00 % 0.01 % sshd: root@pts/2

09:37:40 1970 be/4 syslog 856.00 K 0.00 B 0.01 % 0.01 % rsyslogd -c4

09:37:40 2770 be/4 root 692.00 K 0.00 B 0.00 % 0.01 % sshd: root@pts/0

09:37:40 3573 be/4 root 56.00 K 21.89 M 0.00 % 0.01 % tee output.txt

09:37:40 4518 be/4 mysql 272.00 K 0.00 B 0.00 % 1.78 % mysqld

09:37:40 2034 be/4 mysql 440.00 K 0.00 B 0.00 % 0.01 % mysqld

09:37:40 1995 be/4 root 360.00 K 0.00 B 0.00 % 0.00 % cron

09:37:40 2008 be/4 syslog 336.00 K 0.00 B 0.00 % 0.00 % rsyslogd -c4

09:37:40 3632 be/4 tomcat6 2.27 M 0.00 B 0.01 % 0.00 % java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

09:37:40 3728 be/4 root 1088.00 K 0.00 B 0.00 % 0.00 % -bash

09:37:40 2186 be/4 postfix 248.00 K 0.00 B 0.00 % 0.00 % qmgr -l -t fifo -u

09:37:40 3621 be/4 tomcat6 104.00 K 48.00 K 0.00 % 0.00 % java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

09:37:40 2185 be/4 postfix 80.00 K 0.00 B 0.00 % 0.00 % pickup -l -t fifo -u -c

09:37:40 3625 be/4 tomcat6 2.79 M 0.00 B 0.03 % 0.00 % java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

09:37:40 3623 be/4 tomcat6 2.89 M 0.00 B 0.03 % 0.00 % java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

09:37:40 3624 be/4 tomcat6 3.32 M 0.00 B 0.03 % 0.00 % java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

09:37:40 3629 be/4 tomcat6 92.00 K 0.00 B 0.00 % 0.00 % java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

09:37:40 3467 be/4 root 32.00 K 0.00 B 0.00 % 0.00 % sshd: root@pts/1

09:37:40 3479 be/4 root 212.00 K 0.00 B 0.00 % 0.00 % -bash

09:37:40 3622 be/4 tomcat6 3.05 M 0.00 B 0.03 % 0.00 % java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start

3 iotop -ao

Total DISK READ: 62.49 M/s | Total DISK WRITE: 335.70 K/s

TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND

4510 be/4 www-data 6.68 M 0.00 B 3.98 % 75.64 % apache2 -k start

4486 be/4 www-data 5.73 M 4.00 K 0.33 % 65.70 % apache2 -k start

269 be/4 root 0.00 B 0.00 B 0.00 % 0.56 % [kswapd0]

4488 be/4 www-data 6.30 M 0.00 B 8.35 % 63.71 % apache2 -k start

4485 be/4 www-data 12.79 M 0.00 B 4.02 % 61.39 % apache2 -k start

4509 be/4 www-data 10.01 M 0.00 B 13.62 % 66.14 % apache2 -k start

4517 be/4 root 15.76 M 0.00 B 0.00 % 99.76 % smtpd -n smtp -~u -c -o stress=

4501 be/4 www-data 8.89 M 0.00 B 7.65 % 50.12 % apache2 -k start

4516 be/4 root 17.33 M 0.00 B 0.00 % 96.06 % cleanup -z -t unix -u -c

4498 be/4 www-data 5.93 M 0.00 B 5.04 % 47.73 % apache2 -k start

3859 be/4 www-data 4.87 M 440.00 K 0.04 % 0.74 % apache2 -k start

4502 be/4 www-data 5.92 M 0.00 B 9.57 % 46.05 % apache2 -k start

3638 be/4 tomcat6 42.51 M 4.00 K 0.15 % 0.44 % java -Djava.uti~Bootstrap start

4515 be/4 root 26.96 M 0.00 B 38.00 % 60.80 % webmincron.pl

3857 be/4 mysql 12.88 M 760.00 K 0.02 % 0.68 % mysqld

4500 be/4 www-data 6.83 M 0.00 B 19.05 % 41.66 % apache2 -k start

3876 be/4 mysql 23.16 M 364.00 K 0.02 % 0.60 % mysqld

3879 be/4 mysql 12.08 M 132.00 K 0.04 % 0.60 % mysqld

4495 be/4 www-data 1744.00 K 0.00 B 6.54 % 33.24 % apache2 -k start

3864 be/4 mysql 15.96 M 544.00 K 0.01 % 0.51 % mysqld

3878 be/4 mysql 14.26 M 308.00 K 0.03 % 0.50 % mysqld

3094 be/4 root 26.34 M 0.00 B 0.00 % 0.26 % python /usr/bin/iotop -ao

4496 be/4 www-data 1880.00 K 0.00 B 12.51 % 30.25 % apache2 -k start

3572 be/4 root 24.63 M 0.00 B 0.00 % 0.27 % python /usr/bin~top -a -o -t -b

4497 be/4 www-data 2.13 M 0.00 B 13.44 % 25.77 % apache2 -k start

3885 be/4 mysql 9.27 M 400.00 K 0.06 % 0.41 % mysqld

4499 be/4 www-data 4.97 M 0.00 B 8.96 % 23.67 % apache2 -k start

4490 be/4 www-data 15.13 M 4.00 K 18.21 % 22.78 % apache2 -k start

4484 be/4 www-data 2.71 M 0.00 B 18.55 % 20.50 % apache2 -k start

4025 be/4 www-data 7.28 M 12.00 K 1.46 % 0.77 % apache2 -k start

4504 be/4 mysql 8.61 M 0.00 B 5.47 % 21.99 % mysqld

3862 be/4 www-data 10.26 M 20.00 K 0.54 % 0.34 % apache2 -k start

4503 be/4 mysql 15.02 M 32.00 K 4.23 % 20.86 % mysqld

3943 be/4 www-data 4.85 M 24.00 K 0.21 % 0.43 % apache2 -k start

4492 be/4 mysql 4.30 M 24.00 K 3.05 % 17.79 % mysqld

3634 be/4 tomcat6 11.02 M 2.30 M 0.00 % 0.18 % java -Djava.uti~Bootstrap start

3890 be/4 www-data 13.69 M 32.00 K 0.75 % 0.22 % apache2 -k start

2103 be/4 ntp 7.27 M 4.00 K 0.00 % 0.10 % ntpd -p /var/ru~d -g -u 102:104

4511 be/4 www-data 3.97 M 4.00 K 25.30 % 12.41 % apache2 -k start

4491 be/4 www-data 1576.00 K 0.00 B 3.28 % 8.91 % apache2 -k start

Any advice would be grately appreciated.

I will also be willing to work with some one to work through the issue with monetary rewards for their efforts of course.

Best regards

Simon

4 Replies

Assuming you're using Apache's Prefork MPM, what is your current MaxClients value in your Apache config?

hi jshwright,

This is the configuration i currently have for apache;

StartServers 1

MinSpareServers 3

MaxSpareServers 6

ServerLimit 24

MaxClients 24

MaxRequestsPerChild 3000

Simon

Too many copies of Apache, Tomcat is sucking up a hug chunk of your RAM, you can probably reduce MySQL's memory usage.

Thanks Guspaz,

do have recommended settings, I have already set it to the recommendation provided by Linode.

key_buffer = 16k

maxallowedpacket = 1M

thread_stack = 64K

threadcachesize = 8

table_cache = 4

sort_buffer = 64K

netbufferlength = 2K

Being a newbie am not sure what you mean by Too many copies of Apache, Tomcat. I thought we only ever have one copy of apache and tomcat.. please explain this if you could.

Thanks

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct