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: hibernate performance issues
PostPosted: Tue Mar 15, 2011 12:41 pm 
Newbie

Joined: Fri Feb 25, 2011 2:34 am
Posts: 11
hi friends,
I just setp my first hibernate code on production and found that my server is crashing with error

Code:
Servlet.service() for servlet default threw exceptionjava.lang.OutOfMemoryError: PermGen space



Any idea what kind of mistakes one does , it is a small application with just a few queries.

pl. advise, i know the question is very general but i need help pl advise.

I am using struts 2.x, mysql, centos linux, hibernate 3
thanks
abhi


Top
 Profile  
 
 Post subject: Re: hibernate performance issues
PostPosted: Wed Mar 16, 2011 3:56 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
The default PermGen space is between 64m and 80m depending on your system architecture,
and if your application loads many classes it easily may be to small.

I suggest yoy to increase the PermGen space by specifying vmOption

-XX:MaxPermSize=128m


If 'OutOfMemoryError: PermGen space' still appears even with higher values,
then as next step I suggest to analyze the PermGen space i.e. by enabling classloader loggings.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.