By heNMJ
Is it normal for a managed mysql database to have memory usage of 89% all the time? We have 4GB of RAM and the CPU is idle but the memory is high.
Is it possible to restart the managed mysql process to see if it frees up the memory? If so how?
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!
Hi there,
I believe that this is quite standard for MySQL servers, both managed and unmanaged. When MySQL starts, it allocates buffers and caches directly into memory. That way it improves the performance of database operations.
Here are a couple of useful commands that you could use to check your server status and storage engine status:
SHOW ENGINE INNODB STATUS\G
SHOW GLOBAL STATUS \G
The two commands will give you a better overview of the status of your cluster.
You can also check your current query process list with the following command in order to see if your cluster is busy:
SHOW [FULL] PROCESSLIST;
For more information on the server status variables, I would suggest going through the official MySQL documentation here:
https://dev.mysql.com/doc/refman/8.0/en/server-status-variables.html
Hope that this helps. Regards, Bobby
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.