You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
arthas/tutorials/katacoda/command-jvm-en/jvm.md

14 lines
561 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

The `jvm`{{execute T2}} command allows you to check the current JVMs info.
## Search for current java application's classpath
`jvm | grep PATH`{{execute T2}}
```bash
[arthas@41064]$ jvm | grep PATH
CLASS-PATH packaging/target/arthas-bin/math-game.jar
BOOT-CLASS-PATH /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre/lib/resources.jar:/Librar
LIBRARY-PATH /Users/gongdewei/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extens
```