Mark Minasi's Reader Forum
Mark Minasi's Reader Forum
Home | Profile | Register | Active Topics | Active Polls | Members | Search | FAQ | Minasi Forum RSS Feed
 All Forums
 Email, Databases, Sharepoint and more
 SQL Server
 Droping SPIDs

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Note: please do not cross-post.
Cross-postings will be deleted and ignored.
Thanks for helping to keep this forum junk-free!
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Curt Posted - 12/06/2011 : 09:59:33 AM
MEMORYCLERK_SQLBUFFERPOOL (node 0) KB
VM Reserved 16809984
VM Committed 15315752
Locked Pages Allocated 0
SM Reserved 0
SM Committed 0
SinglePage Allocator 0
MultiPage Allocator 408

I'm trying to see what is causing random SPID drops on a SQL server that is the back end for a Share Point site.

I ran DBCC Memorystatus to enumerate the "Memory Clerk" readings.

Allocation pool is very low.
MEMORYCLERK_SQLCONNECTIONPOOL (node 0) KB
VM Reserved 0
VM Committed 0
Locked Pages Allocated 0
SM Reserved 0
SM Committed 0
SinglePage Allocator 5152
MultiPage Allocator 0
But I'm getting 18056 error when heavy document transfer to document libs are done by users.

I have a GB of the 16 GB of the machine reserved for the OS.
Any ideas?
3   L A T E S T    R E P L I E S    (Newest First)
Curt Posted - 12/06/2011 : 4:38:55 PM
Excellent David.
My trace files two weeks ago lead me to that theory.

The SP_Reset_connection runs several times a second.
Then -- network protocol: TCP/IP
set quoted_identifier on
set arithabort off
set numeric_roundabort off
set ansi_warnings on
set ansi_padding on
set ansi_nulls on
set concat_null_yields_null on
set cursor_close_on_commit off
set implicit_transactions off
set language us_english
set dateformat mdy
set datefirst 7
set transaction isolation level read committed

Then: exec dbo.proc_MSS_GetSchemaHighLevelInfo

quote:
Originally posted by Wiseman82

I think I've seen a similar problem caused by the application not closing the connections properly. In .NET it should be using this pattern:


//C#
string connString = "Data Source=localhost;Integrated Security=SSPI;Initial Catalog=Northwind;";

using (SqlConnection conn = new SqlConnection(connString))
{
  SqlCommand cmd = conn.CreateCommand();
  cmd.CommandText = "SELECT CustomerId, CompanyName FROM Customers";
  
  conn.Open();

  using (SqlDataReader dr = cmd.ExecuteReader())
  {
    while (dr.Read())
      Console.WriteLine("{0}\t{1}", dr.GetString(0), dr.GetString(1));
  }
}

using pattern ensures that connection is closed and disposed of correctly.

I think I've also seen the issue occur when the application is using a large number of connections simultaneously - I think this can be solved by tweaking the min/max pool sizes in the connection string.

You might also want to check how many connections you have to SQL Server:
select count(*) from sys.dm_exec_sessions

Check the "max worker threads" setting. Default value should be 0 unless you've upgraded from 2000. See here:
http://blogs.msdn.com/b/sqlsakthi/archive/2011/07/06/error-18056-state-29-the-client-was-unable-to-reuse-a-session-the-failure-id-is-29-after-upgrading-sql-2000-to-sql-2008-sp2.aspx

Wiseman82 Posted - 12/06/2011 : 1:58:38 PM
Might also be worth checking what version of SQL Server you are running and if any service packs have been applied.
Wiseman82 Posted - 12/06/2011 : 1:51:47 PM
I think I've seen a similar problem caused by the application not closing the connections properly. In .NET it should be using this pattern:


//C#
string connString = "Data Source=localhost;Integrated Security=SSPI;Initial Catalog=Northwind;";

using (SqlConnection conn = new SqlConnection(connString))
{
  SqlCommand cmd = conn.CreateCommand();
  cmd.CommandText = "SELECT CustomerId, CompanyName FROM Customers";
  
  conn.Open();

  using (SqlDataReader dr = cmd.ExecuteReader())
  {
    while (dr.Read())
      Console.WriteLine("{0}\t{1}", dr.GetString(0), dr.GetString(1));
  }
}

using pattern ensures that connection is closed and disposed of correctly.

I think I've also seen the issue occur when the application is using a large number of connections simultaneously - I think this can be solved by tweaking the min/max pool sizes in the connection string.

You might also want to check how many connections you have to SQL Server:
select count(*) from sys.dm_exec_sessions

Check the "max worker threads" setting. Default value should be 0 unless you've upgraded from 2000. See here:
http://blogs.msdn.com/b/sqlsakthi/archive/2011/07/06/error-18056-state-29-the-client-was-unable-to-reuse-a-session-the-failure-id-is-29-after-upgrading-sql-2000-to-sql-2008-sp2.aspx

Mark Minasi's Reader Forum © 2002-2011 Mark Minasi Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000