I've analyzed the Heapdump and there is a reference from "org.jboss.ejb3.stateful.StatefulBeanContext" to my stateful bean.
Shouldn't be this reference deleted after "destroy" the bean? Perhaps this is the problem why the garbage collector not remove my bean.
I think this is a bug in the ejb3 implementation of jboss stateful session beans.
I've changed my bean to a ejb2 bean and the bean is evicted correct from memory.
Could you please try this against AS 5.0.1?