Hello,
What you are seeing is the scheduled Active Directory garbage collection process that runs every 12 hours by default. During this cycle, domain controllers scan tombstoned objects and log extensive detail, which can spike CPU usage if the environment has a large number of deleted objects or if logging is verbose.
The interval is controlled by the GarbageCollPeriod registry value under HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters. By default, this is set to 12 hours (720 minutes). You can safely adjust it to a longer interval, for example 24 hours (1440 minutes), to reduce the frequency of these CPU spikes. To do this, create or modify the GarbageCollPeriod value as a REG_DWORD in minutes. After changing it, restart the Active Directory Domain Services service or reboot the domain controller for the setting to take effect. Microsoft recommends not setting it too high, because tombstoned objects must still be cleaned up regularly to maintain database health.
On the logging side, excessive diagnostic output can add overhead. The parameters are under HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics. Each subkey corresponds to a logging category, with values from 0 (none) to 5 (verbose). If you have categories like “Garbage Collection” or “Internal Processing” set to 3 or higher, lowering them back to 1 or 2 will reduce CPU impact during the scans. Always keep logging at a level that balances troubleshooting needs with performance.
After adjusting both the garbage collection interval and the diagnostic logging levels, monitor the domain controllers with Performance Monitor counters such as NTDS\DS Garbage Collection Time and Processor\% Processor Time to confirm that the spikes are reduced. Also check the Directory Services event log for Event ID 1646, which marks the completion of garbage collection, to ensure the process still runs successfully at the new interval.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!
Domic Vo.