I'm seeing 137 XTP_THREAD_POOL processes on a VM with 16 cores. Why?

Michael MacGregor 86 Reputation points
2021-05-14T16:02:58.587+00:00

When I run sp_who2, I am seeing 137 XTP_THREAD_POOL processes on an Windows 2019 Server VM with a 2.3GHz 16 core / 32 vCPU with 128GB RAM. Why am I seeing so many of these processes? We have several other similar VMs and don't see the same thing.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,493 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Cris Zhan-MSFT 6,646 Reputation points
    2021-05-18T10:02:15.74+00:00

    Hi,

    It seems the XTP_THREAD_POOL does point to SQL Server XTP (in-memory OLTP).

    > from what I understand there shouldn't be more processes than the number of virtual CPUs, as there are 32 of those, why would there have been 137 processes?

    SQL Server engine will assign a unique identification number to each connection(SQL Server allows a maximum of 32,767 user connections).It is the Server Process ID and commonly known as SPID.

    For a 64-bit server with 32 vCPUs, the number of max worker threads configured by SQL Server 2019 is 960 by default.
    https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-the-max-worker-threads-server-configuration-option?view=sql-server-ver15

    Each process uses one or more of the many worker threads that SQL Server has


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.