• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

CPU stuck on WAIT, and apache and mysql hanged...

A

andor

Guest
Hi everyone!



I set up a LAMP server with a Plesk control panel, and from time to time its getting stuck with the CPU use 100% in WAIT state.


MySQL queries take ages to finish, and the http queries don't ever finish to stuck in the queue, so finally I'm getting like 100 or 200 http processes, and a stuck MySQL.

With a lot of difficulty I log on to the server, restart the apache and the mysql server, and it begins to be responsive again.

I've been checking the slowqueries on mysql, and I see some, but are very simple ones, so I think they're going slow because the server is stuck on "WAIT", and I think I don't see any unusual quantity of queries on the server.

How can I check what are my proccesses WAITing for? Is my hard disk doing something weird, maybe it's dying and when reading or writing on some position it gets stuck?

Thanks
 
you can get the PID of the process and try and do an lsof -p <pid> and see if you can see what its using. You can also set the hung_task_timeout_secs sysctl setting and see if that helps.
 
Back
Top