Tuesday, April 20, 2021

monitoring ram usage over time on windows server

One of our servers running a .NET app was undergoing a stress test to check whether it could scale to the required number of users. RAM was the biggest question-mark. Looking for ways to monitor RAM usage, found this page which talks about creating a counter log in perfmon. And how to create a counter log is explained here

Basically - 
  1. Start - Run - perfmon.exe
  2. User defined folder -> New -> Data Collector Set and give it a name.
  3. Choose Create Manually, and Next.
  4. Create Data Logs -> Performance Counter and then click Next.
  5. Choose the desired object(s) to log
  6. (Every 5 seconds may be a good option for short collection runs)
  7. Choose location to save in.
  8. "Start this data collector set now" if desired.
  9. To stop data logging, right-click User Defined -> Data Collector Set -> our set and click Stop.
And later to view the data, choose the View Log Data button, Data Source as Log Files, and add the relevant log file.

And caveat when viewing and using Processor usage, the Scale factor has to be taken into account. 

No comments:

Post a Comment