When retrieving info via PerformanceCounter
, for the counter "Working Set" i must specify a instance name. My problem is that on azure, Kudu
also runs on a process named "w3wp". How can I be sure that i'm capturing only the numbers for MY instance of w3wp?
I tried to provide, not the name, but the process ID also...
I do realize i can use the "_Total", but that won't help me because i'm trying to set a base value for memory related improvements/optimisations to come, and my app service plan hosts several other small apps...
Edit 1
I use application insights but it does capture that metric frequently enough... I would like to capture every second, would settle for every 5 seconds, but app insights gives me the avg for every minute (and the avg part is a guess of my part, because it could be just be sampling a single time a reporting back)