Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
CPU usage problem by MySQL In a WordPress site
I have a wordpress site on digital ocean with following configuration
ubuntu 18 OS, php7.2-fpm, mariadb, wordpress
they are hosted on a 80$ droplet, A 4 core dedicated cpu droplet still my site goes DOWN, on checking graphs everything is normal i.e CPU usage is 20%, Disk at 50%, Memory at 33% but still site gives a 502 error during high traffic.
when i SSH into droplet and use Ubuntu’s command
htop i see a single
mysql pid using upto 200% CPU, is this a reporting problem ?
why all 4 core of my CPU is around 20-40% but a single
pidof mysql is using 200% CPU internally and crashing the site and how can i fix it ?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×