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

Error occurred during initialization of VM if -Xmx biggest that system limit (ulimit -v)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • hs24
    • hotspot

      $ ulimit -v
      4892480
      $ ./java -server -Xmx5g -version
      Error occurred during initialization of VM
      Could not reserve enough space for object heap 1178599424 bytes

      $ ulimit -v
      4892480
      $ ./java -server -Xmx4892480 -version
      java version "1.8.0-internal-fastdebug"
      Java(TM) SE Runtime Environment (build 1.8.0-internal-fastdebug-201301181518.amurillo.hs25-b16-jdk8-b74--b00)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b16-fastdebug, mixed mode)

            Unassigned Unassigned
            iignatyev Igor Ignatyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: