Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4348408

HotSpot VM does not report erroneous -Xmx request

XMLWordPrintable

    • generic
    • generic



      Name: abR10010 Date: 06/27/2000



      The HotSpot VM does not report erroneous -Xmx requests
      like these:

      % java -Xmx1 HelloWorld
      Hello World!

      or

      % java -Xmx1 -version
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-b20)
      Java HotSpot(TM) Client VM (build 1.3-internal, mixed mode)

      For comparison see the reaction of Classic VM to such
      request:

      % java -classic -Xmx1 -version
      Incompatible initial and maximum heap sizes specified:

          initial size: 1048576 bytes, maximum size: 1 bytes

      The initial heap size must be less than or equal to the maximum heap size.
      The default initial and maximum heap sizes are 1048576 and 67108864 bytes.
      Could not create the Java virtual machine.

      and the reaction of HotSpot VM to the erroneous -Xms request:

      % java -Xms1 -version
      Error occurred during initialization of VM
      Too small initial heap
       

      ======================================================================

            collins Gary Collins (Inactive)
            bondsunw Bond Bond (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: