mirror of https://github.com/CrimsonTome/tldr.git
25 lines
381 B
Markdown
25 lines
381 B
Markdown
|
# jps
|
||
|
|
||
|
> 显示当前用户的 JVM 进程状态。
|
||
|
> 详细信息见:<https://docs.oracle.com/en/java/javase/11/tools/jps.html>.
|
||
|
|
||
|
- 列出所有 JVM 进程:
|
||
|
|
||
|
`jps`
|
||
|
|
||
|
- 列出所有 JVM 进程,只打印进程号:
|
||
|
|
||
|
`jps -q`
|
||
|
|
||
|
- 显示传递给进程的参数:
|
||
|
|
||
|
`jps -m`
|
||
|
|
||
|
- 显示所有进程的完整软件包名称:
|
||
|
|
||
|
`jps -l`
|
||
|
|
||
|
- 显示传递给 JVM 的参数:
|
||
|
|
||
|
`jps -v`
|