LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   [Ask Help] High CPU Load (http://www.litespeedtech.com/support/forum/showthread.php?t=6403)

webhostnix 11-28-2012 07:38 PM

[Ask Help] High CPU Load
 
Hi,

My server load is veru high, please help me

Server Info :
- dual xeon e5 roomley 32 cpu
- 64 GB ram
- sas 15K rpm raid 10
- litesped 2 licensi

Here are captures info and config :

http://www.webhostnix.com/help/general.png
http://www.webhostnix.com/help/lsphp5.png
http://www.webhostnix.com/help/ram.png
http://www.webhostnix.com/help/stats.png
http://www.webhostnix.com/help/top.png
http://www.webhostnix.com/help/tuning.png

Thanks for any helps

NiteWave 11-28-2012 08:58 PM

a few suggestions:
1.Server -> External App -> lsphp5:
Max Connections:35
PHP_LSAPI_CHILDREN=100
the 2 value should match or equal.
you can change PHP_LSAPI_CHILDREN back to default 35

2.first screen shot:
PHP suEXEC Max Conn:5
try change it to 10,20

3.you have 32 CPUs, load is 24, not high. 32 is normal.

4.the real-time stats screen shot:
please monitor the WaitQ column, one is 61. should be 0. or non-zero should not keep for long time.

webhostnix 11-28-2012 09:10 PM

Quote:

Originally Posted by NiteWave (Post 36709)
a few suggestions:
1.Server -> External App -> lsphp5:
Max Connections:35
PHP_LSAPI_CHILDREN=100
the 2 value should match or equal.
you can change PHP_LSAPI_CHILDREN back to default 35

2.first screen shot:
PHP suEXEC Max Conn:5
try change it to 10,20

3.you have 32 CPUs, load is 24, not high. 32 is normal.

4.the real-time stats screen shot:
please monitor the WaitQ column, one is 61. should be 0. or non-zero should not keep for long time.

I have applied your suggestions..but the load is increasing...

top - 21:10:16 up 19 days, 19:49, 3 users, load average: 55.88, 36.09, 31.19
Tasks: 1047 total, 5 running, 1042 sleeping, 0 stopped, 0 zombie
Cpu(s): 24.6%us, 37.2%sy, 35.3%ni, 2.8%id, 0.0%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 65681040k total, 60810260k used, 4870780k free, 13421492k buffers
Swap: 4194296k total, 0k used, 4194296k free, 27204132k cached

webhostnix 11-28-2012 09:29 PM

The server load is increasing again. Please help

top - 21:28:15 up 19 days, 20:07, 3 users, load average: 72.04, 62.34, 51.03
Tasks: 1038 total, 8 running, 1030 sleeping, 0 stopped, 0 zombie
Cpu(s): 25.2%us, 15.7%sy, 52.4%ni, 6.4%id, 0.0%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 65681040k total, 62365632k used, 3315408k free, 13309168k buffers
Swap: 4194296k total, 0k used, 4194296k free, 27178040k cached

NiteWave 11-29-2012 01:26 AM

can you post real-time stat screen shot and Server->Security settings screen shot.

high load is a issue, should fix it. but again please be aware: your have 32 CPUs, so load 32 or 64 should not be a big surprise comparing with 1 or 2 CPU system which load is 32 or 64 too. 32 or below is quite normal.
except load, please pay more attention on the actual website performance. if load faster, more traffic will come, which lead higher load. also pay attention to the WaitQ as mentioned before.

webhostnix 11-29-2012 01:41 AM

Real time stats

http://www.webhostnix.com/help/stats.png


Security Setting

http://www.webhostnix.com/help/security.png

webhostnix 11-29-2012 11:31 AM

I am very frustrated, slow response of LiteSpeed ​​staff on the forum. At least please give more attention to its customers. Although the support forum is free but I am also paying customers, pay two licenses / month

Since there is no real solution, I decided to uninstall version 4.2 and install LiteSpeed ​​LiteSpeed ​​4.2.1

I hope the latest version will solve my problem above. But here is the result:
- If suexec enabled, avg 600 queries / s (900 queries / s on LSWS 4.2). It;'s very bad.
- If suexec is not enabled, websites can not be accessed.
- If suexec daemon is enabled, websites can not be accessed too.
- If lve or cagefs is enabled, MySQL will be stopped running after few times ( I am still waiting for response from Cloudlinux )

There are always errors on the server log viewer:
-2012-11-29 03:46:02.649 ERROR [config] rewrite: unknown server variable while parsing: MULTIPART_STRICT_ERROR
-2012-11-29 03:46:02.849 WARN / usr/local/apache/conf/userdata/std/2/xxxx/suphp_config.conf: 3: Directive 'suPHP_ConfigPath' is not allowed in current context
-2012-11-29 03:46:03.649 WARN Remove looping fd: 63, event: 1

I am not an expert on linux or LiteSpeed​​. I just want LSWS runnning well and without problems on my server.

webizen 11-29-2012 11:50 AM

Your last real-time stats screenshot is the same as 1st one which is not helping. Pls post an updated one. Also, your top screenshot shows that your MySQL DB use a lot more CPU cycles (~2400%) which is the source of high load.

webhostnix 11-29-2012 12:03 PM

The high load problem is on LSWS 4.2 Now server uses LSWS 4.2.1 and got new problem :

- If suexec enabled, avg 600 queries / s (900 queries / s on LSWS 4.2). It;'s very bad.
- If suexec is not enabled, websites can not be accessed.
- If suexec daemon is enabled, websites can not be accessed too.
- If lve or cagefs is enabled, MySQL will be stopped running after few times ( I am still waiting for response from Cloudlinux )

There are always errors on the server log viewer:
-2012-11-29 03:46:02.649 ERROR [config] rewrite: unknown server variable while parsing: MULTIPART_STRICT_ERROR
-2012-11-29 03:46:02.849 WARN / usr/local/apache/conf/userdata/std/2/xxxx/suphp_config.conf: 3: Directive 'suPHP_ConfigPath' is not allowed in current context
-2012-11-29 03:46:03.649 WARN Remove looping fd: 63, event: 1

Btw.. here are capture real stats and top

http://webhostnix.com/help/last-top.png
http://webhostnix.com/help/last-stats.png

Thanks

webizen 11-29-2012 12:12 PM

Quote:

Originally Posted by webhostnix (Post 36820)
I am very frustrated, slow response of LiteSpeed ​​staff on the forum. At least please give more attention to its customers. Although the support forum is free but I am also paying customers, pay two licenses / month

License fee does not cover support. For fast turn around, pls purchase support service (https://store.litespeedtech.com/store/cart.php?gid=5).

Quote:

Originally Posted by webhostnix (Post 36820)
Since there is no real solution, I decided to uninstall version 4.2 and install LiteSpeed ​​LiteSpeed ​​4.2.1

I hope the latest version will solve my problem above. But here is the result:
- If suexec enabled, avg 600 queries / s (900 queries / s on LSWS 4.2). It;'s very bad.
- If suexec is not enabled, websites can not be accessed.
- If suexec daemon is enabled, websites can not be accessed too.
- If lve or cagefs is enabled, MySQL will be stopped running after few times ( I am still waiting for response from Cloudlinux )

You need suEXEC enabled for shared hosting environment (i.e., each vhost user owns their files). Can you be more specific about queries/s? did you do benchmark or something?

Quote:

Originally Posted by webhostnix (Post 36820)
There are always errors on the server log viewer:
-2012-11-29 03:46:02.649 ERROR [config] rewrite: unknown server variable while parsing: MULTIPART_STRICT_ERROR
-2012-11-29 03:46:02.849 WARN / usr/local/apache/conf/userdata/std/2/xxxx/suphp_config.conf: 3: Directive 'suPHP_ConfigPath' is not allowed in current context
-2012-11-29 03:46:03.649 WARN Remove looping fd: 63, event: 1

I am not an expert on linux or LiteSpeed​​. I just want LSWS runnning well and without problems on my server.

The first ERROR about unknown server variable just means the variable in mod_security rules is not supported in LSWS and hence ignored.
2nd and 3rd (WARN) are no harm. suPHP is not supported in LSWS (it is slow and not as secure as LSPHP) and hence ignored.


All times are GMT -7. The time now is 11:48 AM.