Remotely log CPU processes

Soldato
Joined
12 Nov 2002
Posts
14,600
Location
In my own little world
I have a 2008 R2 VM (VMware) that I need to remotely log the processes it's running as every so often the CPUs max out and becomes unresponsive and needs a reboot. As the server becomes unresponsive I can't see what is actually causing it. Any ideas ?

MW
 
tasklist or pslist (from sysinternals) will do what you want. Create a scheduled task to run every few minutes and append to a text file.

Of course if everything is completely locked up, there is no guarantee it'll run, but if you're lucky it might give you a hint.
 
I have written a vbscript to do exactly this, it collects cpu ram usage and write it to a csv file (so you can create fancy graphs) and back end SQL database. It also has alerts so when cpu hits a threshold it will send an email out.

If interested I can post the vbscript here and yours to do as you please
 
Would New Relic's server monitoring manage this for you? Not strictly designed to get this information as it's more based around application metrics and the server stuff seems to be a little offshoot from their core product - but it reports every minute and details enough for me that it'll do the job right.
 
Back
Top Bottom