-
1. Re: Memory leak in StatelessBeanContext
jaikiran Aug 11, 2010 12:19 PM (in response to delgurth)Looks related to https://jira.jboss.org/browse/EJBTHREE-1330
-
2. Re: Memory leak in StatelessBeanContext
delgurth Aug 18, 2010 5:33 AM (in response to jaikiran)Thank you, it indeed seems to be related
Adding:
@Pool(value=PoolDefaults.POOL_IMPLEMENTATION_STRICTMAX,maxSize=5000,timeout=10000)
to the StateLessBeans that are started from the timers seems to be helping.
Now with this I've probably discovered the root cause of our problem, someone added "instance" variables to a few StateLessBeans and they are now becoming NULL between method calls (as the are "supposed" to). That was not the case before I added the @Pool annotation.
-edit
That can't have been the root cause, since it was also happening to a simple StateLessBean without "instance" variables in it. So our real problem must be related to the issue that JBoss is not releasing those StateLessBeans even though it can (the strictmax pool doesn't cause any problems).
-
3. Re: Memory leak in StatelessBeanContext
delgurth Aug 18, 2010 6:22 AM (in response to delgurth)B.T.W. the maxsize value doesn't seem to matter. Once I install this pool most StateLessBeans have only 1 instance. Which is, I.M.H.O., clearly an indicator that this is a bug.
-
4. Re: Memory leak in StatelessBeanContext
jaikiran Aug 18, 2010 6:51 AM (in response to delgurth)Wessel van Norel wrote:
B.T.W. the maxsize value doesn't seem to matter. Once I install this pool most StateLessBeans have only 1 instance. Which is, I.M.H.O., clearly an indicator that this is a bug.
You mean maxsize for StrictMaxPool? Can you provide your bean code configurations. Also see if this helps http://docs.jboss.org/ejb3/docs/reference/1.0.7/html/SessionBean_and_MDB_configuration.html