-->
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: out of memory when increase connection pool size
PostPosted: Thu Oct 19, 2006 10:25 pm 
Newbie

Joined: Thu Dec 22, 2005 11:15 pm
Posts: 13
Hi,

After I increase the hibernate connection pool size from 1 to 4 and run my program, then I get the exception as following:

Code:
Exception java.lang.OutOfMemoryError: requested 16000 bytes for GrET* in D:/BUILD_AREA/jdk142-update/ws/fcs/hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?


Could anyone tell me how to solve it?

Thanks in advance!

Regards,
Yulei


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 20, 2006 12:09 am 
Regular
Regular

Joined: Tue Sep 26, 2006 11:37 am
Posts: 115
Location: Sacramento, CA
The JVMs I am familiar with allow you to specify the memory to be used. You can try increasing the memory to 256MB by passing the command -Xmx256m, for example.

Of course it is possible that you have some other problem in the code. If the above (or some other value) fixes the problem I would at least load test the app.

Marius


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 20, 2006 4:21 am 
Newbie

Joined: Thu Dec 22, 2005 11:15 pm
Posts: 13
What I could not understand is that why hibernate use much more memory when increase connection pool_size from 1 to 4.

Any advice is appreciated.

Regards,
Yulei


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 20, 2006 6:28 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
It looks like a problem with your hardware or virtual memory configuration ( "malloc" fails ). Try to reproduce it on different mashine.


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.