Manpages
Manpage of java
java
Section: User Commands (1) Updated: 2000 ǯ 7 ·î 28 Æü Index
Return to Main Contents
̾Á°
java - Java ¥¤¥ó¥¿¥×¥ê¥¿
·Á¼°
java
[
options
]
class
[
argument ...
]
java
[
options
]
-jar file.jar
[
argument ...
]
¥Ñ¥é¥á¡¼¥¿
¥ª¥×¥·¥ç¥ó¤Î»ØÄê½ç½ø¤ÏǤ°Õ¤Ç¤¹¡£ÆÃÄê¤Î¥ª¥×¥·¥ç¥ó¤ËŬÍѤµ¤ì¤ë¥Ñ¥é¥á¡¼¥¿
¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼¤Î¡Ö¥ª¥×¥·¥ç¥ó¡×Àá¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
- options
-
¥³¥Þ¥ó¥É¹Ô¥ª¥×¥·¥ç¥ó¡£°Ê²¼¤Î¡Ö¥ª¥×¥·¥ç¥ó¡×Àá¤ò»²¾È
- class
-
¸Æ¤Ó½Ð¤µ¤ì¤ë¥¯¥é¥¹¤Î̾Á°
- file.jar
-
¸Æ¤Ó½Ð¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤Î̾Á°¡£É¬¤º
-jar
¤ÈƱ»þ¤Ë»ÈÍѤµ¤ì¤ë
µ¡Ç½ÀâÌÀ
java
¥Ä¡¼¥ë¤Ï¡¢Java ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òµ¯Æ°¤·¤Þ¤¹¡£
java
¥Ä¡¼¥ë¤Ï¡¢Java Runtime Environment ¤òµ¯Æ°¤·¤¿¤¢¤È¡¢»ØÄꤵ¤ì¤¿¥¯¥é¥¹¤ò¥í¡¼¥É¤·¡¢¤³¤Î¥¯¥é¥¹¤Î
main
¥á¥½¥Ã¥É¤ò¸Æ¤Ó½Ð¤·¤Æ Java ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òµ¯Æ°¤·¤Þ¤¹¡£
main
¥á¥½¥Ã¥É¤Ï¼¡¤Î¥·¥°¥Ë¥Á¥ã¡¼¤ò»ý¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
public static void main(String args[])
¤³¤Î¥á¥½¥Ã¥É¤Ï
public
¤ª¤è¤Ó
static
¤ÇÀë¸À¤µ¤ì¡¢ÃͤòÊÖ¤µ¤º¡¢¥Ñ¥é¥á¡¼¥¿¤È¤·¤Æ
String
ÇÛÎó¤ò»ÈÍѤǤ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥ª¥×¥·¥ç¥ó¤Ç¤Ï¤Ê¤¤ºÇ½é¤Î°ú¿ô¤¬¡¢¸Æ¤Ó½Ð¤¹¥¯¥é¥¹¤Î̾Á°¤Ë
¤Ê¤ê¤Þ¤¹¡£¤³¤Î̾Á°¤Ë¤Ï¡¢´°Á´»ØÄê¤Î¥¯¥é¥¹Ì¾¤ò»ÈÍѤ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
-jar
¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤¿¾ì¹ç¡¢¥ª¥×¥·¥ç¥ó¤Ç¤Ï¤Ê¤¤ºÇ½é¤Î°ú¿ô¤Ï¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î
¥¯¥é¥¹¥Õ¥¡¥¤¥ë¤È¥ê¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤ò´Þ¤à JAR ¥¢¡¼¥«¥¤¥Ö¤Î̾Á°¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤Î¾ì¹ç¡¢Main-Class ¥Þ¥Ë¥Õ¥§¥¹¥È¥Ø¥Ã¥À¤Ç»ØÄꤵ¤ì¤¿¥¯¥é¥¹¤¬¥¹¥¿¡¼¥È
¥¢¥Ã¥×¥¯¥é¥¹¤Ë¤Ê¤ê¤Þ¤¹¡£
Java Runtime ¤Ï¡¢¥Ö¡¼¥È¥¹¥È¥é¥Ã¥×¥¯¥é¥¹¥Ñ¥¹¡¢¥¤¥ó¥¹¥È¡¼¥ë·¿³ÈÄ¥µ¡Ç½¡¢
¤ª¤è¤Ó¥æ¡¼¥¶¥¯¥é¥¹¥Ñ¥¹¤Î 3 ¤Ä¤Î¾ì½ê¤«¤é¡¢µ¯Æ°¥¯¥é¥¹¤È¤½¤Î¾¤Î
»ÈÍѤ¹¤ë¥¯¥é¥¹¤òõ¤·¤Þ¤¹¡£
¥¯¥é¥¹Ì¾¤Þ¤¿¤Ï JAR ¥Õ¥¡¥¤¥ë̾¤Î¤¢¤È¤Ë¤¢¤ë¥ª¥×¥·¥ç¥ó¤Ç¤Ï¤Ê¤¤°ú¿ô¤Ï¡¢
main ´Ø¿ô¤ËÅϤµ¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó
µ¯Æ°¥³¥Þ¥ó¥É¤Ë¤Ï¡¢¸½ºß¤Î¼Â¹Ô´Ä¶¤ª¤è¤Ó¾Íè¤Î¥ê¥ê¡¼¥¹¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤ë
ɸ½à¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹¡£¤¿¤À¤·°Ê²¼¤ÇÀâÌÀ¤¹¤ë¤è¤¦¤Ë¡¢Ê̤Υª¥×¥·¥ç¥ó¤Ë
ÃÖ¤´¹¤¨¤é¤ì¤¿¥ª¥×¥·¥ç¥ó¤Ï¸½ºß¤Ç¤Ï»È¤ï¤ì¤Æ¤ª¤é¤º¡¢¾Íè¤Î¥ê¥ê¡¼¥¹
¤Ç¤Ïºï½ü¤µ¤ì¤ëͽÄê¤Ç¤¹¡£¤³¤Î¤Û¤«¤ÎÈóɸ½à¥ª¥×¥·¥ç¥ó¤Ï¡¢
¸½ºß¤Î Virtual Machine ¼ÂÁõ¤Ë¸ÇͤΥª¥×¥·¥ç¥ó¤Ç¡¢¾ÍèÊѹ¹¤µ¤ì¤ë
²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£Èóɸ½à¥ª¥×¥·¥ç¥ó¤Ï
-X
¤Ç»Ï¤Þ¤ê¤Þ¤¹¡£
ɸ½à¥ª¥×¥·¥ç¥ó
- -client
-
Java HotSpot Client
VM
¤òÁªÂò¤·¤Þ¤¹¡£¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£
- -server
-
Java HotSpot Server
VM
¤òÁªÂò¤·¤Þ¤¹¡£
- -classpath classpath
-
- -cp classpath
-
¥¯¥é¥¹¥Õ¥¡¥¤¥ë¤òõ¤¹¥Ç¥£¥ì¥¯¥È¥ê¡¢JAR ¥¢¡¼¥«¥¤¥Ö¡¢¤ª¤è¤Ó ZIP ¥¢¡¼¥«¥¤¥Ö¤Î¥ê¥¹¥È¤ò»ØÄꤷ¤Þ¤¹¡£¥¯¥é¥¹¥Ñ¥¹¤Î³Æ¥¨¥ó¥È¥ê¤Ï¥³¥í¥ó (:) ¤Ç¶èÀÚ¤ê¤Þ¤¹¡£
-classpath
¤Þ¤¿¤Ï
-cp
¤ò»ØÄꤹ¤ë¤È¡¢¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤ÎÃͤˤè¤Ã¤Æ
CLASSPATH
´Ä¶ÊÑ¿ô¤ÎÀßÄê¤Ï¾å½ñ¤¤µ¤ì¤Þ¤¹¡£
java
¤Ç
-classpath
¤Þ¤¿¤Ï
-cp
¤ò»È¤¦¾ì¹ç¡¢¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤ë¤Î¤Ï¥æ¡¼¥¶¥¯¥é¥¹¤Î
¥¯¥é¥¹¥Ñ¥¹¤À¤±¤Ç¤¹¡£
oldjava
¤Ç
-classpath
¤Þ¤¿¤Ï
-cp
¤ò»È¤¦¾ì¹ç¡¢¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤ë¤Î¤Ï¡¢¥æ¡¼¥¶¥¯¥é¥¹¤È
¥Ö¡¼¥È¥¹¥È¥é¥Ã¥×¥¯¥é¥¹¤ÎξÊý¤Î¥¯¥é¥¹¥Ñ¥¹¤Ç¤¹¡£
-classpath
¤È
-cp
¤ò»ÈÍѤ»¤º¡¢
CLASSPATH
¤âÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¥æ¡¼¥¶¥¯¥é¥¹¥Ñ¥¹¤Ï¸½ºß¤Î¥Ç¥£¥ì¥¯¥È¥ê (.) ¤Ë¤Ê¤ê¤Þ¤¹¡£
- -debug
-
-Xdebug
¤ËÃÖ¤´¹¤ï¤ê¤Þ¤·¤¿¡£
- -Dproperty=value
-
¥·¥¹¥Æ¥à¥×¥í¥Ñ¥Æ¥£¤ÎÃͤòÀßÄꤷ¤Þ¤¹¡£
- -jar
-
JAR ¤ÎÃæ¤Ë¥«¥×¥»¥ë²½¤µ¤ì¤¿¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤·¤Þ¤¹¡£ºÇ½é¤Î°ú¿ô¤Ï¡¢µ¯Æ°¥¯¥é¥¹¤Î̾Á°¤Ç¤Ï¤Ê¤¯¡¢JAR ¥¢¡¼¥«¥¤¥Ö¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤Î¥ª¥×¥·¥ç¥ó¤¬Æ°ºî¤¹¤ë¤¿¤á¤Ë¤Ï¡¢JAR ¥Õ¥¡¥¤¥ë¤Î¥Þ¥Ë¥Õ¥§¥¹¥È¤Ë·Á¼° Main-Class:classname ¤Î¹Ô¤¬Æþ¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
classname
¤Ï¡¢¥æ¡¼¥¶¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î³«»ÏÅÀ¤È¤Ê¤ë
public static void main(String[] args)
¥á¥½¥Ã¥É¤ò»ý¤Ä¥¯¥é¥¹¤ò¼±Ê̤·¤Þ¤¹¡£Jar ¥Õ¥¡¥¤¥ë¤È Jar ¥Õ¥¡¥¤¥ë¤Î¥Þ¥Ë¥Õ¥§¥¹¥È¤ò°·¤¦ÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢Jar ¥Ä¡¼¥ë¤Î¥ê¥Õ¥¡¥ì¥ó¥¹¥Ú¡¼¥¸¤È¡ÖJava Tutorial¡×¤Î¡ÖJar Files¡×¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ÈÍѤ¹¤ë¤È¤¤Ï¡¢JAR ¥Õ¥¡¥¤¥ë¤¬¤¹¤Ù¤Æ¤Î¥æ¡¼¥¶¥¯¥é¥¹¤Î¥½¡¼¥¹¤È¤Ê¤ë¤¿¤á¡¢Â¾¤Î¥æ¡¼¥¶¥¯¥é¥¹¥Ñ¥¹¤ÎÀßÄê¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
- -noclassgc
-
-Xnoclassgc
¤ËÃÖ¤´¹¤ï¤ê¤Þ¤·¤¿¡£
- -msh
-
-Xms
n
¤ËÃÖ¤´¹¤ï¤ê¤Þ¤·¤¿¡£
- -mxn
-
-Xmx
n
¤ËÃÖ¤´¹¤ï¤ê¤Þ¤·¤¿¡£
- -ssn
-
-Xss
n
¤ËÃÖ¤´¹¤ï¤ê¤Þ¤·¤¿¡£
- -verbose
-
- -verbose:class
-
¥¯¥é¥¹¤¬¥í¡¼¥É¤µ¤ì¤ë¤¿¤Ó¤Ë¥¯¥é¥¹¤Ë´Ø¤¹¤ë¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
- -verbosegc
-
-verbose:gc
¤ËÃÖ¤´¹¤ï¤ê¤Þ¤·¤¿¡£
- -verbose:gc
-
¥¬¥Ù¡¼¥¸¥³¥ì¥¯¥·¥ç¥ó¥¤¥Ù¥ó¥È¤¬È¯À¸¤¹¤ë¤¿¤Ó¤ËÊó¹ð¤·¤Þ¤¹¡£
- -verbose:jni
-
¥Í¥¤¥Æ¥£¥Ö¥á¥½¥Ã¥É¤ª¤è¤Ó¤½¤Î¾¤Î Java Native Interface (JNI) ¤Î»ÈÍѤ˴ؤ¹¤ë
¾ðÊó¤òÊó¹ð¤·¤Þ¤¹¡£
- -version
-
¥Ð¡¼¥¸¥ç¥ó¾ðÊó¤òɽ¼¨¤·¤Æ½ªÎ»¤·¤Þ¤¹¡£
- -showversion
-
¥Ð¡¼¥¸¥ç¥ó¾ðÊó¤òɽ¼¨¤·¤Æ¡¢¼Â¹Ô¤ò·Ñ³¤·¤Þ¤¹¡£
- -?
-
- -help
-
»ÈÍÑË¡¤òɽ¼¨¤·¤Æ½ªÎ»¤·¤Þ¤¹¡£
- -X
-
Èóɸ½à¥ª¥×¥·¥ç¥ó¤Ë´Ø¤¹¤ë¾ðÊó¤òɽ¼¨¤·¤Æ½ªÎ»¤·¤Þ¤¹¡£
Èóɸ½à¥ª¥×¥·¥ç¥ó
- -Xint
-
¥¤¥ó¥¿¥×¥ê¥¿ÀìÍѥ⡼¥É¤ÇÆ°ºî¤·¤Þ¤¹¡£¥Í¥¤¥Æ¥£¥Ö¥³¡¼¥É¤Ø¤Î¥³¥ó¥Ñ¥¤¥ë¤Ï
̵¸ú¤Ë¤Ê¤ê¡¢¤¹¤Ù¤Æ¤Î¥Ð¥¤¥È¥³¡¼¥É¤¬¥¤¥ó¥¿¥×¥ê¥¿¤Ë¤è¤Ã¤Æ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
Java HotSpot VM Ŭ±þ·¿¥³¥ó¥Ñ¥¤¥é¤Ë¤è¤Ã¤ÆÆÀ¤é¤ì¤ë¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¾å¤Î
ÍøÅÀ¤Ï¡¢¤³¤Î¥â¡¼¥É¤Ç¤Ï¼Â¸½¤µ¤ì¤Þ¤»¤ó¡£
- -Xbootclasspath:bootclasspath
-
¥Ö¡¼¥È¥¯¥é¥¹¥Õ¥¡¥¤¥ë¤òõ¤¹¥Ç¥£¥ì¥¯¥È¥ê¡¢JAR ¥¢¡¼¥«¥¤¥Ö¡¢¤ª¤è¤Ó ZIP
¥¢¡¼¥«¥¤¥Ö¤ò¥³¥í¥ó¤Ç¶èÀڤ俥ꥹ¥È¤ò»ØÄꤷ¤Þ¤¹¡£»ØÄꤵ¤ì¤¿¥Ñ¥¹¤Ë
¸ºß¤¹¤ë¥Ö¡¼¥È¥¯¥é¥¹¥Õ¥¡¥¤¥ë¤Ï¡¢Java 2 SDK ¤È Java 2
Runtime Environment ¤Ë´Þ¤Þ¤ì¤ë¥Ö¡¼¥È¥¯¥é¥¹¥Õ¥¡¥¤¥ë¤ÎÂå¤ï¤ê¤Ë»È¤ï
¤ì¤Þ¤¹¡£
- -Xbootclasspath/a:path
-
¥Ç¥Õ¥©¥ë¥È¤Î¥Ö¡¼¥È¥¹¥È¥é¥Ã¥×¥¯¥é¥¹¥Ñ¥¹¤ËÄɲ乤ë¥Ç¥£¥ì¥¯¥È¥ê¡¢
JAR
¥¢¡¼¥«¥¤¥Ö¡¢¤ª¤è¤Ó
ZIP
¥¢¡¼¥«¥¤¥Ö¤Î¥Ñ¥¹¤ò¥³¥í¥ó¤Ç¶èÀڤäƻØÄꤷ¤Þ¤¹¡£
- -Xbootclasspath/p:path
-
¥Ç¥Õ¥©¥ë¥È¤Î¥Ö¡¼¥È¥¹¥È¥é¥Ã¥×¥¯¥é¥¹¥Ñ¥¹¤ÎÁ°¤ËÄɲ乤ë
¥Ç¥£¥ì¥¯¥È¥ê¡¢
JAR
¥¢¡¼¥«¥¤¥Ö¡¢¤ª¤è¤Ó
ZIP
¥¢¡¼¥«¥¤¥Ö¤Î¥Ñ¥¹¤ò¥³¥í¥ó¤Ç¶èÀڤäƻØÄꤷ¤Þ¤¹¡£
Ãí: ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò¡¢
rt.jar
Æâ¤Î¥¯¥é¥¹¤ò¥ª¡¼¥Ð¡¼¥é¥¤¥É
¤¹¤ëÌÜŪ¤Ç»ÈÍѤ¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï»ØÄꤷ¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£
»ØÄꤹ¤ë¤È¡¢Java 2 Runtime Environment
¥Ð¥¤¥Ê¥ê¥³¡¼¥É¥é¥¤¥»¥ó¥¹°ãÈ¿¤Ë¤Ê¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£
- -Xdebug
-
¥Ç¥Ð¥Ã¥¬¤¬Í¸ú¤Ê¾õÂ֤ǵ¯Æ°¤·¤Þ¤¹¡£Java ¥¤¥ó¥¿¥×¥ê¥¿¤Ï¡¢
jdb(1)
¤¬»ÈÍѤ¹¤ë¥Ñ¥¹¥ï¡¼¥É¤òɽ¼¨¤·¤Þ¤¹¡£¾ÜºÙ¤ÈÎã¤Ë¤Ä¤¤¤Æ¤Ï¡¢¡Ö
jdb(1)
¤ÎÀâÌÀ¡× ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
Ãí: ¤³¤Î¥ê¥ê¡¼¥¹¤Ç¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÁ°¤Ë
-Djava.compiler=NONE
¤ò»ØÄꤹ¤ë¤³¤È¤Ë¤è¤ê¡¢»öÁ°¤Ë¥³¥ó¥Ñ¥¤¥é¤ò̵¸ú¤Ë¤·¤Æ¤ª¤¯
ɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤³¤ÎÀ©¸Â¤Ï¾Íè¤Î¥ê¥ê¡¼¥¹¤Ç¤Ï¤Ê¤¯¤Ê¤ëͽÄê¤Ç¤¹¡£
- -Xfuture
-
¸·Ì©¤Ê¥¯¥é¥¹¥Õ¥¡¥¤¥ë·Á¼°¤Î¸¡ºº¤ò¼Â¹Ô¤·¤Þ¤¹¡£²¼°Ì¸ß´¹À¤ò°Ý»ý
¤¹¤ë¤¿¤á¡¢Java 2 SDK ¤Î Virtual Machine ¤Ç¼Â¹Ô¤µ¤ì¤ë¥Ç¥Õ¥©¥ë¥È¤Î
·Á¼°¸¡ºº¤Ï¡¢JDK ¥½¥Õ¥È¥¦¥§¥¢¤Î 1.1.x ¥Ð¡¼¥¸¥ç¥ó¤Ç¼Â¹Ô¤µ¤ì¤ë¸¡ºº¤è¤ê¤â
¸·Ì©¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
-Xfuture
¥Õ¥é¥°¤ò»ÈÍѤ¹¤ë¤È¡¢¥¯¥é¥¹¥Õ¥¡¥¤¥ë·Á¼°¤ò
¤è¤ê»ÅÍͤ˽àµò¤·¤¿¤â¤Î¤Ë¤¹¤ë¤¿¤á¤Î¡¢¤µ¤é¤Ë¸·Ì©¤Ê¥¯¥é¥¹¥Õ¥¡¥¤¥ë·Á¼°¸¡ºº¤¬
͸ú¤Ë¤Ê¤ê¤Þ¤¹¡£³«È¯¼Ô¤¬¿·¤·¤¤¥³¡¼¥É¤ò³«È¯¤¹¤ëºÝ¤Ë¤Ï¡¢¤³¤Î¥Õ¥é¥°¤Î
»ÈÍѤò¿ä¾©¤·¤Þ¤¹¡£Java ¥¢¥×¥ê¥±¡¼¥·¥ç¥óµ¯Æ°¥Ä¡¼¥ë¤Î
¾Íè¤Î¥ê¥ê¡¼¥¹¤Ç¤Ï¡¢¤è¤ê¸·Ì©¤Ê¸¡ºº¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤ë¤«¤é¤Ç¤¹¡£
- -Xnoclassgc
-
¥¯¥é¥¹¤Î¥¬¥Ù¡¼¥¸¥³¥ì¥¯¥·¥ç¥ó¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£
- -Xmsn
-
¥á¥â¥ê³ä¤êÅö¤Æ¥×¡¼¥ë¤Î½é´ü¥µ¥¤¥º¤ò»ØÄꤷ¤Þ¤¹¡£»ØÄꤹ¤ëÃͤϡ¢1000 ¤è¤ê
Â礤¯¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
n
¤Îñ°Ì¤òÊѹ¹¤¹¤ë¤Ë¤Ï¡¢K ¥Ð¥¤¥È¤Ë¤Ïʸ»ú
k
¤ò¡¢M ¥Ð¥¤¥È¤Ë¤Ïʸ»ú
m
¤ò¿ôÃͤθå¤ËÉÕ¤±¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï 8m ¤Ç¤¹¡£
- -Xmxn
-
¥á¥â¥ê³ä¤êÅö¤Æ¥×¡¼¥ë¤ÎºÇÂ祵¥¤¥º¤ò»ØÄꤷ¤Þ¤¹¡£»ØÄꤹ¤ëÃͤϡ¢
1000 ¤è¤êÂ礤¯¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
n
¤Îñ°Ì¤òÊѹ¹¤¹¤ë¤Ë¤Ï¡¢K ¥Ð¥¤¥È¤Ë¤Ïʸ»ú
k
¤ò¡¢M ¥Ð¥¤¥È¤Ë¤Ïʸ»ú
m
¤ò¿ôÃͤθå¤ËÉÕ¤±¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ï 24m ¤Ç¤¹¡£
- -Xprof
-
¼Â¹ÔÃæ¤Î¥×¥í¥°¥é¥à¤Î¥×¥í¥Õ¥¡¥¤¥ë¤òÀ¸À®¤·¡¢¥×¥í¥Õ¥¡¥¤¥ê¥ó¥°¥Ç¡¼¥¿¤ò
ɸ½à½ÐÎϤËÁ÷¤ê¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¥×¥í¥°¥é¥à³«È¯¤ËÌòΩ¤Ä
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤È¤·¤ÆÄ󶡤µ¤ì¤Æ¤¤¤ë¤â¤Î¤Ç¡¢ËÜÈÖ²ÔÆ°¥·¥¹¥Æ¥à¤Ç¤Î»ÈÍѤò
ÌÜŪ¤È¤·¤¿¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
- -Xrunhprof[:help][:suboption=value,...]
-
CPU¡¢¥Ò¡¼¥×¡¢¤Þ¤¿¤Ï¥â¥Ë¥¿¡¼¤Î¥×¥í¥Õ¥¡¥¤¥ê¥ó¥°¤ò͸ú¤Ë¤·¤Þ¤¹¡£Ä̾¤³¤Î¥ª¥×¥·¥ç¥ó¤Î¤¢¤È¤Ë¤Ï¡¢¥³¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿¡Ö
suboption=value
¡×¤Î¥Ú¥¢¤¬Â³¤¤Þ¤¹¡£¥µ¥Ö¥ª¥×¥·¥ç¥ó¤ª¤è¤Ó¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤΰìÍ÷¤ò¼èÆÀ¤¹¤ë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É
java -Xrunhprof:help
¤ò¼Â¹Ô¤·¤Þ¤¹¡£
- -Xssn
-
Java ¥¹¥ì¥Ã¥É¤Ï¤½¤ì¤¾¤ì 2 ¤Ä¤Î¥¹¥¿¥Ã¥¯¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£1 ¤Ä¤Ï Java ¥³¡¼¥ÉÍѤǡ¢¤â¤¦ 1 ¤Ä¤Ï C ¥³¡¼¥ÉÍѤǤ¹¡£
-Xss
¥ª¥×¥·¥ç¥ó¤Ï¡¢1 ¤Ä¤Î¥¹¥ì¥Ã¥ÉÆâ¤Î C ¥³¡¼¥É¤¬»ÈÍѤǤ¤ëºÇÂ祹¥¿¥Ã¥¯¥µ¥¤¥º¤ò
n
¤ËÀßÄꤷ¤Þ¤¹¡£
java
¤ËÅϤµ¤ì¤¿¥×¥í¥°¥é¥à¤Î¼Â¹ÔÃæ¤ËÀ¸À®¤µ¤ì¤¿¥¹¥ì¥Ã¥É¤Ï
¤½¤ì¤¾¤ì¡¢Æȼ«¤Î C ¥¹
¥¿¥Ã¥¯¥µ¥¤¥º¤È¤·¤Æ
n
¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£
n
¤Î¥Ç¥Õ¥©¥ë¥È¤Îñ°Ì¤Ï¥Ð¥¤¥È¤Ç¡¢
n
¤Ï 1000 ¥Ð¥¤¥È¤è¤ê¤âÂ礤¯¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
n
¤Î°ÕÌ£¤òÊѹ¹¤¹¤ë¾ì¹ç¡¢¥¥í¥Ð¥¤¥È¤Ë¤¹¤ë¤Ë¤Ïʸ»ú
k
¤ò¡¢¥á¥¬¥Ð¥¤¥È¤Ë¤¹¤ë¤Ë¤Ïʸ»ú
m
¤òÄɲä·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¥¹¥¿¥Ã¥¯¥µ¥¤¥º¤Ï
Java ¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤ò¼Â¹Ô¤·¤Æ¤¤¤ë Linux ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Ë
¤è¤Ã¤Æ·è¤á¤é¤ì¤Þ¤¹¡£
´Ä¶ÊÑ¿ô
- CLASSPATH
-
¥æ¡¼¥¶ÄêµÁ¥¯¥é¥¹¤Ø¤Î¥Ñ¥¹¤ò¥·¥¹¥Æ¥à¤ËÄÌÃΤ¹¤ë¤¿¤á¤Ë»ÈÍѤ·¤Þ¤¹¡£
Ê£¿ô¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄꤹ¤ë¾ì¹ç¤Ï¥³¥í¥ó¤Ç¶èÀÚ¤ê¤Þ¤¹¡£
¼¡¤ËÎã¤ò¼¨¤·¤Þ¤¹¡£
-
.:/home/avh/classes:/usr/local/java/classes
´ØÏ¢¹àÌÜ
javac(1)¡¢
jdb(1)¡¢
javac(1)¡¢
jar(1)¡¢
set(1)
¼¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢
java.sun.com
¤ò»²¾È¤Þ¤¿¤Ï¸¡º÷¤·¤Æ¤¯¤À¤µ¤¤¡£
- JDK ¤Î¥Õ¥¡¥¤¥ë¹½Â¤ @
-
http://java.sun.com/j2se/1.3/ja/docs/ja/tooldocs/linux/jdkfiles.html
(http://java.sun.com/j2se/1.3/docs/tooldocs/linux/jdkfiles.html ¡§±Ñ¸ìÈÇ)
- JAR Files @
-
http://java.sun.com/docs/books/tutorial/jar/
Ãí°Õ»ö¹à
¤¹¤Ù¤Æ¤Î
-X
¥ª¥×¥·¥ç¥ó¤ÏήưŪ¤Ç¤¹¡£¡Ö¥ª¥×¥·¥ç¥ó¡×¤ÎÀá¤Ç
ÀâÌÀ¤·¤Æ¤¤¤ë¤è¤¦¤Ë¡¢¤¤¤¯¤Ä¤«¤Îɸ½à¥ª¥×¥·¥ç¥ó¤Ï¸½ºß¤Ç¤Ï
»È¤ï¤ì¤Æ¤¤¤Þ¤»¤ó¡£
Index
- ̾Á°
-
- ·Á¼°
-
- ¥Ñ¥é¥á¡¼¥¿
-
- µ¡Ç½ÀâÌÀ
-
- ¥ª¥×¥·¥ç¥ó
-
- ɸ½à¥ª¥×¥·¥ç¥ó
-
- Èóɸ½à¥ª¥×¥·¥ç¥ó
-
- ´Ä¶ÊÑ¿ô
-
- ´ØÏ¢¹àÌÜ
-
- Ãí°Õ»ö¹à
-
This document was created by
man2html,
using the manual pages.
Time: 09:08:30 GMT, November 12, 2024
|