I have a particular site that is being a real hassle. They're running WordPress, but php processes seem to be spawning to the point of being far beyond any other sites on the system. I frequently find them chewing away on 16-20 of the processor cores at 100% levels for each and I am also experiencing `-bash: fork: retry: Resource temporarily unavailable` when I ssh in as the user. Root and other users seem okay, except for the sluggishness of the system being chewed up by this user.
What should I do to manage situations like this better? I have contemplated killing php procs with a cronjob to just look for php procs > 1 hour. I have also considered adjusting the ulimit for this user as well... but I am just not sure what the "best" approach to take may be for this scenario, especially given perhaps preferred cPanel options if there are any.
What should I do to manage situations like this better? I have contemplated killing php procs with a cronjob to just look for php procs > 1 hour. I have also considered adjusting the ulimit for this user as well... but I am just not sure what the "best" approach to take may be for this scenario, especially given perhaps preferred cPanel options if there are any.