[jboss-jira] [JBoss JIRA] Created: (JBAS-5929) Sub Pooling in JBossManagedConnectionPool MemoryLeak for sparse CRI coverage

Adrian Brock (JIRA) jira-events at lists.jboss.org
Fri Sep 5 03:55:38 EDT 2008


Sub Pooling in JBossManagedConnectionPool MemoryLeak for sparse CRI coverage
----------------------------------------------------------------------------

                 Key: JBAS-5929
                 URL: https://jira.jboss.org/jira/browse/JBAS-5929
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: JCA service
    Affects Versions: JBossAS-4.2.3.GA, JBossAS-5.0.0.CR1
            Reporter: Adrian Brock
            Assignee: Jesper Pedersen
             Fix For: JBossAS-5.0.0.GA, JBossAS-4.2.4.GA


If you look at this WIKI page, there is a caveat about "sub-pooling" within the JBossManagedConnectionPool

http://wiki.jboss.org/wiki/ConfigJCACommon
"Unless the ResourceAdapter has <reauthentication-support> using multiple security identities will create subpools for each identity."

The way this works is that we hold a map of CRI->SubPool
(CRI == ConnectionRequestInfo).

If there is sparse coverage of the CRI parameter space, you can end up with lots of subpools which holds
references to each CRI (the same issue also applies to pooling by Subject).

The sub-pools will be empted by the IdleRemover, but the sub-pools themselves will be retained
which could consume a lot a memory or even cause an OutOfMemoryError depending on the use case.

Currently the only way to clear these subpools is manually flush() the pool which will remove all the sub-pools
and allow them to be re-created as required.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list