Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8865

Specifying initial heap size results in an error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.3
    • 3.0.0-alpha-4, 2.5.4
    • groovy-runtime
    • Windows 10, OpenJDK 11.0.1

    Description

      On Windows, setting initial heap size greater than 128MB without setting maximum heap size, e.g. JAVA_OPTS=-Xms1G, results in the following error:

      Error occurred during initialization of VM
      Initial heap size set to a larger value than the maximum heap size

      This works fine on Linux. And it is a valid JVM parameter, since JVM will set its maximum heap to be the greater of its default value and initial heap size.

      Attachments

        Activity

          People

            paulk Paul King
            rsmirnov Rostyslav Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: