- ¥×¥í¥°¥é¥à¤¬Æ°Åª¤Ë³ÎÊݤ·¤¿¥á¥â¥êÎΰè¤Î¤¦¤Á¡¢ÉÔÍפˤʤä¿Îΰè¤ò¼«Æ°Åª¤Ë²òÊü¤¹¤ëµ¡Ç½¡£
- ľÌõ¤¹¤ì¤Ð¡Ö¥´¥ß¼ý½¸¡×¡£
- ¥³¥¹¥È¤¬¤«¤«¤ë½èÍý¡£°ìö»Ï¤Þ¤ë¤ÈCPU¤òĹ»þ´ÖÀêͤ¹¤ë¡£
- µ¯¤¤ë¥¿¥¤¥ß¥ó¥°¤äÀêÍ»þ´Ö¤Î»öÁ°Í½Â¬¤¬º¤Æñ¤Ê¤¿¤á¡¢¥ê¥¢¥ë¥¿¥¤¥à¥·¥¹¥Æ¥à¤Ë¤Ï¸þ¤¤¤Æ¤¤¤Ê¤¤¡£
Scavenge GC | NEWÎΰè¤Î¤ß¤òÂоݤȤ·¤¿Ã»»þ´Ö¤Ç½ªÎ»¤¹¤ë¥¬¥Ù¡¼¥¸¡¦¥³¥ì¥¯¥·¥ç¥ó | ÉÑÈË¤Ë¼Â»Ü |
Full GC | NEW¤ÈOLDξÊý¤ÎÎΰè¤òÂоݤȤ·¤¿Â礬¤«¤ê¤Ê¥¬¥Ù¡¼¥¸¡¦¥³¥ì¥¯¥·¥ç¥ó | Èæ³ÓŪÄ㤤ÉÑÅÙ¤Ç¼Â»Ü |
Îã¡ËJVM¤Î¥ª¥Ö¥¸¥§¥¯¥È¥µ¥¤¥º¤¬GCÁ°¤Ï66MB¢ªGC¸å¤Ï45MB(¥Ò¡¼¥×Æâ¤Î¶õ¤Îΰè¤Ï246MB),Îΰè²òÊü¤Ë1.7ÉÃÍפ·¤¿¡£
[Full GC 66518K->45639K(249088K), 1.6836858 secs]
![](https://image01.seesaawiki.jp/d/3/dehio3/78e74924.gif)
NEWÎΰè | ¿·¤·¤¤¥ª¥Ö¥¸¥§¥¯¥È¤ò³ÊǼ¤¹¤ëÎΰè | |
¡¡+ EdenÎΰè | ¿·¤·¤¤¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤¿ºÝ¤ËºÇ½é¤ËÇÛÃÖ¤µ¤ì¤ë¥á¥â¥êÎΰè | |
¡¡+ FromÎΰè(SurvivorÎΰè1) | EdenÎΰ褫¤é°ÜÆ°¸å¤ËÇÛÃÖ¤µ¤ì¤ëÎΰè(1²óÌܤÎToÎΰè¤À¤Ã¤¿Îΰè) | |
¡¡+ ToÎΰè(SurvivorÎΰè0) | Scavenge GC¼Â¹Ô»þ¤Ë»ÈÍÑÃæ¤Î¥ª¥Ö¥¸¥§¥¯¥È¤¬°ÜÆ°¤¹¤ëÎΰè | |
OLDÎΰè | ¸Å¤¤¥ª¥Ö¥¸¥§¥¯¥È¤ò³ÊǼ¤¹¤ëÎΰè | |
PermanentÎΰè | JVM¤Ë¥í¡¼¥É¤µ¤ì¤¿¥¯¥é¥¹¤ä¥á¥½¥Ã¥É¤Î¾ðÊ󤬳ÊǼ¤µ¤ì¤ëÎΰè | ¥í¡¼¥É¤µ¤ì¤ë¥¯¥é¥¹¤Î¿ô¤ËÈæÎã |
- ¿·µ¬¥ª¥Ö¥¸¥§¥¯¥È¤Ï¤Þ¤º¡¢EdenÎΰè¤ËÀ¸À®¤µ¤ì¤ë¡£
- EdenÎΰ褬ËþÇդˤʤë¤ÈScavenge GC¤¬¼Â¹Ô¤µ¤ì¡¢»ÈÍÑÃæ¤Î¥ª¥Ö¥¸¥§¥¯¥È¤ÏToÎΰè(SurvivorÎΰè0)¤Ø°ÜÆ°¡¢ÉÔÍפʥª¥Ö¥¸¥§¥¯¥È¤ÏÇË´þ¤µ¤ì¤ë¡£
- EdenÎΰ褬ºÆÅÙËþÇդˤʤꡢ2²óÌܤÎScavenge GC¤¬¼Â¹Ô¤µ¤ì¤ë¤È¡¢2¤¬¼Â¹Ô¤µ¤ì¡¢ToÎΰè¤Î¥ª¥Ö¥¸¥§¥¯¥È¤ÏFromÎΰè(SurvivorÎΰè1)¤Ø°ÜÆ°¤¹¤ë¡£
- 2,3¤Î½èÍý¤ò·«¤êÊÖ¤·¡¢ToÎΰ衢FromÎΰè´Ö¤Î°ÜÆ°²ó¿ô¤¬¡ÖMaxTenuringThreshold¡×(¥Ç¥Õ¥©¥ë¥ÈÃÍ:32)¤ò¾å²ó¤Ã¤¿¥ª¥Ö¥¸¥§¥¯¥È¤ÏOLDÎΰè¤Ø°ÜÆ°¤µ¤ì¤ë¡£
-Xms | ¥Ò¡¼¥×¡¦¥á¥â¥êÁ´ÂΤε¯Æ°»þ¤Î¥µ¥¤¥º |
-Xmx | ¥Ò¡¼¥×¡¦¥á¥â¥êÁ´ÂΤκÇÂ祵¥¤¥º |
-XX:NewSize | NEWÎΰè¤Î½é´ü¥µ¥¤¥º |
-XX:MaxNewSize | NEWÎΰè¤ÎºÇÂ祵¥¤¥º |
-XX:PermSize | Permanent Îΰè¤Î½é´ü¥µ¥¤¥º |
-XX:MaxPermSize | Permanent Îΰè¤ÎºÇÂ祵¥¤¥º |
-XX:SurvivorRatio=<n> | EdenÎΰè¤Î¥µ¥¤¥º¤òFrom¤Þ¤¿¤ÏToÎΰè¤Î¥µ¥¤¥º¤Ç³ä¤Ã¤¿ÃÍ¡ÊFrom¤ÈToÎΰè¤ÏƱ¤¸¥µ¥¤¥º¡Ë |
-verbose:gc | JVMÆâÉô¤Ç¼Â¹Ô¤µ¤ì¤ë¥¬¥Ù¡¼¥¸¡¦¥³¥ì¥¯¥·¥ç¥ó¡ÊGC¡Ë¤ò¾ÜºÙ¤Ë¥È¥ì¡¼¥¹¤¹¤ë¡£ |
-Xnoclassgc | PermanentÎΰèÁ´ÂΤò¥Õ¥ëGC¤ÎÂоݳ°¤È¤¹¤ë |
- ñ°Ì¤Ïm(MB)¤ÇÀßÄꤹ¤ë¡£
- ºÇÂ祵¥¤¥º¤È½é´ü¥µ¥¤¥º¤ÏƱ°ì¤Ë¤¹¤ë¡£
- NewÎΰè¤Ï¥Ò¡¼¥×¥µ¥¤¥º¤Î1/3¤òÌܰ¤ˡªFullGC¤¬¼Â¹Ô¤µ¤ì¤ë¤È½èÍý¤¬Ää»ß¤·¡¢Àǽ¤Ë±Æ¶Á¤¬¤¢¤ë¤¿¤á¡¢FullGC¤¬¤Ê¤ë¤À¤±µ¯¤¤Ê¤¤¤è¤¦¤ËOld¤ÎÎΰè¤òÂ礤á¤Ë³ÎÊݤ¹¤ë¡£
- HotSpot¥³¥ó¥Ñ¥¤¥é¤òÅëºÜ¡£
- ¼Â¹ÔÉÑÅ٤ι⤤Éôʬ¤Î¤ß¥³¥ó¥Ñ¥¤¥ë¤ò¹Ô¤¦¡£(80/20¤Îˡ§)
- ¥³¥ó¥Ñ¥¤¥ë»þ´Ö¤Î¥ª¡¼¥Ð¡¼¥Ø¥Ã¥É¤¬¾¯¤Ê¤¤¡£
- ¥¯¥é¥¤¥¢¥ó¥ÈVM/¥µ¡¼¥ÐVM¤Î2¼ïÎà¤Îµ¯Æ°¥â¡¼¥É¤¬¤¢¤ë¡£
- Java 2 SDK Standard Edition ¤Ë¤Ï¡¢1 ¤Ä¤Þ¤¿¤ÏÊ£¿ô¤Î Java ²¾ÁÛ¥Þ¥·¥ó (VM) ¼ÂÁõ¤¬ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¡£
- µ¯Æ°»þ´Ö¤òû½Ì¤·¡¢¥á¥â¥ê¥µ¥¤¥º¤ò½Ì¾®¤¹¤ë¤è¤¦¤ËÄ´À°¤µ¤ì¤Æ¤¤¤ë¡£
- ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Îµ¯Æ°»þ¤Ë¡¢-client ¥³¥Þ¥ó¥É¹Ô¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¸Æ¤Ó½Ð¤¹¡£
- ¥×¥í¥°¥é¥à¼Â¹Ô®ÅÙ¤¬ºÇÂç¤Ë¤Ê¤ë¤è¤¦¤ËÀ߷פµ¤ì¤Æ¤¤¤ë¡£
- ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Îµ¯Æ°»þ¤Ë¡¢-server ¥³¥Þ¥ó¥É¹Ô¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¸Æ¤Ó½Ð¤¹¡£
¡¡Öjava -version¡×¥³¥Þ¥ó¥É
¢´Ä¶ÊÑ¿ô¡Ö_JAVA_LAUNCHER_DEBUG¡×
£¡Öjvm.cfg¡×¥Õ¥¡¥¤¥ë
- ¥¢¥×¥ê¼Â¹ÔÁ°¤Ëjava -version¤Çɽ¼¨¤µ¤ì¤ë¥á¥Ã¥»¡¼¥¸¤ò³Îǧ¤¹¤ë¡£
¢´Ä¶ÊÑ¿ô¡Ö_JAVA_LAUNCHER_DEBUG¡×
- ´Ä¶ÊÑ¿ô_JAVA_LAUNCHER_DEBUG¤òÄêµÁ¤¹¤ë¤Èµ¯Æ°»þ¤Ë¥Ç¥Ð¥Ã¥°¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤ë¡£¥á¥Ã¥»¡¼¥¸Ãæ¤ÎJVM Path¤Î¹Ô¤ò¸«¤ì¤Ð¡¢¥Ç¥£¥ì¥¯¥È¥ê̾¤«¤éclient¤«server¤¬È½Ê̤Ǥ¤ë¡£
£¡Öjvm.cfg¡×¥Õ¥¡¥¤¥ë
- ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤷ¤Ê¤¤¾ì¹ç¡¢¤³¤Î¥Õ¥¡¥¤¥ë¤Ëµ½Ò¤µ¤ì¤¿Í¸ú¤ÊVM¤¬ÁªÂò¤µ¤ì¤ë¡£
- Ê£¿ôµ½Ò¤µ¤ì¤Æ¤¤¤ë¤È¤¤Ï¡¢¾å¤Ë½ñ¤«¤ì¤¿¤â¤Î¤¬Í¥ÀèŪ¤ËÁªÂò¤µ¤ì¤ë¡£
¥¿¥°
¤³¤Î¥Ú¡¼¥¸¤Ø¤Î¥³¥á¥ó¥È
tVHTZ9 Appreciate you sharing, great blog post. Keep writing.
Q5eNr6 Very good blog post.Really thank you!
eFRBhJ Major thanks for the article.Much thanks again. Will read on...
vv6fYT I appreciate you sharing this blog article.Really looking forward to read more. Really Great.
AREkvj <a href="http://vypauqsclrab.com/">vypauqsclrab</a>, [url=http://uvngxhfyxjrh.com/]uvngxhfyxjrh[/url], [link=http://swjrxebekyvq.com/]swjrxebekyvq[/link], http://ufzlibcqqghy.com/