As far as i know, the .ser files contain passivated session beans (or even HTTPSession?). So the longer your application runs, the more the size of this folder. In addition to these files, the tmp folder contains the unzipped (extracted) versions of various applications deployed on JBoss.
Are .ser files getting deleted upon SFSB remove(); ?
I'm not seeing the call to StatefulSessionPersistenceManager.removePassivated() that I'd expect in the RemovalTask in SimpleStatefulCache (which is used in non-clustered configurations).
If this is the case, please open a JIRA and assign to me.
... that I'd expect in the RemovalTask in SimpleStatefulCache ...
Correction, it's not the RemovalTask which needs this, but SimpleStatefulCache.remove().
Checkout the ejb3-interceptors-aop.xml, by default, it's set to 0, which indicates keep them forever.
removalTimeoutSeconds value in the stateful session beans section
@org.jboss.annotation.ejb.cache.simple.CacheConfig (maxSize=100, idleTimeoutSeconds=300, removalTimeoutSeconds=14400)
Hi, I am running jboss-4.0.5GA and having exactly the same problem. And in that ejb3-interceptors-aop.xml file I did not find anywhere removalTimeoutSeconds value.
So how to get rid of those *.ser files automatically?
I managed to control the size of .ser files by calling the @Remove method when handling exception thrown sfbs.