0 Replies Latest reply on Jun 30, 2010 6:39 AM by Mayank Mittal

    Possible Memory Leak

    Mayank Mittal Novice

      Hello All,

         I'm encountring a strange problem.

         If I run my application for few dayz,


      • Its memory consumption raised to 79% of the physical memory ( top command)
      • Heap grows to its maximum size.
      • GC called very frequently but unable to reclaim memory.
      • String & Hashmap objects increases to a terrific limit (smoetimes to even 80MB of String objects).
      • And finally JBoss stops responding


      When i try to find out the root cause, I found that most of the String objects are hold by Hibernate itself and never gets cleaned up (snapshot attached).


      In order to find out is there any memory leak in Hibernate, i found some information on one of the forum (https://forum.hibernate.org/viewtopic.php?f=1&t=995325).

      Although the problem reported in this forum is on IBM WebSphere, but I think this might be the cause of leak here too.


      Here I'm using following versions

      • JBoss AS 4.2.3 GA
      • JBoss Transaction 4.2.3
      • JBoss Remoting 2.5.2 SP3
      • JBoss Messaging 1.4.5 GA
      • Hibernate 3 Core 3.2.4 SP1
      • Hibernate Annotations 3.2.1
      • Hibernate EntityManager 3.2.1


      Can anyone help me out what is the real cause for this ?.