Permalink
Show file tree
Hide file tree
51 changes: 41 additions & 10 deletions
51
src/main/java/org/mozilla/jss/ssl/javax/JSSEngineReferenceImpl.java
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix memory leak on each TLS connection
Each TLS connection is leaking a bunch of data that isn't in the heap and so after 25k requests Tomcat uses about 2.5GB resident memory. There are large number of relationships that point at each other and we need to break the cycle so JSSEngineReferenceImpl's finalizer can run and clear all the native resources these point at. The lowest impact place to break the cycle was at SSLAlertEvent.engine. This relationship doesn't seem to be used anywhere. Once the cycle is broken, JSSEngineReferenceImpl can be garbage collected and the finalizer can run. Signed-off-by: Chris Kelley <ckelley@redhat.com>
- Loading branch information
1 parent
0eb6879
commit 5922560
Showing
3 changed files
with
50 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters