This question is maybe offtopic but i'm sure people here know much better than me about profiling.
I'm trying to profile my ejb3 stateless session beans with eclipse tptp feature. As far as i see, jboss pools my slsb's so, they cannot be gc'ed. I've tried to slim pooling from ejb3-interceptors-aop.xml via changing lines below inside slsb definition:
<annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)"> @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=0, timeout=0) </annotation>
Well... I haven't executed any profiling on ejb3 myself yet. I will start doing it in three months (by my roadmap).
I will be moving this thread to users forums, as I think you will have more possibilities of answers there.