Java

Java

Java

gc related

jvm regions

young: elden 伊甸区+s0/s1 存活区 old: tenured 养老区

关于jvm和gc入门 可以简单看下如下两个视频 https://www.youtube.com/watch?v=A20a0__mXvQ https://www.youtube.com/watch?v=ZFiYxdWKft8&t=636s

gc log查看分析

heap analyze

使用参考 https://dzone.com/articles/java-heap-dump-analyzer-1

下载链接 请选择对应区域的源 如果没反应 https://www.eclipse.org/downloads/download.php?file=/mat/1.15.0/rcp/MemoryAnalyzer-1.15.0.20231206-linux.gtk.x86_64.zip

1
2
3
➜  mat ls
configuration  epl-2.0.html  features  MemoryAnalyzer  MemoryAnalyzer.ini  notice.html  p2  ParseHeapDump.sh  plugins
➜  mat ./MemoryAnalyzer

jvisualjvm

windows下使用 https://support.microfocus.com/kb/kmdoc.php?id=KM03512089&fileName=Install%20Visualvm%20with%20OpenJDK.pdf

参考文档