NetBeansã§ã¯ãã¡ãã¥ã¼ã®ã表示 > ãã¼ã«ãã¼ > ã¡ã¢ãªã¼ãã§ã¡ã¢ãªä½¿ç¨ç¶æ³ããã¼ã«ãã¼ã«è¡¨ç¤ºããããã¨ãã§ãã¾ãã
ãã©ãããã§ã¯ãããå°ã詳ããã¡ã¢ãªã®ä½¿ç¨ç¶æ³ãè¦ãããã«ãJConsoleã使ãã¾ããããJConsoleã¯ãJavaã®ããã°ã©ã ã®å®è¡ç¶æ³ãè¦ãããã®ç®¡çãã¼ã«ã§ãã
JConsoleãã©ã°ã¤ã³ã®ã¤ã³ã¹ãã¼ã«
JConsoleã使ãã«ã¯ãJAVA_HOME/bin/jconsole.exeãªã©ãèµ·åããã°ããã®ã§ããããã£ãããªã®ã§NetBeansããJConsoleãèµ·åã§ããããã«ããã©ã°ã¤ã³ãå ¥ãã¦ã¿ã¾ãããã
ã¡ãã¥ã¼ã®ããã¼ã« > ãã©ã°ã¤ã³ããé¸æãã¦ãã©ã°ã¤ã³ãã¤ã¢ãã°ãéãã¦ãã使ç¨å¯è½ãªãã©ã°ã¤ã³ãã®ã¿ããããJConsoleããé¸æãã¦ã¤ã³ã¹ãã¼ã«ãã¾ãããã
ããããã¨ãJConsoleèµ·åãã¿ã³ããã¼ã«ãã¼ã«è¡¨ç¤ºãããã®ã§ãã¯ãªãã¯ãã¦ã¿ã¾ãã
JConsoleãèµ·åããã¨ãæ¥ç¶å
ã®Javaããã°ã©ã ãé¸æãããã¤ã¢ãã°ã表示ããã¾ããããã§ã¯ãã©ããNetBeansãããããããªãã§ãããæ¶å»æ³ã§ãªã«ãæ¸ãã¦ãªãã®ãNetBeansã ã¨ãããã¨ã«ãªãã¾ãããã¨ãããã¨ã§ãã¿ã¤ãã«ã®ãªãè¡ãé¸ãã§ãæ¥ç¶ããã¿ã³ãæ¼ãã¾ãã
ãã°ããããã¨NetBeansã«æ¥ç¶ãã¦å®è¡ç¶æ³ã表示ãããããã«ãªãã¾ããä»åã¯ã¡ã¢ãªç¶æ³ãè¦ããã®ã§ããã¡ã¢ãªãã¿ããéãã¾ãã
Javaã®ã¡ã¢ãªç®¡ç
Javaã§ã¯ãä¸ä»£å¥GCã¨ããããããã§ã¡ã¢ãªç®¡çãè¡ããã¦ãã¾ãããããã£ã±ã«ããã¨ãã¡ã¢ãªé åãä¸æçã«ä½¿ããªãã¸ã§ã¯ãã®é åã¨ãã£ã¨ä½¿ããªãã¸ã§ã¯ãã®é åã«ããã¦ãé »ç¹ã«GCãè¡ãã®ã¯ä¸æçã«ä½¿ããªãã¸ã§ã¯ãã®é åã ãã«ãã¦ããã£ã¨ä½¿ããªãã¸ã§ã¯ãã®é åã®GCã¯ãã¾ã«ã ãè¡ãã¨ãããã®ã§ãã
ãã®ãããã¡ã¢ãªã®ã°ã©ãã¯ã®ã¶ã®ã¶ã«ãªã£ã¦ããã¾ã«å¤§ããè½ã¡è¾¼ãã¨ããããã«ãªã£ã¦ãã¾ããã®ã¶ã®ã¶ã®ã¨ãããä¸æçã«ä½¿ããªãã¸ã§ã¯ãã®é åã®GCã§ã大ããè½ã¡è¾¼ãã§ããã®ããã£ã¨ä½¿ããªãã¸ã§ã¯ãã®é åã®GCã§ããã
å³ä¸ã®ã°ã©ãã§ã¯ãä¸çªå·¦ããã£ã¨ä½¿ããªãã¸ã§ã¯ãã®é åãå·¦ããï¼çªç®ã¨ï¼çªç®ãä¸æçã«ä½¿ããªãã¸ã§ã¯ãã®é åã§ãã
è¿½è¨ 2011/2/19 11:59
Concurrent GCã使ãè¨å®ã«ãã¦ãã®ã§ãé常ã¨ã¯ã°ã©ããéãã¾ããã
ãªã«ãè¨å®ãã¦ãªãç¶æ ã ã¨ã次ã®ããã«ãªãã¾ãã
ä¸çªå·¦ã¨ï¼çªç®ãä¸æçã«ä½¿ããªãã¸ã§ã¯ãã®é åãï¼çªç®ããã£ã¨ä½¿ããªãã¸ã§ã¯ãã®é åã£ã¦ãã¨ã«ãªãã¾ãã
ä¸ã®ãå·¦ããï¼çªç®ã®ãPar Survivor Spaceããã¨ããã®ããå·¦ããï¼çªç®ã®ãSurvivor Spaceããã§ãã
Concurrent GCã®è¨å®æ¹æ³ã¯ãNETBEANS_HOME/etc/netbeans.confã«ã³ã¡ã³ãã§æ¸ãã¦ãããã§ããã®ã¨ããã«ãã¦ã¿ã¦ãã ããã
NetBeansãã¡ã¢ãªããããé£ãã¨ãã®å¯¾ç
ãããNetBeansä¸ã§ãªã«ããã¦ãªãã®ã«ãã®ã¶ã®ã¶ããªããã¡ã¢ãªä½¿ç¨éãå¢ãã¦ããã¨ããã¨ãã«ã¯ãä¸æçã«ä½¿ããªãã¸ã§ã¯ãã®é åãçããããã¨ãèãããã¾ããå·¦ããï¼çªç®ã®ãPar Survivor Spaceããé »ç¹ã«ãã£ã±ãã«ãªããããªããè¨å®ãå¤æ´ããã»ããããã§ãã
NetBeansãã¤ã³ã¹ãã¼ã«ãããã£ã¬ã¯ããªã®etc/netbeans.confã¨ãããã¡ã¤ã«ãç·¨éãã¦ããnetbeans_default_optionsãã®è¡ã«ã-J-XX:MaxNewSize=24mããªã©ã¨ãã¦ã¡ã¢ãªã®å²ãå½ã¦ãå¢ããã¦ãããã»ããããã§ããããã¤ãã§ã«ã-J-serverããè¨è¿°ãã¦ããªãã£ãã追å ãã¦ãã ãããNetBeansã®å
¨ä½çãªã¡ã¢ãªä½¿ç¨éããã£ããæ¸ããåä½ããã¶ãéããªãã¾ãã
ãããããã¡ã¢ãªä½¿ç¨éããããã大äºãªãã¨
ã¨ããã§ãNetBeansä¸ã§ãªã«ãããªããã°ãã¡ã¢ãªã®ã°ã©ãã¯ã®ã¶ã®ã¶ããªããç横ã«ã®ã³ã¾ãã
ãã£ãã®ã°ã©ããããä¸åº¦ã¿ã¦ã¿ã¾ãããã
æéã¿ã«ããããããã¾ãããã6:45ãããã¾ã§ã¯ãã£ã¨ã®ã¶ã®ã¶ããªããç横ã«ã®ã³ã¦ãã¾ãã6:10æåã§ãã£ããè½ã¡ã¦ãã®ã¯GCãè¡ãããããã§ããã
ãã£ãæ¸ããããã«ãã¡ã¢ãªä½¿ç¨éã®ã°ã©ããã®ã¶ã®ã¶ããªããç横ã«ã®ã³ã¦ããã¨ãããã¨ã¯ãNetBeansä¸ã§ãªã«ããã¦ããªãã¨ãããã¨ã§ããã¤ã¾ãä»äºããã¦ããªãã¨ãããã¨ã§ããä»äºããã¦ããªãã¨ãããã¨ã§ãã
ãã®ã°ã©ãããèªã¿åãããã¨ã¯ã6:45ã¾ã§ä½ãå¥ã®ãã¨ããã¦ã¦ã6:45ãã7:00ãããã¾ã§æãåºããããã«ä½æ¥ãã7:00ãã7:25ã¾ã§ä½æ¥ã®æãããã7:25ãã7:40ã¾ã§ã¾ããªã«ãä½æ¥ãããã¨ãããã¨ã§ããã6:45ãããã¾ã§ã¯ããªããã ãã ããã¦ã¾ãããã§ã¡ãã£ã¨ä½æ¥ããã¦7:00ããè²·ãç©ã«ã§ããã7:20ãããã«å¸°ã£ã¦ãã¦ãã¾ãã¡ãã£ã¨ä½æ¥ããã¦ãã®ã¾ã¾ä¼æ©ã£ã¦æãã§ããã
ãããªãã¨ãNetBeansã®ã¡ã¢ãªä½¿ç¨éã®ã°ã©ãããããã£ã¦ãã¾ãã®ã§ãã
ã¨ãããã¨ã§ãNetBeansã®ã¡ã¢ãªä½¿ç¨éã®ã°ã©ããè¦ãã¨ãä»äºãã¦ãªããã¨ããã¬ãã¨ããã話ã§ããã