scripting - Getting Working Processes within IIS App Pools -


i looking way enumerate through virtual directories (windows server 2003) in app pool , diagnostic data (specifically workingset, private bytes, , virtual bytes).

i've found plenty on how enumerate through server's app pools, , getting virtual directories within, need in order obtain diagnostic data?

basically want add script grabs data monitoring app (nagios). have script grabs top 2 running worker processes on server, don't know app pool belong to.

thanks.

as you've discovered, it's two-step process: need resource utilization every worker process, , need know app pool corresponds each worker process.

you've figured out first part. here's how other part: in windows server 2003, there's command-line script available in windows server 2003 called iisapp.vbs. see documentation more details. output command-line tool this:

w3wp.exe pid: 2232 apppoolid: defaultapppool w3wp.exe pid: 2608 apppoolid: myapppool 

simply parse output script , you'll able tie process ids app pools. each process id or filter existing list of enumerated processes find matching process id.

there may additional restrictions around security , specific iis configuration needed. see documentation link above.

note windows server 2008 uses different command, appcmd list wp, , has different output format, solution specific windows server 2003.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -