Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54871

"java.lang.OutOfMemoryError: unable to create new native thread" running gatling test with maven

    Details

    • Type: Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Blocker
    • Resolution: Not A Defect
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      OS: Server 2012R2
      CPU: Intel Xeon E5-2690 2.59Ghz
      RAM: 22GB
      Jenkins running as: Domain service account with local administrator privileges
    • Similar Issues:

      Description

      I created a Jenkins job using the maven plugin to run a gatling.io test, but it always fails with "java.lang.OutOfMemoryError: unable to create new native thread" (full output attached).  I can run the maven job manually, from the workspace created by Jenkins, with "mvn gatling:test" and it runs without issue.  The project I'm trying to run via Jenkins can be found at "https://github.com/gatling/gatling-maven-plugin-demo".

       

        Attachments

          Activity

          Hide
          vititov Valentin Titov added a comment -

          Brad,

          Could you, please, rerun maven (both as jenkins job and from cmd line) with more diagnostics?
          E.g., please, set MAVEN_OPTS, than "Re-run Maven using the -X switch":

          MAVEN_OPTS='-XshowSettings:vm -XshowSettings:properties -verbose'
          export MAVEN_OPTS
          mvn -B -X gatling:test >& mvn.log &

          Pease, pay attention to output of gatling:help:

          mvn gatling:help -Ddetail=true

          You might want to tune  compilerJvmArgs:
          Extra JVM arguments to pass when running Zinc.
          User property: gatling.compilerJvmArgs

          Regards,
          Valentin

          Show
          vititov Valentin Titov added a comment - Brad, Could you, please, rerun maven (both as jenkins job and from cmd line) with more diagnostics? E.g., please, set MAVEN_OPTS, than "Re-run Maven using the -X switch": MAVEN_OPTS= '-XshowSettings:vm -XshowSettings:properties -verbose' export MAVEN_OPTS mvn -B -X gatling:test >& mvn.log & Pease, pay attention to output of gatling:help: mvn gatling:help -Ddetail= true You might want to tune  compilerJvmArgs: Extra JVM arguments to pass when running Zinc. User property: gatling.compilerJvmArgs Regards, Valentin
          Hide
          betawind Brad DeWindt added a comment - - edited

          Valentin,

          Thanks for the quick response.  I was able to fix this issue by adding tuning the JVM arguments as suggested:

          "-Dgatling.compilerJvmArgs="-Xmx512m"

          My test now runs without any issue.

          Thanks again!

          Brad

          Show
          betawind Brad DeWindt added a comment - - edited Valentin, Thanks for the quick response.  I was able to fix this issue by adding tuning the JVM arguments as suggested: "-Dgatling.compilerJvmArgs="-Xmx512m" My test now runs without any issue. Thanks again! Brad

            People

            • Assignee:
              vititov Valentin Titov
              Reporter:
              betawind Brad DeWindt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: