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!
Monitoring IIS application pool memory usage (many pools)
-
- Posts: 5
- Joined: Tue Nov 17, 2015 6:58 am
-
- Posts: 5
- Joined: Tue Nov 17, 2015 6:58 am
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
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
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

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
-
- Posts: 5
- Joined: Tue Nov 17, 2015 6:58 am