// sql server · parallelism & workers

max worker threads

Size of the worker thread pool; 0 sizes it from the CPU count.

Predeterminado
0 (auto)
Range
0, or 128 to 65535
Restart needed
No
Default checked on
SQL Server 2025

Lo que hace

With 0, a 64-bit server gets 512 workers for up to 4 logical CPUs, 512 + 16 x (CPUs - 4) for up to 64 CPUs, and 512 + 32 x (CPUs - 4) above 64. A 7-CPU server reports 560 in sys.dm_os_sys_info.max_workers_count.

Valor predeterminado

0 (auto). 0 (SQL Server 2025).

Check the current value

SELECT name, value, value_in_use, minimum, maximum, is_dynamic, is_advanced
FROM sys.configurations
WHERE name = 'max worker threads';

-- EXEC sp_configure 'max worker threads'; also works, but only while show advanced options is 1;
-- otherwise it fails with Msg 15123 because this is an advanced option.

Change it

EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'max worker threads', 1024;
RECONFIGURE;

No restart: it takes effect when RECONFIGURE runs (sys.configurations.is_dynamic = 1). It is an advanced option, so show advanced options must be on to change it.

When to change it

Only on the advice of a specific diagnosis such as THREADPOOL waits with many idle-blocked sessions (often availability groups with many databases). Fix blocking first.

What can go wrong

Each worker reserves stack memory outside max server memory; too many causes scheduler contention.

Questions about max worker threads

What is the default value of max worker threads in SQL Server?

0 (auto). 0 (SQL Server 2025).

Does changing max worker threads require a restart?

No. No restart: it takes effect when RECONFIGURE runs (sys.configurations.is_dynamic = 1). It is an advanced option, so show advanced options must be on to change it.

When should I change max worker threads?

Only on the advice of a specific diagnosis such as THREADPOOL waits with many idle-blocked sessions (often availability groups with many databases). Fix blocking first.

Back to all SQL Server settings, or check the SQL Server manual for every option.

// one client for every engine

Check max worker threads on your own server

SQLly runs the query above against SQL Server and the other engines in this reference, from one desktop app on macOS, Windows and Linux.