Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
SQL Server Newbies
»
Sleeping Process...
Sleeping Process...
Rate Topic
Display Mode
Topic Options
Author
Message
bytezone
bytezone
Posted Tuesday, October 02, 2007 9:18 AM
SSC Rookie
Group: General Forum Members
Last Login: Tuesday, August 25, 2009 9:32 AM
Points: 44,
Visits: 80
Hi,
Can anyone get back to me with tips regarding this.
I am gettign connection pool error while using the .Net application. When i checked the Activity monitor on sql server 2005, i found that many process ID where presenet with status sleeping. When i check the details for these process ID, i found the SQL query in that. I then checked the applciation which executes the query..and found the connection is closing as well as doing a dispose() even on the connectin object. Then why does the activity monitor show so many process ID with sleeping status...??What does sleeping mean..???Any link i can refer to...??How to kill these process all togetther..??Now i restart when ever this prblem occurs..!!! or mnauly kill each process
Looking forward to your suggestions..thanks...
Post #405714
Mayank Khatri
Mayank Khatri
Posted Tuesday, October 02, 2007 6:17 PM
SSCommitted
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 11:43 AM
Points: 1,776,
Visits: 1,442
sleeping means connection is still connected to sql server.ur conection from app has not been kicked. sleeping anyway will not contribute to blocking or locking cause it will not take any table or object(resource) but take up some memory buffer.
Post #405981
Rahim+971-501387269
Rahim+971-501387269
Posted Monday, January 28, 2013 2:06 AM
Forum Newbie
Group: General Forum Members
Last Login: Sunday, March 03, 2013 5:31 AM
Points: 4,
Visits: 48
This is an issue that is new in SQL Server 2005, and is only exposed under specific conditions – namely,
the use of the x64 version of SQL Server 2005 and the execution of large ad hoc query batches. Unfortunately, the memory that is used to store the execution plans for those ad hoc queries is not trimmed aggressively enough in the x64 version, and as a result we see more and more connections having to wait for memory allocations before they can continue. If any connection is suspended for more than 30 seconds, the application terminates the connection by reporting that the command currently executing has timed out. This issue has been previously identified and is fixed in the upcoming service pack release (SP2) for SQL Server 2005, the Community Technology Preview (CTP) release of which is available today, and is confirmed to fix the issue in your environment.
Possible Solution:
1. Sp2
Post #1412257
GilaMonster
GilaMonster
Posted Monday, January 28, 2013 2:15 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 12:25 AM
Points: 37,734,
Visits: 29,999
Please note: 5 year old thread.
Also, ad-hoc queries and plan cache has nothing to do with sleeping connections.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1412261
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.