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

Specifying initial heap size results in an error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.3
    • Fix Version/s: 3.0.0-alpha-4, 2.5.4
    • Component/s: groovy-runtime
    • Labels:
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: