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: Command timeout not working
PostPosted: Thu Nov 24, 2005 4:14 pm 
Regular
Regular

Joined: Thu May 12, 2005 10:12 am
Posts: 71
Location: Buenos Aires, Argentina
Hi, I was stress testing the application and found that under heavy use I get a timeout exception from the connection when the NH was lazy loading a relationship.

It is very hard to locate the exact point were this happens, but I've set the command_timeout value to a insanely high value of 1800 (30 minutes) with no success.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 26, 2005 9:45 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
Do you mean that some of your tests take more than 30 minutes to complete? :o

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 26, 2005 1:09 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
Is it an ASP.NET app? IIS may be timing out. Any time you need that long to complete one thing, many other things can mess with you. There could be network issues, garbage collection, virus scanning, etc. causing timeouts.

Do you have log4net configured? What do the logs say? How about the database logs?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 12, 2006 1:34 pm 
Newbie

Joined: Fri May 13, 2005 11:14 am
Posts: 18
For lazy loading, it seems like the command in generated in Loader.cs, in the following method -

protected virtual IDbCommand PrepareQueryCommand(
SqlString sqlString,
QueryParameters parameters,
bool scroll,
ISessionImplementor session )

the command created from

IDbCommand command = session.Batcher.PrepareQueryCommand( sqlString, parameters.CommandType );

doesn't have the correct CommandTimeout set. It is only set if there is a selection.Timeout and I don't see how that is passed.

Is there a way we can set this?


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.