To find out which application pool runs a certain w3wp.exe process, use the command:

C:WINDOWSsystem32>cscript iisapp.vbs