Skip to main content

MySQL Keeps Crashing

Comments

7 comments

  • SysSachin
    Out of memory: The process "mysqld" was terminated because the system is low on memory.

    Mysql process terminated due to low memory on your server. Please check the memory status using the below command.
    free -m
    0
  • gseven
    This is the current status of RAM: s26.postimg.org/d5iu8rekp/Screen_Shot_2017-03-25_at_6.23.26_PM.png It suddenly crashes in 2-3 days and works fine again after restart. Corrupt database could be an issue?
    Mysql process terminated due to low memory on your server. Please check the memory status using the below command.
    free -m

    Mod Note: Please Attach Images to Your Posts
    0
  • SysSachin
    Hello, You are facing because of low memory so you need to monitor your server and need to find out which process is using your server memory. Also I will suggest you please try to run MySQLTuner.pl on your server and adjust your MySQL configuration.
    0
  • gseven
    Thank you, SysSachin. These are the recommendations from MySQLTuner: MySQLTuner.pl on your server and adjust your MySQL configuration.
    0
  • SysSachin
    You can modify/add values to the /etc/my.cnf file based on the "Variables to adjust" from the MySQL tuner. Let MySQL run for at least 24 hours after the change and then run the tuner again to see if additional adjustments are recommended. Also, Monitor your server and try to find out which process is using high memory on your server
    0
  • cPanelMichael
    Hello, You may also want to utilize the "mysqladmin processlist" command to see if any particular databases or tables are using an excessive amount of resources at any given time. Thank you.
    0
  • ssfred
    Hello Since OOM killer frequently terminates MySQL server, it means that MySQL keeps on occupying the top position for resource usage. So the prime target is d to identify the cause for the issue. There can be multiple reasons such as a corrupted DB, poorly optimized db queries, unlimited connections etc. Kindly perform the following checks 1. As mentioned by cPanelMichael, Check the active mysql process by executing the command #mysqladmin processlist or #mysqladmin proc stat 2. Check whether slow queries are eating up resources by enabling "Slow Query Log" 3. Check whether any resource monitoring tools like PRM are installed and they gets triggered and terminates the process. Thank You,
    0

Please sign in to leave a comment.