[
http://jira.jboss.com/jira/browse/JBSEAM-2436?page=comments#action_12402994 ]
Susanne Jarl commented on JBSEAM-2436:
--------------------------------------
This is not a production issue from my own written code. I would never post them in JIRA,
I really investigate and think a lot before I post here. I also posted in the forum first
but no one answered. But maybe I could have stripped my code a bit from stuff that is not
interesting but the first time I posted I didn't know exactly what was the problem.
I think I discovered a very general serious bug and i reported here in JIRA. If I try to
explain it again it goes like this.
If you have a session-scoped SFSB which holds entites, the entities does not get
destroyed. So in production where many instances of the SFSB is created this leads to
OutOfMemoryException IF the session timeout is not set to 2 minutes, because then the
instances will be destroyed(!).
I have investigated this for many many hours and watched the number of entities just
growing (although I saw some instances got removed if I checked the number of instances
really often but just a few ). I tried different solutions in my code but it was the
exactly same result as long as I had the SFSB in session scope and the setting for Session
Timeout more than 2 minutes.
I really think you should look into this because it is a really serious bug. I hade to
rewrite all my code not to use SFSB in session scope. Hopefully Antoine Sabot-Durand will
provide you some useful code. Otherwise you could use mine, but you may strip it from all
stuff that is not intresting. I could help with that as well but I can't really test
this since I don't have any environment set up for load testing. If there is any other
information or help I can provide please tell me.
Session-scoped SFSB which holds entities leaks memory
-----------------------------------------------------
Key: JBSEAM-2436
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2436
Project: JBoss Seam
Issue Type: Bug
Components: EJB3
Affects Versions: 2.0.0.GA
Environment: Suse Linux, JBoss 4.2.2.GA, Java 1.6.03, PostgreSQL 8.2
Reporter: Susanne Jarl
Assigned To: Pete Muir
Fix For: 2.1.0.GA
Session-scoped SFSB which has entities in an object does not get destroyed. It leads to
memory leak in production. Please read:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=126542
The problem appeared after upgrading to Seam 2.0.0.GA. My code worked fine in Seam 1.2.1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira