2011-12-27

用命令行找出 w3wp.exe和网站的对应关系

服务器上有三个网站,打开任务管理器的时候有三个w3wp 进程,其中有一个内存超过1G,哪个呢?简单


Make a text file called "process-info.bat" with the following text in it.
c:\windows\system32\cscript.exe c:\windows\system32\iisapp.vbs
pause
Run it on your 2003 Server and it shows info like this which you can use with Task Manager to see what belongs to what. Make sure you set your Task Manager to show the Process ID's.
C:\Documents and Settings\Administrator\Desktop>c:\windows\system32\cscript.exe c:\windows\system32\iisapp.vbs Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
W3WP.exe PID: 5436   AppPoolId: poonker
W3WP.exe PID: 5004   AppPoolId: bansderver
W3WP.exe PID: 4800   AppPoolId: DefaultApppPool
C:\Documents and Settings\Administrator\Desktop>pause Press any key to continue . . .

No comments: