Skip to main content

How to manage runaway PHP procs for a site?

Comments

3 comments

  • ylluminate
    FYI, here is a script that I wrote to kill php processes (I have it set to kill them all with pid runtime > 1, but that can be adjusted to 3600 for an hour; and you would want to replace USERNAME with a desired username there): /https://gist.github.com/996c8ab0609811425457 This doesn't seem to resolve the performance problem though for the site and a slew more php processes appear to spawn fairly rapidly again for this WordPress site.
    0
  • cPanelPeter cPanel Staff
    Hello, Most likely this user has a plugin that is resource intensive. I would advise him to disable all plugins, and enable one at a time until you find the cause of the problem.
    0
  • ThinIce
    In my experience, this isoften either a site in need of a caching plugin (i.e. wp_supercache or similar) or a site being scanned by a vulnerability finding tool. I'd suggest taking a look at the apache log for the site, this may indicate what's happening (the latter case will for example have lots of requests to plugin files that aren't actually installed).
    0

Please sign in to leave a comment.