activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Siegenthaler (JIRA)" <>
Subject [jira] Updated: (AMQ-2166) MemoryLeak in the ResourceAdapter (ManagedConnectionProxy)
Date Tue, 17 Mar 2009 11:01:41 GMT


Mario Siegenthaler updated AMQ-2166:

    Attachment: AMQ-2166.patch

Removes the session from the list held by the connection as soon as the session is closed.

I also synchronized access to the session-collection since there might be more than one thread
calling #createSession().

Apply to activemq-ra.

> MemoryLeak in the ResourceAdapter (ManagedConnectionProxy)
> ----------------------------------------------------------
>                 Key: AMQ-2166
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JCA Container
>    Affects Versions: 4.1.0, 4.1.1, 4.1.2, 5.0.0, 5.1.0, 5.2.0
>            Reporter: Mario Siegenthaler
>         Attachments: AMQ-2166.patch
>   Original Estimate: 10 minutes
>  Remaining Estimate: 10 minutes
> The ActiveMQ JCA Resource Adapter leaks about 1Kb of memory when opening and closing
sessions on the same connection. As soon as the connection is closed this memory is released,
but it's a common use case to keep the connection for a very long time (ie aquire at startup
and relase at shutdown).
> The leak happens because the ManagedConnectionProxy holds a list of sessions that have
been openend, but there's no code that removes a closed session from the list.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message