lsphp5 command

phattran911

Well-Known Member
#1
The top -c shows the following output

PHP:
 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 5130 nobody    16   0  153m  12m 3700 S 16.3  0.2   0:03.10 lsphp5
 5152 nobody    16   0  153m  12m 3676 S 16.3  0.2   0:01.66 lsphp5
 5128 nobody    15   0  159m  19m 3692 R 13.9  0.2   0:02.28 lsphp5:/home/boxlive/public_html/index.php
 5127 nobody    15   0  153m  12m 3584 R 13.6  0.2   0:02.24 lsphp5:/home/boxlive/public_html/index.php
 5149 nobody    15   0  152m  11m 3552 S  3.3  0.1   0:00.35 lsphp5
27409 nobody     0 -19 62580  45m 2928 S  2.0  0.6   0:59.66 litespeed (lshttpd)
 1477 lsadm     15   0 27372   9m 1900 S  1.7  0.1   0:31.23 admin_php -c ../conf/php.ini
 3317 boxlive   34  19 30680  13m 1024 S  0.7  0.2   0:29.84 /usr/local/cpanel/3rdparty/bin/english/weba
 3331 boxlive   34  19 36972  12m  596 S  0.3  0.2   0:00.35 /usr/local/cpanel/3rdparty/bin/english/weba
 4857 root      15   0 12844 1196  800 R  0.3  0.0   0:00.42 top -c
    1 root      15   0 10348  700  588 S  0.0  0.0   0:09.92 init [3]

The command lsphp5 is causing high load to the server. May I ask if this command is the external application lsphp5, or it is litesped itself?

Thanks
 

GaryT

Active Member
#2
You should enable:

within litespeed to see who the actual user is - Also in the litespeed control panel - What priority is litespeed set to.

But even though it may show that CPU its only per view, If its constantly high then its a user issue, Probably cause by a bad script.
 

NiteWave

Administrator
#3
May I ask if this command is the external application lsphp5, or it is litesped itself?
as the top output illustrated, it's lsphp5.

it also shows an user account "boxlive" consuming most of the CPU.
you can enable php suExec as GaryT suggested to limit one account's CPU usage, and install eAccelerator to drop some of the load.

if "boxlive" is the main account and you'd like to run lsphp5 as nobody(i.e., not enable php suExec), then install either of APC, eAccelerator, xcache will drop the load significantly.

of course as GaryT stated, bad php script may cause high load as well.
 
#4
Load of LiteSpeed process can be reduced

Hi,

Install APC. It will reduce load of the server caused by lsphp5 .

Regards,


Sofia
 
Top