PID在netstat中存在,但在任务管理器中不存在 [英] PID exists in netstat but does not exist in task manager
问题描述
当我尝试运行绑定到该端口的程序(作为服务)时,我发现PID 26376正在侦听端口9001和9002的运行进程.
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.
但是当我尝试使用taskkill/PID杀死它时,它说未找到进程26376.同样,当我尝试在任务管理器中选择了显示所有用户的流程"来查找流程时,在任何地方都找不到它.
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?
Sysinternals TCPView显示该进程不存在. Sysinternals Process Explorer不显示该进程. 任务列表不显示该过程.
Sysinternals TCPView shows the process as non-existent. Sysinternals Process Explorer does not show the process. Tasklist does not show the process.
推荐答案
您无需任务管理器即可对此进行跟踪.只需运行netstat -b
,它将显示与PID关联的exe.
You don't need Task Manager for tracking this. Just run netstat -b
which will display the exe associated with the PID..
这篇关于PID在netstat中存在,但在任务管理器中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!