-->
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.  [ 4 posts ] 
Author Message
 Post subject: OutOfMemory with Tomcat: maybe some old Problem?
PostPosted: Wed Apr 11, 2007 5:34 am 
Newbie

Joined: Wed Apr 11, 2007 4:43 am
Posts: 1
This is the situation:

version 3.0 rc 1, 28 February 2005

version Tomcat 5.5



javax.servlet.ServletException: Servlet execution threw an exception


root cause

java.lang.OutOfMemoryError: Java heap space


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.


I still don't know if it can depend from Hibernate. Anyway
this happens sometimes, and it is associated with a massive using
of Hibernate queries.
May you give me an Help?
Thanks in advanced.

Max





Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 9:01 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
Umm...increase Tomcat's heap space.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 10:26 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
i think there's been some memory tweaks since 3.0 rc1 as well. see if you can't get to 3.2.2 and the new cglib

but yeah, like that guy before me, increase heap size

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 10:38 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
Just for reference, here is the Tomcat VM args I use.

Code:
-Dcatalina.base="D:\Workspace5\.metadata\.plugins\org.eclipse.wst.server.core\tmp0" -Dcatalina.home="D:\Tomcat\5.5" -Djava.endorsed.dirs="D:\Tomcat\5.5\common\endorsed" -Xms256m -Xmx512m -XX:MaxPermSize=128m -Dcom.sun.management.jmxremote


But I am deploying a mammoth framework (380 DAOs, 15 service objects, 420 domain objects), so maybe you can slim down the memory parameters. Tomcat is pretty slim by default.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.