Posted On 2007-04-24 by FortyPoundHead
Keywords: Command Reference Resource Kit
Tags: Windows Commandline Windows
Views: 1558

Control Performance Monitor logging from the command line, this removes the graphical workload of Perfmon from the server making the reported values more accurate.
The Data Logging Service (DATALOG.EXE) is a Windows NT Service that performs the same function as the Performance Monitor Alert and Logging facility.





SETUP is needed once only to install the service.
Use START and STOP to Start/Stop logging.
Save .PMW files from the PERFMON GUI under the file menu.Any graphical process running on a server will affect performance to some degree, most interactive programs (in particular the command prompt) will run faster when minimised.

Monitoring Hard Drives
To enable performance counters run:
diskperf -y
This enables the objects and counters for logical and physical disks .

To enable performance counters for a striped array run:
diskperf -ye

To disable performance counters run:
diskperf -N
or set in the registry HKLM\SYSTEM\CurrentControlSet\Services\PerfDisk\Performance
REG_DWORD ''Disable'' = 1

Monitoring drive performance with perfmon will itself have a small impact on performance, any changes require a reboot and any errors will be logged in the event viewer. Disable perfmon when tuning is complete.

Monitoring a server by running Performance Monitor from a remote workstation is a good alternative to the Data Logging Service that still gives accurate figures (and you don''t need the resource kit to do this).

About the Author

FortyPoundHead has posted a total of 1974 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links