Skip to main content

Mysql High CPU consumption

Comments

6 comments

  • cPanelMichael
    Hello :) Please ensure you let MySQL run for at least 24 hours to get the most accurate tuner results. Or, if the load is too much, try troubleshooting the load further to see if you can find out additional information: Troubleshooting High Loads On Linux Systems Thank you.
    0
  • oswgarcia
    Thanks for your response Michael, but I have not applied any tune yet, that is what I am trying to confirm. I know there are a lot of posts about this issue on this forum, I went through many of them, but as you know every environment is different. Basically, I would like to know if all recommendations suggested by mysqltuner will apply to my environment or just some of them. Thanks,
    0
  • cPanelMichael
    I moved this thread to our "Optimization" forum. You should receive more user-feedback here. Thank you.
    0
  • oswgarcia
    Thanks Michael.
    0
  • 24x7ss
    First of all I will suggest you to run "watch mysqladmin proc" command It will show you current db which is eating resources. If you find any db then enable slow queries so that you can check which query is taking time to execute. Also, include below variables in my.cnf. Check the correct syntax of that. =========================== key_buffer_size (> 347.7M) query_cache_size (>= 8M) join_buffer_size (> 128.0K, or always use indexes with joins) tmp_table_size (> 32M) max_heap_table_size (> 16M) thread_cache_size (start at 4) table_cache (> 64) ==========================
    0
  • oswgarcia
    Thanks 24x7 for your reply, I will follow your recommendations and will monitor the server for 24hrs. After that, I will post the results here. Thanks,
    0

Please sign in to leave a comment.