]
Brian Stansberry moved WFLY-4798 to WFCORE-774:
-----------------------------------------------
Project: WildFly Core (was: WildFly)
Key: WFCORE-774 (was: WFLY-4798)
Affects Version/s: 2.0.0.Alpha4
1.0.0.CR6
(was: 8.2.0.Final)
(was: 9.0.0.CR2)
(was: 10.0.0.Alpha3)
Component/s: CLI
(was: CLI)
Memory leak in JBoss CLI
------------------------
Key: WFCORE-774
URL:
https://issues.jboss.org/browse/WFCORE-774
Project: WildFly Core
Issue Type: Bug
Components: CLI
Affects Versions: 2.0.0.Alpha4, 1.0.0.CR6
Reporter: Josef Cacek
Assignee: Alexey Loubyansky
The JBoss CLI contains a memory leak related to CLI Kerberos authentication.
The {{org.jboss.as.cli.impl.CommandContextImpl}} class calls the {{initJaasConfig()}} in
its constructor,
which adds a new {{JaasConfigurationWrapper}} instance to
{{javax.security.auth.login.Configuration}}.
It's done for every new {{CommandContext}} instance, so it consumes more and more
memory. There is no cleanup for the registered
configurations.
Moreover, the searches for appropriate
login config take more and more time because they have to go through all the wrapped
objects.