Is It a Problem?
Occasional waits after a restart or first use are the design. It is not a known contention point, and it was zero on our SQL Server 2025 lab. Get Wait Statistics does not filter it out, so if it ranks, you will see it. The pattern worth knowing is an application domain being unloaded and reloaded repeatedly, so callers keep queuing while it starts again.
What It Means
Microsoft’s definition: it occurs while CLR waits for an application domain to complete startup. SQL Server hosts .NET code in application domains, and the first CLR call after one is created pays the startup cost; sessions arriving meanwhile wait here. One example is during compilation of a query that uses a CLR user-defined function.
When It Does Matter
When it keeps coming back. The error log records application domains being unloaded and created, usually with a reason, and memory pressure is the commonly reported trigger. If unloads repeat, look at the memory picture of the instance: max server memory and what else competes for memory. The baseline to monitor is the number of unload messages per day, which should be close to zero.
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
- 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. This page.
- 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
SQLCLR_APPDOMAIN is usually small. If you are chasing a real problem, start with the waits that cost you time.
- The waits that usually matter, ranked, with what each one is telling you.
- Performance & Troubleshooting, the scripts and guides for this part of the stack.
Leave a Reply