Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13496

maven-invoker-plugin taking as much heapspace as the Maven itself

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.24.0, 3.0.0-M3, 2.23.3
    • Component/s: build system
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When we run maven-invoker-plugin it takes on any MAVEN_OPTS or .mvn/jvm.config settings and runs with those. We specify 3.5GB of heap for the Maven process in .mvn/jvm.config so for each invocation maven-invoker-plugin will start a JVM with additional 3.5GB of heap.

      There is no way of overriding the entire JVM configuration, but luckily the last -Xmx setting on the JVM command line is taken into consideration, so when configuring the maven-invoker-plugin we can set the <mavenOpts> configuration and it will be appended to the java command line arguments and the last -Xmx parameter will set the heap size.

        Attachments

          Activity

            People

            • Assignee:
              zregvart Zoran Regvart
              Reporter:
              zregvart Zoran Regvart
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: