Warning: Constant WP_TEMP_DIR already defined in /var/www/html/blogs/joe/wp-config.php on line 93

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/joe/wp-config.php:93) in /var/www/html/blogs/joe/wp-includes/feed-rss2-comments.php on line 8
Comments on: Finding Timeout-Prone Code with max_elapsed_time https://www.sqlskills.com/blogs/joe/finding-timeout-prone-code-max_elapsed_time/ SQL Server Performance Tuning, High Availability and Disaster Recovery Blog Wed, 09 Apr 2014 11:26:36 +0000 hourly 1 https://wordpress.org/?v=6.9.4 By: Joseph Sack https://www.sqlskills.com/blogs/joe/finding-timeout-prone-code-max_elapsed_time/#comment-6725 Wed, 09 Apr 2014 11:26:36 +0000 http://3.209.169.194/blogs/joe/?p=1180#comment-6725 In reply to Biju.

Hi Biju,

Regarding the first question, yes, first check how they are connecting. Connection libraries support query timeout setting – so find out what they are using and then you can narrow it down accordingly.

Attention events will indicate that a query was canceled by a client either due to an actual cancellation or a query timeout – so that is one method. Regarding the root-cause, there could be a number of reasons – but if you suspect memory pressure or large memory grants, there are associated methods to explore this via DMVs. And if you have the query stats available (like this post demonstrates), you could at minimum look at the memory requirements of the estimated plan.

Big topic, but a few links that are dated, but still applicable to the subject:
http://blogs.msdn.com/b/sqlqueryprocessing/archive/2006/11/14/query-execution-timeouts-in-sql-server-part-1-of-2.aspx
http://blogs.msdn.com/b/sqlqueryprocessing/archive/2006/11/22/query-execution-timeouts-in-sql-server-part-2-of-2.aspx
http://blogs.msdn.com/b/khen1234/archive/2005/10/20/483015.aspx

HTH,

Joe

]]>
By: Biju https://www.sqlskills.com/blogs/joe/finding-timeout-prone-code-max_elapsed_time/#comment-6674 Wed, 09 Apr 2014 02:50:37 +0000 http://3.209.169.194/blogs/joe/?p=1180#comment-6674 Our developers experience the same.Is there any switch for configuring execution time- out from the application side?Also I have remote query time out set to 0,We are using a express edition of sql server r2 ,and the data file is around 2gb ,I know the limitation of buffer in 1 gb ,but is there any way to prove that the time out is caused due to express edition or some thing else?

]]>