Htop showing multiple java processes with different pids

后端 未结 1 1694
小鲜肉
小鲜肉 2020-12-07 18:22

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 garba

1条回答
  •  眼角桃花
    2020-12-07 19:06

    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.

    See https://unix.stackexchange.com/questions/10362/why-does-htop-show-more-process-than-ps

    0 讨论(0)
提交回复
热议问题