Using Perfmon Windows 2008 R2

using perfmon in win2k3 was way too easy. unfortunately i haven't had the need till recently to use it again and perfmon in win2k8 r2 is very different.

What i need to capture is Total CPU USAGE and also CPU usage of certain proprietary applications we use.  Need to pull it in a CSV so we can do analysis from different sever and different builds of the application.

I recall i was able to add the process before but i don't see that option, also i don't see the total cpu USAGE option unless there is another way of doing this.
any help would be appreciated thanks.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brad HoweDevOps ManagerCommented:
Hi there,

This is done use the resource monitor. Please take a read through the techrepublic article below and let us know if you have any questions.

z969307Author Commented:
thanks for pointing this out...
I am aware of resource monitor, but I would like to be able to capture the metrics over a period of time and be able to import into excel for analysis. I don't see the option going thru the article.
Brad HoweDevOps ManagerCommented:
Got ya.

For this then you need to use PERFMON. When you open Perform you will need to create a new data collector set under user defined group and let it run for the duration of your need.

1. right click on User defined "NEW
2. Create new Data collector set
3 .Create manually.
4. Create data logs "performance counters"
5. Click ADD, browse to PROCESS
5. Select %processor time
6. Select application instance from below
7. Start collector.

You can also right click on Datacollector01 once it is created and change the log out format from Binary to CSV, TXT, SQL etc...

Once you feel you have enough data, you can stop it and generate a report.

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Ratnesh MishraCommented:
So what I understood , you need to collect information regarding Overall CPU usage  and CPU usage per process . If I am correct , you can try this :-

Step 1. Open perfmon, create a Data Collection set manually.
Step 2. Click next , then select performance counter in "Create data logs" . Then click next .
Step 3. Now click on Add for adding performance counter , select Process in "Select counter from computer:" and then select the desired process from "Instances of selected object" . [Don't select all instances] .
Step 4. Once done then again do the selection of Processor [Depecnds whats your need is as there are 3 options for you] However I would suggest you to select processor and then the values you are looking for or for overall you can select all instances.
Step 5 . Click on finish .
Step 6. Click on the properties of you newly created data collector set and go to stop condition and then select for how log you want it to run .Minimum time duration should be least 4 hours for log collection .
Step 7 . Hope you are aware of how to set time interval for sample collection . By default its always 15 sec .

Once done make a right click and select start to the data collector set and it will start collecting logs.
Make it sure you have started it as administrator as if you are doing it with user credentials it will stop collecting data as soon as user logs off.

Do let me know if you need further information. One more suggestion if you are done with it you can save the same data collection set as template and can use it on other machines as well.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
z969307Author Commented:
I've setup and started this data collector for today. I'll revert back once i have the data captured to see if it is what i am looking for.

I don't see a schedule to end at a certain time, the only option was to specify time limit for it to run in hours/second/minutes.
Ratnesh MishraCommented:
Yes, you are right . You can schedule the start time and days on the week but stop condition is only limited to either size or duration [sec, min, hours, etc..].
Ratnesh MishraCommented:
Any update !!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.