0 Replies Latest reply on Dec 21, 2006 2:16 AM by Juha Moisio

    Possible memory leak

    Juha Moisio Newbie

      Hi,

      We are getting OOMEs running our application.
      We have processed java heap dumps using
      IBM Heap analyzer for their JVM.

      It finds leak suspect org.hibernate.cfg.Settings.
      If someone is able to look whole heap dump, I can send it.

      Could somebody tell me why there is so many
      instances of org.hibernate.cfg.Settings and
      how to get rid of them? :)

      21 304 592 [216] 49 array of EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap$Entry 0x93177138
       21 302 216 [40] 3 EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap$Entry 0x93090030
       21 301 936 [240] 48 org/jboss/ejb3/stateful/StatefulContainer 0x92a117a0
       20 657 472 [40] 5 org/jnp/interfaces/NamingContext 0x92a12c68
       20 262 616 [40] 4 org/jnp/server/NamingServer 0x92a12770
       20 261 936 [56] 2 java/util/Hashtable 0x92a12790
       20 261 880 [32] 3 array of java/util/Hashtable$Entry 0x92a127b8
       20 261 176 [40] 4 java/util/Hashtable$HashtableCacheHashEntry 0x954b6070
       20 258 640 [48] 4 javax/naming/Binding 0x954b6050
       20 258 592 [32] 3 org/jnp/interfaces/MarshalledValuePair 0x954b5e20
       20 258 296 [40] 3 org/jboss/ejb3/BaseSessionContext 0x954b5e08
       20 257 888 [112] 9 org/jboss/ejb3/stateful/StatefulBeanContext 0x954b5d78
       11 653 656 [64] 4 java/util/HashMap 0x954b6df0
       11 653 528 [24] 2 array of java/util/HashMap$Entry 0x954b6e20
       11 653 504 [40] 3 java/util/HashMap$Entry 0x954b6e70
       11 653 464 [64] 7 org/hibernate/ejb/EntityManagerImpl 0x954b60c8
       11 643 048 [144] 25 org/hibernate/impl/SessionFactoryImpl 0x92b56548
       5 782 520 [200] 14 org/hibernate/cfg/Settings 0x935c31b8
       3 820 536 [40] 4 org/hibernate/engine/query/QueryPlanCache 0x935f84f8
       1 389 712 [304] 100 class org/hibernate/impl/SessionFactoryImpl 0x35f2a360
       549 256 [64] 3 java/util/HashMap 0x93854eb8
       71 872 [144] 30 org/hibernate/event/EventListeners 0x92b56f30
       9 432 [56] 2 java/util/Properties 0x935fab28
       5 416 [40] 2 java/util/Collections$UnmodifiableMap 0x93869990
       3 656 [64] 2 java/util/HashMap 0x93869b30
       3 112 [24] 1 org/hibernate/ejb/Ejb3Configuration$Ejb3EntityNotFoundDelegate 0x92a73918
       1 496 [280] 6 org/hibernate/stat/StatisticsImpl 0x935f7480
       1 280 [32] 3 org/hibernate/context/JTASessionContext 0x9366bc88
       1 176 [64] 2 java/util/HashMap 0x935fcb18
      






      Br,

      Juha Moisio