massive cpu usage from litespeed

azn_romeo_4u

Well-Known Member
#1
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.
 

mistwang

LiteSpeed Staff
#2
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.
 

azn_romeo_4u

Well-Known Member
#3
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.
 
Top