gpt4 book ai didi

具有多个子线程的Java服务

转载 作者:太空宇宙 更新时间:2023-11-04 06:06:12 25 4
gpt4 key购买 nike

ps -ef | grep 426
root 4260 587 0 Apr17 ? 00:00:00 [bnx2i_thread/4]
root 4261 587 0 Apr17 ? 00:00:00 [bnx2i_thread/5]
root 4262 587 0 Apr17 ? 00:00:00 [bnx2i_thread/6]
root 4263 587 0 Apr17 ? 00:00:00 [bnx2i_thread/7]
root 4264 587 0 Apr17 ? 00:00:00 [bnx2i_thread/8]
root 4265 587 0 Apr17 ? 00:00:00 [bnx2i_thread/9]
root 4267 587 0 Apr17 ? 00:00:00 [bnx2i_thread/10]
root 4268 587 0 Apr17 ? 00:00:00 [bnx2i_thread/11]
root 4269 587 0 Apr17 ? 00:00:00 [bnx2i_thread/12]

请帮助我理解给定 pid 的 ps 命令的输出。我试图检查服务是否正在运行。

编辑:对于迟回复表示歉意。像这样使用 ps 和 grep 并不理想;尽管如果我的应用程序正在运行它会给出预期的结果。就这样,我意外地得到了“bnx2”网络驱动程序,它可以是内核驱动程序,也可以是大多数 2.6 Linux 内核的单独包。

最佳答案

这本质上与java无关。

您的“服务”是使用某个应用程序启动的,您可以 grep 进程名称,而不是 grep 进程 ID

关于具有多个子线程的Java服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18748235/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com