-->
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.  [ 2 posts ] 
Author Message
 Post subject: CGLIB ENHANCEMENT FAILED -- solution to OutOfMemoryError
PostPosted: Thu Jun 03, 2004 11:26 am 
Newbie

Joined: Wed Mar 31, 2004 11:40 am
Posts: 4
Hi,
I have had hard time figuring out an OutOfMemoryError problem that crashed with CGLIB ENHANCEMENT FAILED. I ran into this problem when using datamodels of about 2000 classes. The reason for this I think is that CGLIB will run out of space for its proxies. For this situation, changing the -Xmx setting will do nothing because reflective data is not stored on the heap.

I think someone out there will run in the same problem, so I am posting the solution : increase the perm size with a JVM argument :

-XX:MaxPermSize (


Top
 Profile  
 
 Post subject: CGLIB ENHANCEMENT FAILED -- solution to OutOfMemoryError
PostPosted: Wed Oct 13, 2004 5:01 pm 
Newbie

Joined: Thu Apr 08, 2004 2:34 pm
Posts: 1
We had the same problem and the MaxPermSize solution worked great. We have about 1000 tables and we blow out at about 100MB of MaxPermSize.

Thanks for the fix.


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

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.