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屋!