mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-24 23:56:29 +08:00
Add more info about JDK
Add more info about standard tools from OracleJDK/OpenJDK
This commit is contained in:
parent
151bde506a
commit
b006571496
1 changed files with 1 additions and 0 deletions
|
@ -235,6 +235,7 @@ Notes:
|
||||||
- To know memory status, run and understand the output of `free` and `vmstat`. In particular, be aware the "cached" value is memory held by the Linux kernel as file cache, so effectively counts toward the "free" value.
|
- To know memory status, run and understand the output of `free` and `vmstat`. In particular, be aware the "cached" value is memory held by the Linux kernel as file cache, so effectively counts toward the "free" value.
|
||||||
|
|
||||||
- Java system debugging is a different kettle of fish, but a simple trick on Oracle's and some other JVMs is that you can run `kill -3 <pid>` and a full stack trace and heap summary (including generational garbage collection details, which can be highly informative) will be dumped to stderr/logs.
|
- Java system debugging is a different kettle of fish, but a simple trick on Oracle's and some other JVMs is that you can run `kill -3 <pid>` and a full stack trace and heap summary (including generational garbage collection details, which can be highly informative) will be dumped to stderr/logs.
|
||||||
|
Also default JDKs `jps`, `jstat`, `jstack`, `jmap` are quite usefull, take a look at their help. For more advanced cases use something like [SJK by Alexey Rogozin](https://github.com/aragozin/jvm-tools).
|
||||||
|
|
||||||
- Use `mtr` as a better traceroute, to identify network issues.
|
- Use `mtr` as a better traceroute, to identify network issues.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue