Jump to content

[Solved] Restart mysql server


ventbook

Recommended Posts

It restarts every 2 hours anyways right before apache restarts. Mysql uses massive amounts of memory, and freeing up all the memory right before apache restarts helps make the apache restart smoother. Apache essentially uses double memory during a restart because the old configuration continues serving pages while the new configuration loads up in parallel. Then once the new configuration is serving pages the old apache threads die when they're done. Then over the next 30 minutes or so the mysql memory usage ramps back up to its usual high amount. The other benefit of restarting mysql every 2 hours is it closes all the open connections. Before we restarted mysql regularly some people would leave mysql connections open for days on end.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...