-
-
Save relax-more/5142298 to your computer and use it in GitHub Desktop.
[java] GCの調査をしたのでメモ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-03-12T17:29:32.875+0900: [GC [ParNew: 105726K->658K(118016K), 0.0036680 secs] 940860K->835893K(1035520K), 0.0038120 secs] [Times: user=0.04 sys=0.00, real=0.01 secs] | |
2013-03-12T17:29:33.937+0900: [GC [ParNew (promotion failed): 105618K->105610K(118016K), 0.0631610 secs][CMS: 835245K->259864K(917504K), 1.8827850 secs] 940853K->259864K(1035520K), [CMS Perm : 53618K->53373K(83968K)], 1.9461600 secs] [Times: user=1.98 sys=0.02, real=1.94 secs] | |
2013-03-12T17:29:35.952+0900: [GC [ParNew: 104960K->4540K(118016K), 0.0079190 secs] 364824K->264404K(1035520K), 0.0080600 secs] [Times: user=0.07 sys=0.00, real=0.01 secs] | |
2013-03-12T17:29:36.076+0900: [GC [ParNew: 109500K->4641K(118016K), 0.0096710 secs] 369364K->264505K(1035520K), 0.0098120 secs] [Times: user=0.03 sys=0.00, real=0.01 secs] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
要するに、添付のログの例では、FullGCが実行されているよ、ということがわかる。 | |
参考URL | |
■Concurrent Mark&Sweep 第6回JVMソースコードリーディングの会(OpenJDK) | |
http://www.slideshare.net/nminoru_jp/jvm-readingcmsgc | |
■並列GC 第5回JVMソースコードリーディングの会(OpenJDK) | |
http://www.slideshare.net/nminoru_jp/jvmreadingparallegc | |
■JAVA GC : ParNew (promotion failed) , concurrent mode failure - stack OverFlow | |
http://stackoverflow.com/questions/12323124/java-gc-parnew-promotion-failed-concurrent-mode-failure | |
■ここが大変だよ、JavaのGC/メモリ管理 @IT | |
http://www.atmarkit.co.jp/fjava/rensai4/trouble_knowhow06/01.html | |
-> 図1 JavaVMのメモリ空間の構成 が参考になる |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ParNew: | |
ParNewGC(parallel copying GC) | |
new世代がGCのGCが実行された、というログ。 | |
STW型のGCが実行される。 | |
処理時間は極めて短時間で、サービスに影響を与えない程度ですむ | |
ParNew (promotion failed): | |
ParNewは上記のとおり。 | |
[promotion failed] と出ている時は、old領域にコピーのための領域を作れないと表示される。 | |
CMS: | |
CMS(ConcurrentMarkSweep GC) | |
その場合、old領域にCMS(ConcurrentMarkSweep GC)が実行され、old領域に容量が確保される。 | |
CMS Perm: | |
permanet領域にCMSが行われている。要するにFullGC。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment