I am coding a server side application with running java on a linux server. I use hibernate to open a session for the database, use my own sql for the query, and always close this session with try, catch, finally.
Server-side firewall using sleep mode at a very high frequency.
I already define MaxHeapSize for 3000M, but usually it uses 2.7 GB in RAM, it can decrease, but slower than increase. Once it grows to 3.6 GB of memory, more than my MaxHeapSize determines at startup.
When the memory used is 3.6 GB, I try to reset it with the -jmap command and get a 1.3 GB heapdump.
Im using mcl for eclipse to parse it, here is the dominant tree from MAT
I think the hibernation problem is a problem, I have so many org.apache.commons.collections.map.AbstractReferenceMap $ ReferenceEntry like this. It may not be disposed of by garbage collection, or it may slow down.
How can i fix this?
java memory-leaks out-of-memory hibernate heap-dump
Viet
source share