My computer is taking a very long time to shutdown.
How can I identify the culprit? I don't want to wait minutes for my computer to shutdown...
Is there a program I can use to track how long it takes to shutdown?
|show 3 more comments|
Windows provides Performance Counters as well as Event Tracing which allows applications to do performance analysis so that one can pin-point the cause of performance problems, amongst those that exist there is one outstanding toolkit: The Windows Performance Toolkit available in the Windows SDK.
In this toolkit you will find
Although the above linked document goes into all the details for every on/off transition, here is the general idea about tracing and analyzing the shutdown transition using
Good luck, I hope you can find the culprit. If not then drop the trace and we'll take a look for you...
My shutdowns where taking a long time to run. What follows is my example with Tom's answer.
The first graph shows the problem, Disk I/O:
My shutdown is taking over a minute and it's all hard-drive I/O.
The next graph, Disk Utilization shows a drive is nearly maxed at 100% usage:
The final graph shows Disk Utilization by Process:
Filtering down i realize it's all caused by
By right-clicking any of the hard drive graphs and selecting Summary Table, i can get the details of what files were accessed by what process:
56.4 seconds of my shutdown was spent by
But the question is why is Windows writing to my hibernation file on shutdown?
Then i remembered an option i had turned on to wipe that paging file on shutdown:
So i disabled the option, and run
But for now i've solved my minute and a half shutdown.
i went further and solved my 22s slow shutdown. From t=
Until during one shutdown i heard the familiar sound of one of my drives spinning up. The shutdown was stalled for 9 seconds because Windows was attempting to access a disk that had gone to sleep. Nine seconds later the drive responds, and a moment later the machine turned off.
Ironic that Windows wakes up a disk to tell it that it's time to go to sleep.
That would make my actual shutdown 13.5 seconds. That might be worth more investigation. But for now i've solved my 22 second shutdown.