[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Memory on test suite

clebert.suconic@jboss.com do-not-reply at jboss.com
Mon Aug 17 10:54:16 EDT 2009


I've added a test on SessionCloseOnGCTest (testValidateLeakWithClosedSessions), 

and the only reason the is passing is because I missed an assertion.

The test is creating two sessions, and closing them allright but not closing the factory.

The factory on this case will leak, since it will be referenced by the PingRunnable->ConnectionManager->ClientSessionFactory.

I have a fix for this already, by transfering the field from ClientSessionFactoryImpl to ClientSession.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249972#4249972

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249972



More information about the jboss-dev-forums mailing list