ページ更新: 2011-08-30 (火) (2697日前)

(2006-11-08 新規作成)

[編集]

-Xmx の最大値 (2011-08-30) #

Microsoft Windows XP [Version 5.1.2600] (Windows XP Professional SP3) にて

1.6.0_27 Client VM:

C:> "c:\Program Files\Java\jdk1.6.0_27\jre\bin\java.exe" -server -Xmx1420m -version
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Server VM (build 20.2-b06, mixed mode)
C:> "c:\Program Files\Java\jdk1.6.0_27\jre\bin\java.exe" -server -Xmx1421m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

1.6.0_27 Server VM

C:> "c:\Program Files\Java\jdk1.6.0_27\jre\bin\java.exe" -Xmx1406m -version
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode)
C:> "c:\Program Files\Java\jdk1.6.0_27\jre\bin\java.exe" -Xmx1407m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

Microsoft Windows [Version 6.1.7601] (Windows 7 Professional SP1 / x64) にて

1.6.0_27 Client VM:

C:>"c:\Program Files (x86)\Java\jdk1.6.0_27\jre\bin\java.exe" -Xmx1588m -version
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode)
C:> "c:\Program Files (x86)\Java\jdk1.6.0_27\jre\bin\java.exe" -Xmx1589m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

1.6.0_27 Server VM:

C:> "c:\Program Files (x86)\Java\jdk1.6.0_27\jre\bin\java.exe" -server -Xmx1602m -version
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Server VM (build 20.2-b06, mixed mode)
C:> "c:\Program Files (x86)\Java\jdk1.6.0_27\jre\bin\java.exe" -server -Xmx1603m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
[編集]

環境変数 _JAVA_LAUNCHER_DEBUG (2006-11-08) #

C:\> set _JAVA_LAUNCHER_DEBUG=1

J2SDK 1.4.2_12

C:\>c:\java\j2sdk1.4.2_12\bin\java

----_JAVA_LAUNCHER_DEBUG----
JRE path is c:\java\j2sdk1.4.2_12\jre
jvm.cfg[0] = ->-client<-
jvm.cfg[1] = ->-server<-
jvm.cfg[2] = ->-hotspot<-
    name: -hotspot  vmType: VM_ALIASED_TO  alias: -client
jvm.cfg[3] = ->-classic<-
jvm.cfg[4] = ->-native<-
jvm.cfg[5] = ->-green<-
11553 micro seconds to parse jvm.cfg
JVM path is c:\java\j2sdk1.4.2_12\jre\bin\client\jvm.dll
291691 micro seconds to LoadJavaVM
JavaVM args:
    version 0x00010002, ignoreUnrecognized is JNI_FALSE, nOptions is 2
    option[ 0] = '-Djava.class.path=.'
    option[ 1] = '-Dsun.java.launcher=SUN_STANDARD'
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
 :
 :

JDK 1.5.0_09

C:\>c:\java\jdk1.5.0_09\bin\java

----_JAVA_LAUNCHER_DEBUG----
JRE path is c:\java\jdk1.5.0_09\jre
jvm.cfg[0] = ->-client<-
jvm.cfg[1] = ->-server<-
jvm.cfg[2] = ->-hotspot<-
    name: -hotspot  vmType: VM_ALIASED_TO  alias: -client
jvm.cfg[3] = ->-classic<-
jvm.cfg[4] = ->-native<-
jvm.cfg[5] = ->-green<-
222 micro seconds to parse jvm.cfg
Default VM: client
JVM path is c:\java\jdk1.5.0_09\jre\bin\client\jvm.dll
117104 micro seconds to LoadJavaVM
JavaVM args:
    version 0x00010002, ignoreUnrecognized is JNI_FALSE, nOptions is 2
    option[ 0] = '-Djava.class.path=.'
    option[ 1] = '-Dsun.java.launcher=SUN_STANDARD'
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
 :
 :

JDK 1.6.0 beta 2

C:\>c:\java\jdk1.6.0\bin\java
----_JAVA_LAUNCHER_DEBUG----
JRE path is c:\java\jdk1.6.0\jre
jvm.cfg[0] = ->-client<-
jvm.cfg[1] = ->-server<-
jvm.cfg[2] = ->-hotspot<-
    name: -hotspot  vmType: VM_ALIASED_TO  alias: -client
jvm.cfg[3] = ->-classic<-
jvm.cfg[4] = ->-native<-
jvm.cfg[5] = ->-green<-
281 micro seconds to parse jvm.cfg
Default VM: client
JVM path is c:\java\jdk1.6.0\jre\bin\client\jvm.dll
JRE path is c:\java\jdk1.6.0\jre
CRT path is c:\java\jdk1.6.0\jre\bin\msvcr71.dll
121300 micro seconds to LoadJavaVM
JavaVM args:
    version 0x00010002, ignoreUnrecognized is JNI_FALSE, nOptions is 2
    option[ 0] = '-Djava.class.path=.'
    option[ 1] = '-Dsun.java.launcher=SUN_STANDARD'
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
 :
 :