w3wp.exe进程与应用程序池的对应关系
https://blogs.msdn.microsoft.com/friis/2009/10/22/which-w3wp-exe-pid-corresponds-to-which-application-pool/
Navigate to the folder where appcmd is located and run the following command:
appcmd list wp
this will list all the instances of the w3wp.exe process (worker process) that are present on your server with their respective PIDs and application pools.
Other nice commands are
appcmd list sites
and
appcmd list appPools
to list the web sites that are present on the server and the application pools on your IIS server.