• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Memory Leak

 
shashi wagh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi All..........

I m developing an application using Struts 2 + spring 2.5 and Hibernate3

I m using hibernate3.jar, spring-2.5.5.jar, struts2-core-2.0.11.2.jar

When I use Hibernate for querying to database Java Heap Memory goes Increasing and not decrease After logout and GC

But when use JDBC for the same it release automatically and works fine

At this point I cann't change the code. Please suggest something so that I can solve the Problem.


Thanks in Advance
Shashi
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd start by profiling the code to find out what could be causing the memory leak. It could be a bug in Struts, Spring, Hibernate or your code. Or it could just be that your are not using Struts, Spring or Hibernate correctly.

There are a varierty of profilers out there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic