Hi guys,
We are currently using LSWS to power a number of Wordpress installations on a 2GB VPS slice. The VPS slice is dedicated for serving LSWS requests (so MySQL is served remotely), LSWS is the latest (4.0.10 Enterprise), PHP is 5.2.10 with APC and Memcache enabled. The Wordpress installations all have W3 Total Cache enabled too.
However, we are still seeing relatively high server load. From 'top', it appears that lsphp5 processes are using quite a bit of CPU power.
Below are some of the configuration parameters:
I've tried a few different tweaks and nothing I did seem to bring the CPU usage down. :|
It is also unlikely the Wordpress installations are causing the issue, because these sites were hosted elsewhere using Apache + mod_php before, and the CPU usage was fine.
Some interesting stuff from the server log:
And the requests/second graph (during this time, server load averages at around 0.8 to 1.3):
Any suggestions?
We are currently using LSWS to power a number of Wordpress installations on a 2GB VPS slice. The VPS slice is dedicated for serving LSWS requests (so MySQL is served remotely), LSWS is the latest (4.0.10 Enterprise), PHP is 5.2.10 with APC and Memcache enabled. The Wordpress installations all have W3 Total Cache enabled too.
However, we are still seeing relatively high server load. From 'top', it appears that lsphp5 processes are using quite a bit of CPU power.
top - 00:11:46 up 2 days, 3 min, 1 user, load average: 0.62, 1.00, 1.06
Tasks: 107 total, 1 running, 106 sleeping, 0 stopped, 0 zombie
Cpu(s): 16.8%us, 5.3%sy, 0.0%ni, 73.1%id, 1.2%wa, 0.0%hi, 0.2%si, 3.3%st
Mem: 2097372k total, 978416k used, 1118956k free, 49788k buffers
Swap: 4194296k total, 44k used, 4194252k free, 540348k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24484 apache 19 -1 146m 60m 32m S 48.6 3.0 0:05.46 lsphp5
24494 apache 19 -1 134m 32m 15m S 30.0 1.6 0:00.90 lsphp5
24495 apache 19 -1 142m 45m 20m S 18.0 2.2 0:00.54 lsphp5
24493 apache 19 -1 136m 33m 14m S 10.7 1.6 0:00.32 lsphp5
24496 apache 19 -1 133m 32m 16m S 8.7 1.6 0:00.26 lsphp5
24361 apache 1 -19 20364 5324 1492 S 1.3 0.3 0:03.06 lshttpd
1 root 20 0 10356 652 556 S 0.0 0.0 0:03.92 init
2 root 15 -5 0 0 0 S 0.0 0.0 0:00.02 kthreadd
3 root RT -5 0 0 0 S 0.0 0.0 0:01.44 migration/0
4 root 15 -5 0 0 0 S 0.0 0.0 0:00.68 ksoftirqd/0
5 root RT -5 0 0 0 S 0.0 0.0 0:01.00 watchdog/0
6 root 15 -5 0 0 0 S 0.0 0.0 0:09.24 events/0
7 root 15 -5 0 0 0 S 0.0 0.0 0:00.06 khelper
18 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 xenwatch
19 root 15 -5 0 0 0 S 0.0 0.0 0:00.12 xenbus
27 root RT -5 0 0 0 S 0.0 0.0 0:00.56 migration/1
28 root 15 -5 0 0 0 S 0.0 0.0 0:00.20 ksoftirqd/1
29 root RT -5 0 0 0 S 0.0 0.0 0:00.52 watchdog/1
30 root 15 -5 0 0 0 S 0.0 0.0 0:09.34 events/1
31 root RT -5 0 0 0 S 0.0 0.0 0:00.72 migration/2
32 root 15 -5 0 0 0 S 0.0 0.0 0:00.24 ksoftirqd/2
33 root RT -5 0 0 0 S 0.0 0.0 0:00.56 watchdog/2
34 root 15 -5 0 0 0 S 0.0 0.0 0:09.14 events/2
35 root RT -5 0 0 0 S 0.0 0.0 0:00.60 migration/3
36 root 15 -5 0 0 0 S 0.0 0.0 0:00.14 ksoftirqd/3
37 root RT -5 0 0 0 S 0.0 0.0 0:00.60 watchdog/3
38 root 15 -5 0 0 0 S 0.0 0.0 0:09.14 events/3
64 root 15 -5 0 0 0 S 0.0 0.0 0:00.50 kblockd/0
Tasks: 107 total, 1 running, 106 sleeping, 0 stopped, 0 zombie
Cpu(s): 16.8%us, 5.3%sy, 0.0%ni, 73.1%id, 1.2%wa, 0.0%hi, 0.2%si, 3.3%st
Mem: 2097372k total, 978416k used, 1118956k free, 49788k buffers
Swap: 4194296k total, 44k used, 4194252k free, 540348k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24484 apache 19 -1 146m 60m 32m S 48.6 3.0 0:05.46 lsphp5
24494 apache 19 -1 134m 32m 15m S 30.0 1.6 0:00.90 lsphp5
24495 apache 19 -1 142m 45m 20m S 18.0 2.2 0:00.54 lsphp5
24493 apache 19 -1 136m 33m 14m S 10.7 1.6 0:00.32 lsphp5
24496 apache 19 -1 133m 32m 16m S 8.7 1.6 0:00.26 lsphp5
24361 apache 1 -19 20364 5324 1492 S 1.3 0.3 0:03.06 lshttpd
1 root 20 0 10356 652 556 S 0.0 0.0 0:03.92 init
2 root 15 -5 0 0 0 S 0.0 0.0 0:00.02 kthreadd
3 root RT -5 0 0 0 S 0.0 0.0 0:01.44 migration/0
4 root 15 -5 0 0 0 S 0.0 0.0 0:00.68 ksoftirqd/0
5 root RT -5 0 0 0 S 0.0 0.0 0:01.00 watchdog/0
6 root 15 -5 0 0 0 S 0.0 0.0 0:09.24 events/0
7 root 15 -5 0 0 0 S 0.0 0.0 0:00.06 khelper
18 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 xenwatch
19 root 15 -5 0 0 0 S 0.0 0.0 0:00.12 xenbus
27 root RT -5 0 0 0 S 0.0 0.0 0:00.56 migration/1
28 root 15 -5 0 0 0 S 0.0 0.0 0:00.20 ksoftirqd/1
29 root RT -5 0 0 0 S 0.0 0.0 0:00.52 watchdog/1
30 root 15 -5 0 0 0 S 0.0 0.0 0:09.34 events/1
31 root RT -5 0 0 0 S 0.0 0.0 0:00.72 migration/2
32 root 15 -5 0 0 0 S 0.0 0.0 0:00.24 ksoftirqd/2
33 root RT -5 0 0 0 S 0.0 0.0 0:00.56 watchdog/2
34 root 15 -5 0 0 0 S 0.0 0.0 0:09.14 events/2
35 root RT -5 0 0 0 S 0.0 0.0 0:00.60 migration/3
36 root 15 -5 0 0 0 S 0.0 0.0 0:00.14 ksoftirqd/3
37 root RT -5 0 0 0 S 0.0 0.0 0:00.60 watchdog/3
38 root 15 -5 0 0 0 S 0.0 0.0 0:09.14 events/3
64 root 15 -5 0 0 0 S 0.0 0.0 0:00.50 kblockd/0
I've tried a few different tweaks and nothing I did seem to bring the CPU usage down. :|
It is also unlikely the Wordpress installations are causing the issue, because these sites were hosted elsewhere using Apache + mod_php before, and the CPU usage was fine.
Some interesting stuff from the server log:
And the requests/second graph (during this time, server load averages at around 0.8 to 1.3):
Any suggestions?
Last edited: