Skip to main content

usr/bin/php taking too much CPU load

Comments

6 comments

  • thinkbot
    Do you have php opcode installed, like apc/eaccelerator ?
    0
  • cPanelMichael
    Hello :) I just wanted to add that the following thread might be helpful for troubleshooting the load itself: Troubleshooting High Load on Linux Systems Thank you.
    0
  • Night Hoster
    @thinkbot no PHP opcode installed.
    0
  • thinkbot
    Please install APC or eaccelerator, it would make huge difference during php processing
    0
  • Night Hoster
    @thinkbot My server was taking too much cpu load so I changed my PHP Hnadler to suphp. But ams till facing issues am unable to think that which PHP hander is best for me.
    0
  • nunim
    [quote="Night Hoster, post: 1599252">@thinkbot My server was taking too much cpu load so I changed my PHP Hnadler to suphp. But ams till facing issues am unable to think that which PHP hander is best for me.
    You'll be better off (CPU wise) with FastCGI as it's typically faster and uses less CPU (at the expense of free memory), however an OPCode cache is really the way to go. I prefer APC but xCache is supposedly better. You didn't mention what kind of website it is but if it's based on a popular CMS, i.e. WordPress, Joomla etc.. then look for a caching plugin as this can dramatically lower load especially when combined with an OPCode cache.
    0

Please sign in to leave a comment.