[Ask Help] High CPU Load

Discussion in 'General' started by webhostnix, Nov 29, 2012.

  1. webhostnix

    webhostnix New Member

    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 :

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]

    Thanks for any helps
  2. NiteWave

    NiteWave Administrator

    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.
  3. webhostnix

    webhostnix New Member

    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
  4. webhostnix

    webhostnix New Member

    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
  5. NiteWave

    NiteWave Administrator

    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.
  6. webhostnix

    webhostnix New Member

    Real time stats

    [​IMG]


    Security Setting

    [​IMG]
  7. webhostnix

    webhostnix New Member

    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.
  8. webizen

    webizen New Member

    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.
  9. webhostnix

    webhostnix New Member

    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

    [​IMG]
    [​IMG]

    Thanks
  10. webizen

    webizen New Member

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

    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?

    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.
  11. webhostnix

    webhostnix New Member

    I check with tuning primer for queries/s. suexec has been enabled on server. So I don't need suexec daemon enabled ?
  12. webizen

    webizen New Member

    suEXEC daemon mode enables opcode cache to be shared in shared hosting environment. it is not required but a plus (apache does NOT support that).
    Last edited: Nov 30, 2012
  13. webhostnix

    webhostnix New Member

    If I enable suexec daemon => websites can't be accessed.
    If I enable cagefs but disable php suexec => websites can't be accessed too.

    Whats wrong with my setup ?

    Thanks
    Last edited: Nov 30, 2012
  14. NiteWave

    NiteWave Administrator

    in your case(shared hosting, should always enable php suExec)

    should not happen.

    you can PM us your lsws admin console:)7080)'s access for quicker communication.
  15. mistwang

    mistwang LiteSpeed Staff

    If still have problem, please send temp root access to bug@litespeed..., we will investigate.

Share This Page