/usr/bin/php use a lot of cpu

Discussion in 'Site & Server Administration' started by ASTRAPI, Dec 14, 2010.

  1. #1
    Hello

    As i can see from my cpanel server the /usr/bin/php uses a lot of cpu about 20% - 40% for 4-5 processes.

    I am using nginx in front of apache and prefork.

    Nginx:
    worker_processes 4
    worker_connections 2048

    Prefork:
    StartServers 8
    MinSpareServers 10
    MaxSpareServers 10
    MaxClients 256
    MaxRequestsPerChild 20000

    Any ideas on how to optimize this php cpu load?

    Thank you
     
    ASTRAPI, Dec 14, 2010 IP