[JBoss JIRA] (WFLY-12446) Memory leak in StatelessSessionComponent
by Matěj Novotný (Jira)
[ https://issues.jboss.org/browse/WFLY-12446?page=com.atlassian.jira.plugin... ]
Matěj Novotný commented on WFLY-12446:
--------------------------------------
[~brian.stansberry] in CDI + EJB integration, all stateless beans are {{@Dependent}} from CDI perspective. And in this case there is {{Instance<X>}} used to resolve these dependent instances. In such case user is responsible for disposing them properly. So some of this logic should be there, not sure it's correct though, looking at it now.
I am running the reproducer locally right now.
> Memory leak in StatelessSessionComponent
> ----------------------------------------
>
> Key: WFLY-12446
> URL: https://issues.jboss.org/browse/WFLY-12446
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld, EJB
> Affects Versions: 17.0.1.Final
> Reporter: Joerg Baesner
> Assignee: Cheng Fang
> Priority: Major
> Attachments: dump-weld.png, playground-jee8.zip, server.log.gz, wfly-12446-heap-dump.png
>
>
> When running the attached reproducer application and doing a memory analysis afterwards, it looks like a memory leak, e. g.
> {code}
> One instance of "org.jboss.as.ejb3.component.stateless.StatelessSessionComponent" loaded by "org.jboss.modules.ModuleClassLoader @ 0x5e0fbc2e0" occupies 936,593,520 (96.13%) bytes. The memory is accumulated in one instance of "java.util.concurrent.ConcurrentLinkedQueue$Node" loaded by "<system class loader>".
> {code}
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 10 months
[JBoss JIRA] (WFCORE-4659) Partial revert of *not* having static default authentication context
by Ondrej Chaloupka (Jira)
[ https://issues.jboss.org/browse/WFCORE-4659?page=com.atlassian.jira.plugi... ]
Ondrej Chaloupka updated WFCORE-4659:
-------------------------------------
Summary: Partial revert of *not* having static default authentication context (was: Revert change of *not* having static default authentication context)
> Partial revert of *not* having static default authentication context
> --------------------------------------------------------------------
>
> Key: WFCORE-4659
> URL: https://issues.jboss.org/browse/WFCORE-4659
> Project: WildFly Core
> Issue Type: Bug
> Components: Security
> Affects Versions: 10.0.0.Beta4, 10.0.0.Beta6
> Reporter: Ondrej Chaloupka
> Assignee: Ondrej Chaloupka
> Priority: Blocker
>
> The definition of the default security context was removed to be static https://github.com/wildfly/wildfly-core/pull/3892/commits/4f34c962fec06e8... as it could cause defective behaviour. To quote Stuart:
> {quote}
> The 'standard' default is basically random, as it can vary based on what the first TCCL to access it is.
> {quote}
> But removing the static default authentication context makes troubles for the transaction recovery which does not have no authentication context specified. Recovery can use only global one and while it's a workaround to the real issue of recovery has not defined any, it was a working solution. With the mentioned change this solution stopped to work.
> Loading of the static authentication context should be reverted back and later fix properly.
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 10 months
[JBoss JIRA] (WFCORE-4659) Revert change of *not* having static default authentication context
by Ondrej Chaloupka (Jira)
Ondrej Chaloupka created WFCORE-4659:
----------------------------------------
Summary: Revert change of *not* having static default authentication context
Key: WFCORE-4659
URL: https://issues.jboss.org/browse/WFCORE-4659
Project: WildFly Core
Issue Type: Bug
Components: Security
Affects Versions: 10.0.0.Beta6, 10.0.0.Beta4
Reporter: Ondrej Chaloupka
Assignee: Ondrej Chaloupka
The definition of the default security context was removed to be static https://github.com/wildfly/wildfly-core/pull/3892/commits/4f34c962fec06e8... as it could cause defective behaviour. To quote Stuart:
{quote}
The 'standard' default is basically random, as it can vary based on what the first TCCL to access it is.
{quote}
But removing the static default authentication context makes troubles for the transaction recovery which does not have no authentication context specified. Recovery can use only global one and while it's a workaround to the real issue of recovery has not defined any, it was a working solution. With the mentioned change this solution stopped to work.
Loading of the static authentication context should be reverted back and later fix properly.
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 10 months