-->
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.  [ 6 posts ] 
Author Message
 Post subject: my app freezes after repeting the same select
PostPosted: Tue Jan 25, 2005 6:34 am 
Beginner
Beginner

Joined: Tue Nov 09, 2004 6:26 am
Posts: 32
Hello

I have a grid in my web application and after viewing a few pages correctly everything freezes. This is the only place in my application this happens.
I use Spring, so I don't create manualy my sessions.
I use something like this:
query = getSession().createQuery(sqlQuery).setFirstResult(startWith).
setMaxResults(maxResults);
I use MySql and the grid displays only 10 rows at a time of a total of just 500.
If I stop right befot the "blocking" page and do something else, also the application freezes.

Here is the log:
[DEBUG] (SessionImpl.java:555) opened session
[DEBUG] (SessionImpl.java:1526) find: select ...
[DEBUG] (QueryParameters.java:109) named parameters: {}
[DEBUG] (SessionImpl.java:2242) flushing session
[DEBUG] (SessionImpl.java:2435) Flushing entities and processing referenced coll
ections
[DEBUG] (SessionImpl.java:2776) Processing unreferenced collections
[DEBUG] (SessionImpl.java:2790) Scheduling collection removes/(re)creates/update
s
[DEBUG] (SessionImpl.java:2266) Flushed: 0 insertions, 0 updates, 0 deletions to
0 objects
[DEBUG] (SessionImpl.java:2271) Flushed: 0 (re)creations, 0 updates, 0 removals
to 0 collections
[DEBUG] (SessionImpl.java:1814) Dont need to execute flush
[DEBUG] (QueryTranslator.java:199) HQL: select ...
[DEBUG] (QueryTranslator.java:200) SQL: select ...
[DEBUG] (BatcherImpl.java:196) about to open: 0 open PreparedStatements, 0 open
ResultSets


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 9:19 am 
Beginner
Beginner

Joined: Tue Nov 09, 2004 6:26 am
Posts: 32
Please, at least tell me where should I start looking for the solution of this problem.
What parameters should I watch.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 9:20 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Nobody knows.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 9:25 am 
Beginner
Beginner

Joined: Tue Nov 09, 2004 6:26 am
Posts: 32
christian wrote:
Nobody knows.


:)
Maybe I just run out of resources beacause of my incorrect use of Hibernate.
Is there a way to monitor that?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 9:26 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Use your profiler.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 10:24 am 
Beginner
Beginner

Joined: Tue Nov 09, 2004 6:26 am
Posts: 32
gsol wrote:
christian wrote:
Nobody knows.


:)
Maybe I just run out of resources beacause of my incorrect use of Hibernate.
Is there a way to monitor that?


Hm... Found the problem.
Indeed very incorrect use of hibernate.
I don't know where was I thinking when I wrote that strange (understatement) code...

Anyway, thanks for beening here. I have to admit it's one of promptest support system I've seen


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