Htop showing multiple java processes with different pids(Htop 显示具有不同 pid 的多个 java 进程)
问题描述
我的 linux 机器上的 Htop 在启动一个 java 程序/JVM 后显示了许多进程".我确实了解 JVM 运行多个线程(用于实际程序、垃圾收集等).
Htop on my linux machine shows many "processes" after launching one java program/JVM. I do understand that the JVM runs multiple threads (for the actual program, for garbage collection, etc).
但是为什么 htop 将它们列为具有不同 pid 的多个进程.这些过程究竟是什么?
But how come htop lists them as multiple processes with different pids. What exactly are those processes?
推荐答案
其实只是htop默认将每个线程显示为一个单独的进程.您可以将行 hide_userland_threads=1 添加到您的 ~/.config/htop/htoprc 文件中以仅显示一行.
Actually, it's just that htop by default shows each thread as a separate process. You can add the line hide_userland_threads=1 to your ~/.config/htop/htoprc file to show only one line.
请参阅 https://unix.stackexchange.com/questions/10362/why-does-htop-show-more-process-than-ps
这篇关于Htop 显示具有不同 pid 的多个 java 进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Htop 显示具有不同 pid 的多个 java 进程
基础教程推荐
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
