massive cpu usage from litespeed

Discussion in 'General' started by azn_romeo_4u, Oct 14, 2008.

  1. azn_romeo_4u

    azn_romeo_4u Member

    User Domain %CPU %MEM MySQL Processes
    nobody 210.02 9.21 0.0
    Top Process %CPU 47.5 lsphp5
    Top Process %CPU 46.0 lsphp5
    Top Process %CPU 45.0 lsphp5

    It ran like this for 8 hours yesterday until I restarted the server. Now around 8am today, it's running like this again.
  2. mistwang

    mistwang LiteSpeed Staff

    Looks like a run away PHP process, either php script problem or php internal bug.

    try "strace -p <pid_of_lsphp5>",

    you can set the "max_execution_time" in php.ini to minimize the cpu time consumed by those bad PHP processes before having a fix.
  3. azn_romeo_4u

    azn_romeo_4u Member

    Thank you,

    I might be under a ddos attack. I increased my CSF firewall to high and the load suddenly drops down to 1 again. I don't even see more than one instances of lsphp5 in the running process either.

    When i set it to low, load jumps to 40 again.
  4. mistwang

    mistwang LiteSpeed Staff

  5. anewday

    anewday Moderator

Share This Page