max worker threads Options

What does it do?

The max worker threads option controls the number of worker threads available to SQL Server.  One thread typically handles one connection, and it used to handle a batch of SQL statements as the arrive from the client.

Viewing current settings:

Run EXEC sp_configure, and look at the ‘max worker threads’ option.  If you only see a limited list of options, you need to enable the ‘show advanced option’ setting, followed by RECONFIGURE.

EXEC sp_configure ‘show advanced option’, ‘1’;
RECONFIGURE;
EXEC sp_configure;

As long as the number of connections is less than or equal to the number of threads available, each connection will get a single thread.  After that,  SQL Server will create a pool of worker threads to handle a larger number of clients.

Suggested settings:

For a 32 bit system, Microsoft recommends:

<= 4 processors = 256 max worker threads
8 processors = 288 max worker threads
16 processors = 352 max worker threads
32 processors = 480 max worker threads

Tagged , , , , ,

5 thoughts on “max worker threads Options

  1. hello To All Members.Wish you all guys wishes be ok.

  2. ayecyytKjo6 says:

    What would certainly be great relating to this message board is if you made it possible to sign up for threads which you produce; Is this plausible?

    • mxhxrdba says:

      Hi,
      When leaving a comment, there is an option “Notify me of new posts via email.”. If you check that box, you will be alerted.

      Thanks for visiting!

  3. Just saying Hi for now!

  4. some one says:

    In 2005 the default value for this setting has changed from 255 (SQL2k) to 0 (dynamic in SQL2k5).

    Zero auto-configures the number of max worker threads depending on the number of processors, using the formula (256+( -4) * 8) for 32-bit SQL Server and twice that for 64-bit SQL Server.

Leave a comment