This content has been marked as final.
Show 3 replies
-
1. Re: Memory Consumption Very high
ssamayoagt Feb 13, 2010 4:09 PM (in response to rnicholson10)Java applications creates a lot of short lived objects, thats why you see the high heap usage but doesnt means that all is currently referenced, is just garbage.
Garbage Collector runs only when free memory is needed. And since you have a lot of heap memory GC runs when there is no more free memory for new objects which occurs when heap is almost full: about 16GB.
Which JVM are using you?
-
2. Re: Memory Consumption Very high
ivan.indrawan Feb 14, 2010 2:08 AM (in response to rnicholson10)You can try to use different algorithm of GC (if you are using JDK5 and above).
Try using this argument in your App Server:
-XX:+UseParallelGC
You can also specify the number of gc threads:
-XX:ParallelGCThreads=n
Please bear in mind this is useful when you have more than one processor in your pc/server. -
3. Re: Memory Consumption Very high
damianharvey.damianharvey.gmail.com Feb 14, 2010 10:16 AM (in response to rnicholson10)I've noticed the same. Try MessAdmin to look at your Session size.
I haven't profiled my Session's yet but that is the next step. Would be interesting to know what is being stored as my sessions immediately jump to >70MB when a page using the EntityManager is first hit.
Cheers,
D..