Recently we upgraded one of our website to using joomla and SMF.
Things start to go bad from there. Server load became extremely high until more than 120 in top.
After days of testing and checking, we manage to narrow down the problem to SMF.
If we disable SMF, everything will run nicely. Once we started SMF, when users logon and start using the forum. The load will start going up up up and up until the server stop responding.
We see httpd to be causing this. When we run SMF, httpd starts to use lots and lots of memory. In top, it shows httpd to be using like 90mb for 1 process.
Here is a snapshot of top :
17:16:59 up 1 day, 19:39, 2 users, load average: 19.62, 8.62, 3.94
325 processes: 315 sleeping, 6 running, 3 zombie, 1 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 89.4% 0.0% 9.0% 0.3% 1.1% 0.0% 0.0%
cpu00 85.7% 0.0% 12.7% 0.7% 0.7% 0.0% 0.0%
cpu01 93.1% 0.0% 5.3% 0.0% 1.5% 0.0% 0.0%
Mem: 1015908k av, 995980k used, 19928k free, 0k shrd, 6812k buff
758620k actv, 142600k in_d, 12616k in_c
Swap: 2048276k av, 687008k used, 1361268k free 78396k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
8649 nobody 21 0 93260 84M 5616 D 0.0 8.5 0:30 1 httpd
1685 nobody 25 0 96544 81M 8844 D 0.7 8.2 0:34 0 httpd
1683 nobody 15 0 83460 78M 8844 D 0.3 7.8 1:08 0 httpd
8652 nobody 15 0 79900 76M 5840 S 0.3 7.7 0:05 1 httpd
7185 nobody 25 0 93648 71M 5980 R 22.2 7.1 1:00 0 httpd
1677 nobody 25 0 92068 68M 8848 R 21.8 6.9 0:30 1 httpd
1674 nobody 25 0 92072 66M 9172 D 14.3 6.7 0:36 0 httpd
1668 nobody 15 0 77744 61M 7964 S 0.0 6.1 0:35 0 httpd
1680 nobody 15 0 91332 38M 8496 D 0.0 3.8 1:36 0 httpd
1230 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1233 mysql 25 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1234 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1235 mysql 15 0 76584 32M 2740 S 0.7 3.3 0:15 0 mysqld
1236 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1237 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1238 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 1 mysqld
1239 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1240 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 1 mysqld
1241 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:01 1 mysqld
1243 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 1 mysqld
1247 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:02 1 mysqld
1253 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:12 0 mysqld
1254 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:08 0 mysqld
1255 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:15 1 mysqld
1259 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:02 1 mysqld
I have to tried doing mysql optimization, httpd optimization, eaccelerator, convert some tables to innodb (as suggested from smf website) but still have this load problem.
My server is running P4 2.4c with 1gb RAM.
WHM 10.8.0 cPanel 10.9.0-R34
Apache 1.3.x
PHP 4.4.4
mysql 4.1.12
mailscanner
Running only about 10 websites. All other websites are quite idle. Only this main website is the one with lots of visitors. Around 5,000 unique visitors per day.
Any other suggestions? Should I upgrade the RAM?
Things start to go bad from there. Server load became extremely high until more than 120 in top.
After days of testing and checking, we manage to narrow down the problem to SMF.
If we disable SMF, everything will run nicely. Once we started SMF, when users logon and start using the forum. The load will start going up up up and up until the server stop responding.
We see httpd to be causing this. When we run SMF, httpd starts to use lots and lots of memory. In top, it shows httpd to be using like 90mb for 1 process.
Here is a snapshot of top :
17:16:59 up 1 day, 19:39, 2 users, load average: 19.62, 8.62, 3.94
325 processes: 315 sleeping, 6 running, 3 zombie, 1 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 89.4% 0.0% 9.0% 0.3% 1.1% 0.0% 0.0%
cpu00 85.7% 0.0% 12.7% 0.7% 0.7% 0.0% 0.0%
cpu01 93.1% 0.0% 5.3% 0.0% 1.5% 0.0% 0.0%
Mem: 1015908k av, 995980k used, 19928k free, 0k shrd, 6812k buff
758620k actv, 142600k in_d, 12616k in_c
Swap: 2048276k av, 687008k used, 1361268k free 78396k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
8649 nobody 21 0 93260 84M 5616 D 0.0 8.5 0:30 1 httpd
1685 nobody 25 0 96544 81M 8844 D 0.7 8.2 0:34 0 httpd
1683 nobody 15 0 83460 78M 8844 D 0.3 7.8 1:08 0 httpd
8652 nobody 15 0 79900 76M 5840 S 0.3 7.7 0:05 1 httpd
7185 nobody 25 0 93648 71M 5980 R 22.2 7.1 1:00 0 httpd
1677 nobody 25 0 92068 68M 8848 R 21.8 6.9 0:30 1 httpd
1674 nobody 25 0 92072 66M 9172 D 14.3 6.7 0:36 0 httpd
1668 nobody 15 0 77744 61M 7964 S 0.0 6.1 0:35 0 httpd
1680 nobody 15 0 91332 38M 8496 D 0.0 3.8 1:36 0 httpd
1230 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1233 mysql 25 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1234 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1235 mysql 15 0 76584 32M 2740 S 0.7 3.3 0:15 0 mysqld
1236 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1237 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1238 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 1 mysqld
1239 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 0 mysqld
1240 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 1 mysqld
1241 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:01 1 mysqld
1243 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:00 1 mysqld
1247 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:02 1 mysqld
1253 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:12 0 mysqld
1254 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:08 0 mysqld
1255 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:15 1 mysqld
1259 mysql 15 0 76584 32M 2740 S 0.0 3.3 0:02 1 mysqld
I have to tried doing mysql optimization, httpd optimization, eaccelerator, convert some tables to innodb (as suggested from smf website) but still have this load problem.
My server is running P4 2.4c with 1gb RAM.
WHM 10.8.0 cPanel 10.9.0-R34
Apache 1.3.x
PHP 4.4.4
mysql 4.1.12
mailscanner
Running only about 10 websites. All other websites are quite idle. Only this main website is the one with lots of visitors. Around 5,000 unique visitors per day.
Any other suggestions? Should I upgrade the RAM?
Last edited: