le_sharingan wrote:
We have used JMP (Java Memory Profiler,
http://www.khelekore.org/jmp), but the only thing that it showed was that memory was increasing only in byte[] type variable. The amount of other objects (instances of classes that belong to our application packages and we also checked Hiberante's ones) seemed to be fine.
An increasing memory of the bytes array made us thought that it could be a database related issue.
I don't know if Hibernate has any memory leak, but I really think it doesn't since it's being successfully used in differente projects. It could be our bad use of Hibernate... As I said I have checked that every opened session is closed. What else could I check?
This tools is more usefull for monitoring, "Memory Leak Detector" must find problem and show code or FileName and LineNumber. It was not good idea to rewrite code, It must be possible to find this kind of problem. I was going to implement this kind of tool, but I think it must be possible to find "Memory Leak Detector" on inet.
Looks like the problem is unclosed Blob (some drivers keep blobs in memory). You can dissable pool and try to close connections, it must clear memory allocated by driver.