PID exists in netstat but does not exist in task manager

shawn picture shawn · Mar 5, 2013 · Viewed 45.6k times · Source

I have discovered a running process with PID 26376 listening on port 9001 and 9002 as when I try to run my program(as a service) which binds to that port it fails.

But when I try to kill it using taskkill /PID it says that the process 26376 is not found. Similarly when I try to find the process in task manager with "Show processes from all users" selected, I couldn't find it anywhere.

Can anyone explain this? Is it a defunct zombie process? I suspect that the process listening on that port is a previous instance of my program running but what could have caused this?

EDIT: Sysinternals TCPView shows the process as non-existent. Sysinternals Process Explorer does not show the process. Tasklist does not show the process.

Answer

Parth Mody picture Parth Mody · Aug 5, 2015

You don't need Task Manager for tracking this. Just run netstat -b which will display the exe associated with the PID..