Bug #41377 SSL memory leaks cause the dashboard to become unresponsive under heavy load
Submitted: 10 Dec 2008 22:13 Modified: 21 Feb 2014 19:33
Reporter: Gary Whizin Email Updates:
Status: Closed Impact on me:
Category:MySQL Enterprise Monitor: Server Severity:S2 (Serious)
Version: OS:Any
Assigned to: Mark Leith CPU Architecture:Any
Tags: mem200_readme

[10 Dec 2008 22:13] Gary Whizin
Using SSL (agent <--> service manager <--> dashboard), and with very heavy load (monitoring 136 servers), the dashboard becomes unacceptably slow and unresponsive every few days.

A heap dump shows hundreds of thousands of soft references to SSL objects which are not being cleaned up.

A quick search turned up the following memory leak bugs open against JCE.


How to repeat:
Configure your agents to use SSL and with each agent heartbeat connection there will be a small leak. The seriousness is directly dependent on the number of agents you have using SSL.

Suggested fix:
One possibility is to configure Tomcat to use native SSL.  Early tests show a slight increase in CPU utilization with OpenSSL vs JCE.

A second possibility is to get a patched JRE to ship.

temporary workaround: restart tomcat or reduce use of SSL if you are monitoring a substantial number of agents.
[21 Feb 2014 19:33] Mark Leith
many improvements have been made here, anf SSL is now enabled by default in 3.0 using APR and tomcat native.