java.lang.OutOfMemoryError: Java heap space

Jenkins JIRA | James Gustafson | 5 years ago
  1. 0

    We are getting a java.lang.OutOfMemoryError exception when getting the remote log. {quote} Started by an SCM change Building in workspace C:\x\workspace\project_name_here cvs checkout -r BRANCH_NAME_HERE -D 16 May 2012 23:27:38 -0700 -d path\projects path/projects cvs checkout: Updating path\projects cvs checkout: Updating path\projects/dir1 cvs checkout: Updating path\projects/dir2/dirA ... (about 7,224 directories) ... cvs checkout: Updating path\projects/dirN cvs rlog: Logging path\projects ... (about 7,224 directories) ... cvs rlog: Logging path\projects/dirN FATAL: Java heap space java.lang.OutOfMemoryError: Java heap space at java.lang.StringCoding$StringDecoder.decode(Unknown Source) at java.lang.StringCoding.decode(Unknown Source) at java.lang.StringCoding.decode(Unknown Source) at java.lang.String.<init>(Unknown Source) at java.io.ByteArrayOutputStream.toString(Unknown Source) at hudson.scm.CVSSCM.getRemoteLogForModule(CVSSCM.java:540) at hudson.scm.CVSSCM.calculateChangeLog(CVSSCM.java:415) at hudson.scm.CVSSCM.checkout(CVSSCM.java:825) at hudson.model.AbstractProject.checkout(AbstractProject.java:1218) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:586) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475) at hudson.model.Run.run(Run.java:1434) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) {quote} Some notes: - The path/ and path\ comes from the "Remote Name"/"Local Name" settings solution from Issue JENKINS-13264 - We are using Jenkins 1.464 with the 2.4-SNAPSHOT version of the CVS plugin, but may not have been caused by this specific version - The arguments setting in the jenkins.xml file currently has -Xms1024m (anything larger and Jenkins service won't start) - The CVS module has many legacy projects spread out, and thus, contains more than 7,000 directories and many more files - Things had worked with the 1.6 plug-in & CVSNT client, but it also occasionally timed out getting the changelog, hence our testing of the 2.x plug-ins

    Jenkins JIRA | 5 years ago | James Gustafson
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    We are getting a java.lang.OutOfMemoryError exception when getting the remote log. {quote} Started by an SCM change Building in workspace C:\x\workspace\project_name_here cvs checkout -r BRANCH_NAME_HERE -D 16 May 2012 23:27:38 -0700 -d path\projects path/projects cvs checkout: Updating path\projects cvs checkout: Updating path\projects/dir1 cvs checkout: Updating path\projects/dir2/dirA ... (about 7,224 directories) ... cvs checkout: Updating path\projects/dirN cvs rlog: Logging path\projects ... (about 7,224 directories) ... cvs rlog: Logging path\projects/dirN FATAL: Java heap space java.lang.OutOfMemoryError: Java heap space at java.lang.StringCoding$StringDecoder.decode(Unknown Source) at java.lang.StringCoding.decode(Unknown Source) at java.lang.StringCoding.decode(Unknown Source) at java.lang.String.<init>(Unknown Source) at java.io.ByteArrayOutputStream.toString(Unknown Source) at hudson.scm.CVSSCM.getRemoteLogForModule(CVSSCM.java:540) at hudson.scm.CVSSCM.calculateChangeLog(CVSSCM.java:415) at hudson.scm.CVSSCM.checkout(CVSSCM.java:825) at hudson.model.AbstractProject.checkout(AbstractProject.java:1218) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:586) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475) at hudson.model.Run.run(Run.java:1434) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) {quote} Some notes: - The path/ and path\ comes from the "Remote Name"/"Local Name" settings solution from Issue JENKINS-13264 - We are using Jenkins 1.464 with the 2.4-SNAPSHOT version of the CVS plugin, but may not have been caused by this specific version - The arguments setting in the jenkins.xml file currently has -Xms1024m (anything larger and Jenkins service won't start) - The CVS module has many legacy projects spread out, and thus, contains more than 7,000 directories and many more files - Things had worked with the 1.6 plug-in & CVSNT client, but it also occasionally timed out getting the changelog, hence our testing of the 2.x plug-ins

    Jenkins JIRA | 5 years ago | James Gustafson
    java.lang.OutOfMemoryError: Java heap space
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.lang.OutOfMemoryError: Java heap space in jenkins

    Stack Overflow | 1 year ago | ganesh
    java.lang.OutOfMemoryError: Java heap space
  5. 0

    issuehub.io

    issuehub.io | 1 year ago
    java.lang.OutOfMemoryError: Java heap space

  1. Nisha Singh 2 times, last 8 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Java heap space

    at java.lang.StringCoding$StringDecoder.decode()
  2. Java RT
    ByteArrayOutputStream.toString
    1. java.lang.StringCoding$StringDecoder.decode(Unknown Source)
    2. java.lang.StringCoding.decode(Unknown Source)
    3. java.lang.StringCoding.decode(Unknown Source)
    4. java.lang.String.<init>(Unknown Source)
    5. java.io.ByteArrayOutputStream.toString(Unknown Source)
    5 frames
  3. Hudson
    Executor.run
    1. hudson.scm.CVSSCM.getRemoteLogForModule(CVSSCM.java:540)
    2. hudson.scm.CVSSCM.calculateChangeLog(CVSSCM.java:415)
    3. hudson.scm.CVSSCM.checkout(CVSSCM.java:825)
    4. hudson.model.AbstractProject.checkout(AbstractProject.java:1218)
    5. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:586)
    6. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475)
    7. hudson.model.Run.run(Run.java:1434)
    8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    9. hudson.model.ResourceController.execute(ResourceController.java:88)
    10. hudson.model.Executor.run(Executor.java:239)
    10 frames