High CPU usage Autoindex

pardis

Well-Known Member
#1
Hello :

following process consume High resource of our server . (around 10 core CPU)

/usr/local/lib/php/autoindex/default.php

Why ? and How can resolve issue ?

Best regards
 

mistwang

LiteSpeed Staff
#6
try
"ps -ef | grep default.php"
then quickly start stracing one of the PID listed.

strace -tt -T -p <pid_of_php_serving_default.php>

try multiple times, you will get one successful strace.
 

pardis

Well-Known Member
#7
result :

Code:
21:21:39.791577 stat("/usr/share/zoneinfo/Asia/Dubai", {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0 <0.000018>
21:21:39.791666 stat("/usr/share/zoneinfo/Asia/Dubai", {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0 <0.000018>
21:21:39.791754 stat("/usr/share/zoneinfo/Asia/Dubai", {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0 <0.000020>
21:21:39.791847 stat("/usr/share/zoneinfo/Asia/Dubai", {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0 <0.000018>
21:21:39.791941 stat("/usr/share/zoneinfo/Asia/Dubai", {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0 <0.000017>
21:21:39.792032 stat("/usr/share/zoneinfo/Asia/Dubai", {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0 <0.000021>
21:21:39.792128 stat("/usr/share/zoneinfo/Asia/Dubai", {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0 <0.000023>
21:21:39.792238 stat("/usr/share/zoneinfo/Asia/Dubai", {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0 <0.000019>
21:21:39.792330 stat("/usr/share/zoneinfo/Asia/Dubai", {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0 <0.000018>
21:21:39.792423 stat("/usr/share/zoneinfo/Asia/Dubai", {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0 <0.000020>
21:21:39.792514 stat("/usr/share/zoneinfo/Asia/Dubai", {st_mode=S_IFREG|0644, st_size=1622, ...}) = 0 <0.000018>
 
Top