Javaã®éçºç°å¢ãé«éã«ããæ¹æ³
Javaã®ã¨æ¸ãã¦ããã¾ãããåã¯NetBeansã¦ã¼ã¶ã¼ãªã®ã§ãNetBeansãé«éã«ããæ¹æ³ã§ãã
ã¾ãä½æçã«ã§ããã©ãNetBeansã®æ¹ãéãã¨æãã¾ãããã®ãã¡æéã¨ãè¨ã£ã¦ã¿ã¾ããã
åºæ¬çã«ã¯ãããããJavaãã¤ã³ã¹ãã¼ã«ãã¦ããå¿
è¦ãããã¾ããã
NetBeansããã¦ã³ãã¼ããã¦ãããã«ã¯ãªãã¯ãã¦ã¤ã³ã¹ãã¼ã«ã¦ã£ã¶ã¼ããé²ãããå®äºã§ãã
ã§ãNetBeansãé«éåããæ¹æ³ã¨ãã¦åãæãã¤ããã®ã¯ï¼ã¤ã§ãã
1.NetBeansã§ä½¿ç¨ããã¡ã¢ãªéã®èª¿æ´ããã
2.NetBeansã§å®éã«ä½¿ãæ©è½ä»¥å¤ãç¡å¹åããã
2ã«é¢ãã¦ã¯6.9以éã§è¨å®ã§ããå 容ãç´°ãããªã£ã¦ããã®ã§ç¹ã«çç±ããªãéãã¯6.9ããªã¹ã¹ã¡ãã¾ãã
1.NetBeansã§ä½¿ç¨ããã¡ã¢ãªéã®èª¿æ´ããã
netbeans.confã¨ããããã¹ããã¡ã¤ã«ãæ¸ãæãã¾ãã
netbeans.confã®å ´æã¯ã¤ã³ã¹ãã¼ã«ãããã£ã¬ã¯ããªã®ç´ä¸ã®etcé
ä¸ã«ããã¾ãã
ä¾ãã°æ¬¡ã®ãããªæã
C:\Program Files\NetBeans 6.9\etc\netbeans.conf
ã§ããã®ãã¡ã¤ã«ã®ï¼è¡ç®ããããã次ã®ãããªæååã並ãã§ããè¡ããããã¾ãã
ãã®è¡â
# command line switches:
netbeans_default_options="-J-client ...."
ã§ã-J-client ã®ç¶ãã«-J-Xms256m -J-XX:MaxPermSize=512m
ãªã©ã®ããã«ä½¿ç¨ããã¡ã¢ãªéãæå®ãã¾ãã
å®éã«ã¯åã¯æ¬¡ã®ããã«æ¸ãã¦ãã¾ãã
netbeans_default_options="-J-client -J-Xss12m -J-Xms256m -J-XX:PermSize=128m -J-XX:MaxPermSize=512m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"
ããããã®æå³
J-Xms256m
ãã®å ´åãNetBeansã¯256MBã®ã¡ã¢ãªãåå¾ãã¦èµ·åãã¾ãã
- J-Xmsã®å¤ãã«æå®ãã¦ãããã¨ã§ãGCã®é »çºãã¡ã¢ãªã®æ¡å¼µãæªç¶ã«é²ãã¾ãã
- J-XX:MaxPermSize=512m
ãã®å ´åãNetBeansã¯æ大512MBã®ã¡ã¢ãªã使ç¨ãããã¨ãã§ãã¾ãã
J-Xmsã®æå®ã¯èµ·åæã«åå¾ããã¡ã¢ãªéã®æå®ã§ããã
ãã¡ãã¯ã¡ã¢ãªä¸è¶³ãªã©ã«ãããã¡ã¢ãªãæ¡å¼µããã¦ãã£ãã¨ãã®æ大å¤ã«ãªãã¾ãã
ãã®æ°å¤ããã¾ãã«ä½ãã¨ãNetBeansã使ç¨ããã¡ã¢ãªãæ¡å¼µã§ããªããããã¡ã¢ãªãæ¯æ¸ããã¨ãã«GCãé£çºãã¾ãã
2.NetBeansã§å®éã«ä½¿ãæ©è½ä»¥å¤ãç¡å¹åããã
ã¡ãã¥ã¼ãã¼ãã[ãã¼ã«]â[ãã©ã°ã¤ã³]ãé¸æã
ãã¤ã¢ãã°ã§[ã¤ã³ã¹ãã¼ã«æ¸ã¿]ã®ã¿ããé¸æã
詳細ã表示ã®ãã§ãã¯ããã¯ã¹ã«ãã§ãã¯ãå
¥ããã
ããããã¨ãNetBeansã®æ©è½ã®ä¸è¦§ã表示ããã¾ãã
ã¢ã¯ãã£ãã®åã®ã¢ã¤ã³ã³ãç·ã«ãªã£ã¦ãããã®ããç¾å¨ãã¼ãããã¦ããæ©è½ã«ãªãã¾ãã
NetBeansã¯ã¨ã«ã´ããã¯ã¹æ©è½ãå®è£
ãã¦ãã¦ã
ãã©ã°ã¤ã³ã®èªã¿è¾¼ã¿ãå¿
è¦ã«ãªãã¾ã§é
延ããã¾ããã¤ã¾ããå¿
è¦ã«ãªã£ãããã®ã¨ãã«ãã©ã°ã¤ã³ããã¼ããã¾ãã
ãªã®ã§ã使ããªããã©ã°ã¤ã³ã¯ã©ãã©ãç¡å¹åãã¦ããã¼ããããã©ã°ã¤ã³ãå°ããããã¨ã§èµ·åãåä½ã軽快ã«ãªãã¾ãã
ãã®ç¡å¹åããåä½ã6.8ã¾ã§ã¯ãã£ã¨ããã¾ããªæ©è½åä½ã ã£ãã®ã§å®éã«ã¯å¿
è¦ã®ãªããã©ã°ã¤ã³ã¾ã§ãã¼ããã¦ãã¾ã£ã¦ããã®ã§ããã
6.9以éã ã¨ãã©ã°ã¤ã³åä½ãªã®ã§ããç´°ãããã¼ãããã»ãã¼ãããªããé¸æã§ãã¾ãã
ç¡å¹åã®æ¹æ³ã¯
1.対象ã®ãã©ã°ã¤ã³ã®ãã§ãã¯ããã¯ã¹ããã§ãã¯ãã¦ãã
2.ç¡å¹åãã¿ã³ãã¯ãªãã¯
3.表示ããããã¤ã¢ãã°ã§ç¡å¹åãã¿ã³ãã¯ãªãã¯
ã§ãã
NetBeansã®åèµ·åãä¿ãããå ´åãããã¾ãããã®å ´åã¯åèµ·åãããã¾ã§ã¯ç¡å¹åãåæ ããã¾ããã
ãã©ã°ã¤ã³ã¯ããããã«ä¾åé¢ä¿ãæã£ã¦ãããã®ããã£ã¦ãä»ã®ãã©ã°ã¤ã³ã対象ã®ãã©ã°ã¤ã³ã«ä¾åãã¦ããå ´åã¯ããããã®ãã©ã°ã¤ã³ãç¡å¹åãã¦ãããèããã¾ãã
é©å½ã«è©¦ããªããç¡å¹åãã¦ãã ããã
ä¾)ãEJBããã³EARãã¯ãJava Web ã¢ããªã±ã¼ã·ã§ã³ãã«ä¾åãã¦ããã®ã§ããJava Webã¢ããªã±ã¼ã·ã§ã³ããç¡å¹åããéã«ã¯ãEJB ããã³ EARããç¡å¹åãããã¨ã«ãªãã