CLR_MANUAL_EVENT Wait Type in SQL Server

⏳Part of the SQL Server Wait Types Library, every wait type explained.Related deep dive: SOS_SCHEDULER_YIELD Wait TypeRelated pillar: Performance & Troubleshooting

Is It a Problem?

Almost never. It is commonly filtered as benign, and Get Wait Statistics filters it out by default.


What It Means

Microsoft’s definition: a task performing CLR execution, and is waiting for a specific manual event to be initiated. It is a CLR worker thread waiting for something to do, like CLR_AUTO_EVENT.

On our SQL Server 2025 lab, with clr enabled set to 0, CLR_AUTO_EVENT and CLR_MANUAL_EVENT both still accumulated, so these waits appear whether or not you have deployed an assembly.


When It Does Matter

Only if you run your own UNSAFE assemblies that use ManualResetEvent; then the wait can reflect your code’s signalling, and the review belongs to the assembly. For safe assemblies, ignore it.


The CLR Family

These are the SQL CLR waits: CLR worker threads idling, and the work of loading assemblies and application domains. Most are commonly filtered as benign. If one is near the top of your waits, start from the waits that usually matter instead.

  • CLR_AUTO_EVENTAuto-reset event. A CLR task waiting on an auto-reset event; long waits are typical.Usually noise
  • CLR_MANUAL_EVENTManual-reset event. A CLR task waiting on a manual-reset event.Usually noise. This page.
  • CLR_SEMAPHORESemaphore. A CLR task waiting for a semaphore.Usually noise
  • SQLCLR_APPDOMAINApp domain startup. Waiting for a CLR application domain to finish starting.Worth a look when it climbs
  • SQLCLR_ASSEMBLYAssembly list. Waiting for access to the loaded assembly list in the app domain.Usually noise
  • ASSEMBLY_LOAD and assembly waitsAssembly loading. Exclusive access while an assembly loads.Usually noise

Where To Go Next

CLR_MANUAL_EVENT is background noise on a healthy instance. If you are chasing a real problem, start with the waits that cost you time.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *