Skip to content

Commit

Permalink
jvm.md
Browse files Browse the repository at this point in the history
mkdocs.md
  • Loading branch information
aisuhua committed Jan 9, 2025
1 parent d7322f4 commit 39f67d4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/java/jvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,33 @@
## 查看默认配置

```sh
# openjdk
java -XX:+PrintFlagsFinal -version

# IBM jdk
java -verbose:sizes -version
```

- [What's the default heap size for IBM's J9VM?](https://stackoverflow.com/questions/1572738/whats-the-default-heap-size-for-ibms-j9vm)

# 查看进程 JVM 启动参数

```sh
jps -lvm

jcmd -l
jcmd $PID VM.system_properties
jcmd $PID VM.flags

jinfo -flags $PID
```

- [Getting the parameters of a running JVM](https://stackoverflow.com/questions/5317152/getting-the-parameters-of-a-running-jvm)
- [Check JVM settings of running java process](https://makandracards.com/operations/531812-check-jvm-settings-running-java-process)

## heap 和 非 heap 内存

- [内存区域:Heap (堆区)](https://www.cnblogs.com/yanliang12138/p/14453698.html)
- [JVM堆内存和非堆内存](https://xstarcd.github.io/wiki/Java/JVM_Heap_Non-heap.html)


0 comments on commit 39f67d4

Please sign in to comment.