LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [Ask Help] High CPU Load

Reply
 
Thread Tools Display Modes
  #1  
Old 11-28-2012, 07:38 PM
webhostnix webhostnix is offline
Member
 
Join Date: Sep 2012
Posts: 20
Question [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 :








Thanks for any helps
Reply With Quote
  #2  
Old 11-28-2012, 08:58 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
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.
Reply With Quote
  #3  
Old 11-28-2012, 09:10 PM
webhostnix webhostnix is offline
Member
 
Join Date: Sep 2012
Posts: 20
Quote:
Originally Posted by NiteWave View Post
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
Reply With Quote
  #4  
Old 11-28-2012, 09:29 PM
webhostnix webhostnix is offline
Member
 
Join Date: Sep 2012
Posts: 20
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
Reply With Quote
  #5  
Old 11-29-2012, 01:26 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
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.
Reply With Quote
  #6  
Old 11-29-2012, 01:41 AM
webhostnix webhostnix is offline
Member
 
Join Date: Sep 2012
Posts: 20
Real time stats




Security Setting

Reply With Quote
  #7  
Old 11-29-2012, 11:31 AM
webhostnix webhostnix is offline
Member
 
Join Date: Sep 2012
Posts: 20
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.
Reply With Quote
  #8  
Old 11-29-2012, 11:50 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
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&#37 which is the source of high load.
Reply With Quote
  #9  
Old 11-29-2012, 12:03 PM
webhostnix webhostnix is offline
Member
 
Join Date: Sep 2012
Posts: 20
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




Thanks
Reply With Quote
  #10  
Old 11-29-2012, 12:12 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by webhostnix View Post
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 View Post
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 View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:02 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.