Monitoring IIS application pool memory usage (many pools)

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
chaoscontrol
Posts: 5
Joined: Tue Nov 17, 2015 6:58 am

Monitoring IIS application pool memory usage (many pools)

Post by chaoscontrol »

Hi,

I can't seem to find a working answer so I hope someone can point me into the right direction. I want to monitor the memory usage of the IIS application pools but I have failed to retrieve this info so far.

I tried using the perfmon counters from ASP.NET but these wont work remotely. Also they dont supply the correct name so it was kind of useless anyway.

Trying to use WMI now but no luck as of yet. Can someone point me towards where I need to be?

Kind regards!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Total memory usage by ALL application pools?
or memory usage by some specific application pool?

Regards
Alex
chaoscontrol
Posts: 5
Joined: Tue Nov 17, 2015 6:58 am

Post by chaoscontrol »

Hi Alex,

Thanks for the reply. I would like to know the memory in use for each application pool.

I imagine this will be 1 rule/item per application pool.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Each application pool running as w3wp.exe process, so total memory can be checked as summarized memory usage by all w3wp.exe processes.
Also, its easy to find process that uses most of memory.

But you need memory usage for EACH application pool so its more difficult. I am not sure what is the best way :roll:
May be use WMI query like
Select CommandLine, Name, WorkingSetSize From Win32_Process Where name = 'w3wp.exe'
or
Select CommandLine, Name, WorkingSetSize From Win32_Process Where (name = 'w3wp.exe') and (CommandLike LIKE '%specific_app_pool%')
and use commandLine field to find specific application pool (there are different command line parameters for different application pools).

This means you can use single script for all checks but you need to create separate test item for each application pool and specify application pool as parameter of the script in each test item (or use unique WMI query for each application pool). In any case you need to setup tests for all application pools...

Regards
Alex
chaoscontrol
Posts: 5
Joined: Tue Nov 17, 2015 6:58 am

Post by chaoscontrol »

Thanks Alex, This is exactly what I wanted to know. I'm getting all the values I need now, just need to do some formatting.

I will post final wmi queries here so other people might benefit from it.

Thanks again!
Post Reply