By hello176694
Hi,
After testing the sites hosted on Digital Ocean using ab, MySql goes down and cannot connect to the database. It happens every time and I need to start the MySql service. Is there anyone who knows the reason and how to prevent this?
Thanks, Nay
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Did some load testing today and had the same issue. I was watching the resources with htop in realtime during the test and saw CPU load, memory usage went to max, then filling out the swap. Finally, mysql crashed at some point, as expected. As soon as the stress test ends, memory/cpu usage goes down. The only problem - mysql is offline. Is there any way to restart (start in this case) mysql service automatically?
If MySQL is crashing even with swap activated, I think it’s time to upgrade your droplet. Anything other than that will only affect performance.
MySQL is running out of memory. Try upgrading your droplet or adding swap: <br> <br>https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04 <br>https://www.digitalocean.com/community/articles/how-to-add-swap-on-centos-6
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.