Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 max worker threads

Author  Topic 

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2007-05-31 : 10:54:24
Here's what I know about max worker threads:

http://technet.microsoft.com/en-us/library/ms187024.aspx
http://sqlblogcasts.com/blogs/thepremiers/archive/2007/05/17/max-worker-threads-configuration-in-sql-server-2005.aspx
and this is kind-of related:
http://arstechnica.com/news.ars/post/20070529-microsoft-exec-next-version-of-windows-to-be-fundamentally-redesigned.html

How do you know how many threads are being used and how many of those are being shared? Or whether they are all even being used? Are there PerfMon stats for this?

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-05-31 : 17:05:54
How many concurrent active connections on the server?
Go to Top of Page

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2007-06-01 : 03:35:26
About 700. But what does active connections got to do with worker threads?
It's a 64-bit 4-processor server.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-06-02 : 00:40:27
Each active connection uses a worker thread.
Go to Top of Page

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2007-06-02 : 12:26:56
quote:
Originally posted by rmiao

Each active connection uses a worker thread.



That's not my understanding. Do you have a BOL reference that says that?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-06-03 : 01:49:46
You can find details in books online.
Go to Top of Page

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2007-06-04 : 07:26:55
I think you are wrong. From BOL:

"Thread pooling helps optimize performance when large numbers of clients are connected to the server. Usually, a separate operating system thread is created for each client connection to consume fewer system resources. However, with hundreds of connections to the server, using one thread per connection can consume large amounts of system resources. The max worker threads option enables SQL Server to create a pool of worker threads to service a larger number of client connections, which improves performance."

So each connection DOES NOT use a worker thread like you claimed.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-06-04 : 16:38:25
I didn't say each connectionuse a worker thread. What I said is each ACTIVE connection uses a worker thread, that's concept of pooling.
Go to Top of Page

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2007-06-04 : 17:32:12
Yes, I know that. But that's not what I asked at the outset:

How do you know how many threads are being used and how many of those are being shared? Or whether they are all even being used? Are there PerfMon stats for this?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-06-04 : 22:52:18
Not as I know of.
Go to Top of Page
   

- Advertisement -