Network Management

Preemptive Wait Types GETPROCADDRESS

This content will describe the SQL Server wait type that can be encountered more or less commonly, which includes the description, steps that should be taken, and additional resources that could be used for troubleshooting.

First published date

5/27/2022 1:35 AM

Last published date

5/27/2022 1:43 AM

Overview

This wait accumulates while SQL Server is waiting for the Operating System to return the procedure address so it can execute an extended stored procedure.

These procedures are deprecated and should not be used for further development. These procedures run in unmanaged memory space and therefore can cause SQL Server to crash if not written correctly.
 

Product section

Network Performance Monitor

Resolution

Preemptive Wait Types
There are many preemptive wait types that SQL Server uses, each prefixed with 'PREEMPTIVE'. All of them basically mean that SQL Server is calling out to Windows to perform an OS function. To perform the task, SQL Server obtains an OS thread that is managed using Windows' preemptive scheduling. The function is performed using the Windows thread while SQL Server waits for the function to complete.

In most cases, the name of the Windows function being called is shown in the suffix of the wait type, and you can simply do a search to learn more about the function.

For Instance: 

Wait Type = PREEMPTIVE_OS_GETPROCADDRESS
Indicated Function = GETPROCADDRESS

Wait Type = PREEMPTIVE_OS_REPORTEVENT
Indicated Function = REPORTEVENT

Wait Type = PREEMPTIVE_OS_CRYPTACQUIRECONTEX
Indicated Function = CRYPTACQUIRECONTEX


The content posted herein are provided as a suggestion or recommendation to you for your internal use. The information set forth herein may come from third party website or customers. SolarWinds is not liable for any downtime or any issue that may occur if you perform the following suggestions on the link provided. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.