Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Does CMP cause Object to be persistent irrespective of GC ?

 
Jack Numen
Ranch Hand
Posts: 42
Hibernate Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my application i have two classes which implement EntityBean class.

Container Managed Persistence is achieved through this implementation in the extending classes.

When i have seen snapshot of the Heap Dump this morning i.e after a period of 12 hours of non-usage or applicaiton idle state the object instance still persist and memory is allocated to them instead of getting Garbage collected.

Is this behavior expected of these objects if so how to overcome over-usage of memory by these objects ? .... in order to avoid performance issues or possible memory leaks.
 
es kranthi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please refer http://www.oracle.com/technetwork/articles/entarch/tuning-cmp-ejbs-088031.html it might help a bit.
 
We find this kind of rampant individuality very disturbing. But not this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!