[jboss-user] [JBoss AOP] - JBoss asynchronous method invocation memory leak

jdwinne do-not-reply at jboss.com
Thu Oct 2 06:24:13 EDT 2008

I'm currently using JBoss 4.2.2. In my backend jboss I've a stateless session bean where one of the method is annotated with @Asynchronous.

In my frontend server (which also uses jboss 4.2.2), I create an asynchronous proxy for my session bean and invoke the method. Everything works fine and also the method is being invoked in an asynchronous way, but each invocation causes a futureTask to be stored in memory (in a Hashmap). This map is never cleaned up, so it grows after each invocation and is causing a memory leak. After removing the asynchronous invocation and using a synchronous normal call, the memory leak is gone.

Is there some special configuration we need to set, in order to let the FutureTask to be removed after the method has been executed?

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

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

More information about the jboss-user mailing list