-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Memory Leak
PostPosted: Fri Sep 26, 2008 9:57 am 
Newbie

Joined: Fri Sep 26, 2008 9:42 am
Posts: 1
Hi all
I have this problem: after certain time of using a web app, it exhausts the heap. I profiled it and it shows two classes which instances are consuming most of the heap space:
- java.util.HashMap$Entry
- java.lang.reflect.Method
Inspecting the GC path of the first I found that CGLIB proxies are holding the references of most of them. (*)
I tested this scenario:
1 - Use the application throw a web browser
2 - Check the memory. I see at this point that heap usage increases
3 - Close the browser
4 - When there's no more activity, I ran the GC manually, through the profiler
When I perform this last step I can see that memory isn't released, which leads me to think that proxies and its inner instances are still referenced.

(*) The reference chain is:
CGLIB$CALLBACK_0 of net.aper.olimpo.jano.proxy.Proxy$$EnhancerByCGLIB$$a83995b2 [Held by JVM] --> targetObject of net.aper.olimpo.cronos.hibernate.proxies.HibernateCollectionProxy -->
map of java.util.HashSet --> set of org.hibernate.collection.PersistentSet --> table of java.util.HashMap --> [12] of java.util.HashMap$Entry[17] --> java.util.HashMap$Entry

The environment is:
- Tomcat 5.5
- Hibernate 3.1.3
- CGLIB 2.1.3
- JDK 1.5

I tried upgrading to Hibernate's latest version but I wasn't able to get it working. It throws a NPE at:
javassist.util.proxy.RuntimeSupport$DefaultMethodHandler.invoke(RuntimeSupport.java:37)
net.aper.crm.blb.segmentation.segment.EntityType_$$_javassist_47.getHibernateLazyInitializer(EntityType_$$_javassist_47.java)
org.hibernate.Hibernate.isInitialized(Hibernate.java:344)

I've read all the info I was able to find in this forum and others and couldn't solve the issue.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.