fortypoundhead.com

MONITOR

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


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.

Syntax
MONITOR setup

MONITOR %SYSTEMROOT%\SYSTEM32\MyLogSet.PMW

MONITOR start

MONITOR stop

Key
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.

Alternatives:
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:54.224.50.28

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




Recent Forum Posts

Advanced search added
dwirch posted on September 23, 2017 at about 13:44 in Site News

Job Spammer: Gaurav Mehta - AgreeYa Solutions
dwirch posted on September 22, 2017 at about 10:35 in Spammers

Job Spammer: Prutha Siri - Javelin Systems
dwirch posted on September 10, 2017 at about 6:15 in Spammers

New security implemented
dwirch posted on September 7, 2017 at about 7:16 in Site News

Malicious IP Checker Companion Tool
dwirch posted on August 12, 2017 at about 20:24 in Site News

Job Spammer: Steve Adams
dwirch posted on August 8, 2017 at about 7:44 in Spammers