New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WFCORE-774] Memory leak in JBoss CLI #866
Conversation
Core - Full Integration Build 1264 is now running using a merge of f2140f9 |
Linux Build 2130 is now running using a merge of f2140f9 |
Windows Build 1663 is now running using a merge of f2140f9 |
Windows Build 1663 outcome was SUCCESS using a merge of f2140f9 |
Linux Build 2130 outcome was SUCCESS using a merge of f2140f9 |
Core - Full Integration Build 1264 outcome was SUCCESS using a merge of f2140f9 |
There is a method in CommandContext called terminateSession() which is where the clean up should take place when the session is over. Is there anything that could also be added to that method? |
Well, the only problem there was that every instance of CommandContextImpl added new JaasConfigurationWrapper to global Configuration (so it was creating longer and longer chain). JaasConfigurationWrappers are also holding references back to CommandContextImpl instances, which prevents those from being garbage collected. So I see two options:
Neither option is bullet proof, and I thought 1) is simpler. |
@darranl what's your opinion on this? |
BTW, Tomas, thanks for your effort here! |
Looks fine. |
Ok, given that no matter which option we choose it's still a static config at the end, I'm fine with this too. |
[WFCORE-774] Memory leak in JBoss CLI
https://issues.jboss.org/browse/WFCORE-774