Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Potential runtime leak from X509Error$ErrorException #1532
I've been trying to track down a memory leak with our app in TorqueBox. A few HTTP threads seemed to be retaining an entire JRuby runtime by way of
I'm filing the issue so as to not lose that data. @bbrowning, have you ever come across this issue?
So as you found, it isn't really a runtime leak, but because it's a static threadlocal containing references to classloader-loaded types (ErrorException objects) it could cause a thread to keep that classloader alive.
In the end it didn't appear there's any reason for these to be ErrorException objects, so I eliminated that class entirely and just made it a Map<Integer, String> for the error messages.
It's now next-to-useless, but I'm not sure what consumers are using this list of messages for.