Hi,
I got few web sites running on my server.
I have a "diagnostic" page in an application that shows the amount of memory for the current process (very useful).
Now this app is 'linked' to another app, and I want my diagnostic page to be able to display the amot of memory for another w3wp process.
To get the amount of memory, I use a simple code :
var process = Process.GetProcessesByName("w3wp");
string memory = this.ToMemoryString(process.WorkingSet64);
How can I identify my second w3wp process, knowing its application pool ?
I found a corresponding thread, but no appropriate answer : http://stackoverflow.com/questions/372080/reliable-way-to-see-process-specific-perf-statistics-on-an-iis6-app-pool
Thanks