[infinispan-issues] [JBoss JIRA] (ISPN-4094) Memory leak in RemoteQueryDslConditionsTest

Dan Berindei (JIRA) issues at jboss.org
Tue Mar 11 16:11:11 EDT 2014


Dan Berindei created ISPN-4094:
----------------------------------

             Summary: Memory leak in RemoteQueryDslConditionsTest
                 Key: ISPN-4094
                 URL: https://issues.jboss.org/browse/ISPN-4094
             Project: Infinispan
          Issue Type: Bug
          Components: Test Suite - Server
    Affects Versions: 7.0.0.Alpha1
            Reporter: Dan Berindei
            Assignee: Dan Berindei
             Fix For: 7.0.0.Alpha2


A {{RemoteCacheManager}} instance is created for each test method in {{RemoteQueryDslConditionsTest}}, because of the {{@CleanupAfterMethod}} annotation. But the {{@AfterTest}} method that stops the remote cache is only once for the entire class, so all but one of the remote cache managers are not stopped properly.

{{GenericKeyedObjectPool}} registers a timer in {{EvictionTimer}}, which keeps the pool and the {{TcpTransport}} objects in it alive. And because the size of the buffer used by the transport is very big (1838kb on my system), {{RemoteQueryDslConditionsTest}} and its subclasses can quickly fill up the heap.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list