httpd causing high CPU load in CentOS / DirectAdmin

If you did TOP in ssh, and noticed httpd process has a high cpu load, and has been running for a long time (e.g. over 5 minutes) then you might try lowering your MaxRequestsPerChild.

vi /etc/httpd/conf/extra/httpd-mpm.conf

Now change your MaxRequestsPerChild from 1000 to 20...

<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers      10
    MaxSpareServers      20
    ServerLimit         812
    MaxClients          812
    MaxRequestsPerChild   20
</IfModule>
service httpd restart
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

วิธีดู Username/Password ของ admin

สามารถดู Username/Password ของ admin ได้โดย 1 cat...

จำรหัสผ่านไม่ได้ FORGOT ADMIN PASSWORD

วันดีคืนดีก็เกินลืมรหัสผ่านของ admin ขึ้นมาซะดื้อๆ ครั้นจะลองเดาแล้วก็ ไม่ใช่ซักรหัสเลย...

การตั้งค่าวันเวลาที่จะให้?Cronjob ทำงาน

การทำงานของระบบ?Cronjob จะเน้นการทำงานซ้ำ ๆ ในเวลาเดิมเรื่อย ๆ เช่นทำงานทุก ๆ 1 ปี และปีละ 1...

วิธี เปลี่ยนภาษาเมนู DirectAdmin เป็นภาษาไทย หรือ ภาษาอังกฤษ Language DirectAdmin

วิธี เปลี่ยนภาษาเมนู DirectAdmin เป็นภาษาไทย หรือ ภาษาอังกฤษ Language DirectAdmin 1....

วิธีแก้ไขให้ DirectAdmin อ่านภาษาไทยได้

SSH เข้าไปยัง Server หรือ ที่เรียกโปรแกรมว่า putty วิธีใช้คำสั่ง แก้ไขไฟล์ vi...