If you've got a lot of activity, I've read that setting the MySQL server option 'thread_cache_size' to a non-zero value can help. Setting it non-zero will mean the server will keep that many connection threads around for re-use, instead of re-creating a thread for every connection. It can help get rid of some overhead.
Also make sure you're timing out your old connections as I mentioned in some of the other threads here, and now as documented on the website.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you've got a lot of activity, I've read that setting the MySQL server option 'thread_cache_size' to a non-zero value can help. Setting it non-zero will mean the server will keep that many connection threads around for re-use, instead of re-creating a thread for every connection. It can help get rid of some overhead.
Also make sure you're timing out your old connections as I mentioned in some of the other threads here, and now as documented on the website.