tags:

views:

453

answers:

1

I have a batch script I run before our performance tests that does some pre-test setup on our server; it clears log files, starts the proper services, restores the database, sets some app settings and turns on perfmon logging.

My problem; the w3wp process we need to monitor is not always present at the time we turn on perfmon logging. It's pretty much hit-or-miss if this process is in the log. The test takes anywhere from 4 to 18 hours to complete, and I don't know until the test is done whether or not w3wp was monitored (it doesn't seem that perfmon detects new processes even though my log file is configured to monitor Process(*)), which ends up wasting a lot of time.

  1. Is there a way to force w3wp to get loaded? Is there some command I can call just prior to starting the perfmon logs?
  2. Or, is it possible to configure the perfmon log to monitor processes that may not exist at the time the log is started?
+1  A: 

If you install the IIS Admin tools, you can call a command line app called TinyGet. You can pass in any page on your webserver to initialize it. This would start up the process so you can capture it.

AaronS
@AaronS: Thanks, works like a charm :)
Patrick Cuff