티스토리 뷰

개발

Java HotSpot VM Options

달리는개발자 2011. 11. 4. 16:11
Java command-line 옵션과 환경 변수들
-X 옵션은 표준이 아니어서 공지없이 바뀔 수 있다고 합니다 (이게 표준이 아니면.... ㅡㅡ;;;)
-XX 옵션도 안정적이지 않고 추천하지도 않는다고 합니다.

Some Useful -XX Options
  • Boolean options are turned on with -XX:+<option> and turned off with -XX:-<option>.
  • Numeric options are set with -XX:<option>=<number>. Numbers can include 'm' or 'M' for megabytes, 'k' or 'K' for kilobytes, and 'g' or 'G' for gigabytes (for example, 32k is the same as 32768).
  • String options are set with -XX:<option>=<string>, are usually used to specify a file, a path, or a list of commands

  • 주요 옵션들
    Option and Default Value Description
    -classpath or -cp classpath
    -Xmsn Specify the initial size(default 2MB), k or K(kilobytes), m or M(megabytes)
    -Xmxn Specify the maximum size(default 64MB), k or K(kilobytes), m or M(megabytes)
    -XX:HeapDumpPath=./java_pid.hprof Path to directory or filename for heap dump. Manageable. (Introduced in 1.4.2 update 12, 5.0 update 7.)
    -XX:-HeapDumpOnOutOfMemoryError Dump heap to file when java.lang.OutOfMemoryError is thrown. Manageable. (Introduced in 1.4.2 update 12, 5.0 update 7.)


    Java HotSpot VM Options
    http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

    java - the Java application launcher
    http://download.oracle.com/javase/1.5.0/docs/tooldocs/solaris/java.html

     

    반응형
    댓글
    반응형
    공지사항
    최근에 올라온 글
    최근에 달린 댓글
    Total
    Today
    Yesterday
    «   2025/01   »
    1 2 3 4
    5 6 7 8 9 10 11
    12 13 14 15 16 17 18
    19 20 21 22 23 24 25
    26 27 28 29 30 31
    글 보관함