-->
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: 4.1.0.Final - Performance issue executing several queries
PostPosted: Wed Feb 29, 2012 8:55 am 
Beginner
Beginner

Joined: Wed Sep 03, 2003 9:31 am
Posts: 26
I'm facing some performance issues after upgrade to 4.1.0.Final. I have the following situation:

Code:
open session
for (about 5000 iterations) {
   load
}
close session


For the first 300 iterations performance goes well, but after that I notice the queries are executed slower and slower until the following exception throws:

ERROR - [JDBC Progress Driver]:Out Of Memory
WARN - SQL Error: 30190, SQLState: HY001

The problem occurs also when I do only saves inside the loop:

Code:
open session
for {
   begin transaction
   saveOrUpdade
   commit
}
close session


Prior 4.1.0.Final upgrade I didn't have this problem. The only solution I found until now was:

Code:
for {
   open session
   do load or save
   close session
}

This way the performance is normal but it doesn't seem to be right.

By the way, I'm using c3p0 with the following configurations:

hibernate.c3p0.min_size=1
hibernate.c3p0.max_size=20
hibernate.c3p0.timeout=1800
hibernate.c3p0.max_statements=20

I tried to change pool size, max_statements, but no solution.

Any thoughts?


Top
 Profile  
 
 Post subject: Re: 4.1.0.Final - Performance issue executing several queries
PostPosted: Mon Mar 05, 2012 12:16 pm 
Beginner
Beginner

Joined: Wed Sep 03, 2003 9:31 am
Posts: 26
Hi people. Still any ideas? I'm really confused here.


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.