Bugs item #631335, was opened at 2002-10-30 16:32
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=631335&group_id=22866
Category: JBossCMP
Group: v2.4 (stable)
>Status: Closed
>Resolution: Works For Me
Priority: 9
Submitted By: John Shi (johnshi)
Assigned to: Bill Burke (patriot1burke)
Summary: JBoss Memory Leak
Initial Comment:
Puting creating and removing a record in a while loop to
do it forever with primary key (Integer) constantly
increasing will cause memory build up. The instance
count of CacheKey, HashMap, MashalledObject, .. will
grow rapidly.
Attached is the jar file which was a JBoss CD example.
The Upload.java is modified to do the job mentioned
above. This file has been cahnged to two files:
TestNoProblem.java, which does not increase the
primary key value, and the other one is
TestWithProblem.java which constantly increases the
primary key value.
----------------------------------------------------------------------
>Comment By: Scott M Stark (starksm)
Date: 2002-11-07 19:32
Message:
Logged In: YES
user_id=175228
This works for me against the current 2.4.10beta3 and you
obviously have not tested against this version as the attached
code will not deploy due to the out of date jboss.xml
descriptor. After 5 minutes and 10000+ insert/removes I see
0 increase in memory.
I used this jboss.xml descriptor:
<jboss>
<enterprise-beans>
<session>
<ejb-name>CDCollectionBean</ejb-name>
<jndi-name>cd/CDCollection</jndi-name>
</session>
<entity>
<ejb-name>CDBean</ejb-name>
<jndi-name>cd/CD</jndi-name>
</entity>
</enterprise-beans>
</jboss>
and run the client using:
build 418>ant -Dclient=TestWithProblem cmp-cd-upload
Test against the JBoss-2.4.10beta3.zip and it you still think
there is a problem attach the ejb jar you deployed along with
the client jar and ant script used to run the client.
----------------------------------------------------------------------
Comment By: John Shi (johnshi)
Date: 2002-11-07 14:33
Message:
Logged In: YES
user_id=639355
The example that I attached with the bug reporting is
originally from JBoss and it is using HyperSonic. In my
application, we are using DB2.
----------------------------------------------------------------------
Comment By: Infogest (infogest)
Date: 2002-11-07 02:39
Message:
Logged In: YES
user_id=167837
I have similar problems. I have a batch job that creates a lot of
entity each night. I have to restart JBOSS every morning.
That's a pain.
But I've made an experiment moving from SAPDB to
PostgreSQL and result are encouraging : no more memory
leaks.
Actually I couldn't make a complete test of the production
environment but I'm going to move from SapDB to Postgres
anyway.
Which database backend are you using ?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=631335&group_id=22866
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development