activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Sarva (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AMQ-2290) Memory leak in SelectorParser LRUCache
Date Thu, 18 Jun 2009 13:09:35 GMT

     [ https://issues.apache.org/activemq/browse/AMQ-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chetan Sarva updated AMQ-2290:
------------------------------

    Attachment: SelectorParser.jj.patch

I believe the issue is due to the use of the non-thread-safe HashMap as the underlying collection.
Wrapping it with Collections.synchronizedMap() should fix it. Attached is a patch which we
will be testing soon. 

> Memory leak in SelectorParser LRUCache
> --------------------------------------
>
>                 Key: AMQ-2290
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2290
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Selector
>    Affects Versions: 5.3.0
>            Reporter: Chetan Sarva
>         Attachments: selectorparser-leak.png, SelectorParser.jj.patch
>
>
> There appears to be a memory leak in the LRUCache used by the SelectorParser. We have
a simple selector-based request/response implementation which means we create a new selector
on every request and these appear to be sticking around despite the use of an LRUCache with
a 10,000 entry limit. A quick look at the LRUCache code didn't reveal any obvious problems,
so I'm not sure what's going on here. For the time being we are rolling back to 5.2. 

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


Mime
View raw message