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

java.lang.OutOfMemoryError: Compressed class space

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Component/s: _unsorted
    • Labels:
      None
    • Environment:
      Jenkins 2.164.2
      java version "1.8.0_201
    • Similar Issues:

      Description

      Apparently, my build job failed unit test, this issue happening randomly in every slave node.

      [INFO] Running ch.crdw.task.service.CrdhwayDraftTaskServiceTest
      [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.798 s - in ch.crdw.task.service.CrdhwayDraftTaskServiceTest
      [INFO] Running ch.crdw.cloning.service.DossierTaskServiceTest
      [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.173 s - in ch.crdw.cloning.service.DossierTaskServiceTest
      [INFO] Running ch.crdw.helper.DossierOperationHelperTest
      [INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.829 s - in ch.crdw.helper.DossierOperationHelperTest
      [INFO] Running ch.crdw.helper.AbstractCockpitBuilderTest
      [INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5 s - in ch.crdw.helper.AbstractCockpitBuilderTest
      [INFO] Running ch.crdw.helper.CompetenceLevelHelperTest
      [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.341 s - in ch.crdw.helper.CompetenceLevelHelperTest
      [INFO] Running ch.crdw.helper.PropertyHelperTest
      [INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.728 s - in ch.crdw.helper.PropertyHelperTest
      [INFO] Running ch.crdw.helper.ClientOnBoardingViewBeanHelperTest
      [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 48.804 s <<< FAILURE! - in ch.crdw.helper.ClientOnBoardingViewBeanHelperTest
      [ERROR] ch.crdw.helper.ClientOnBoardingViewBeanHelperTest  Time elapsed: 47.936 s  <<< ERROR!
      java.lang.OutOfMemoryError: Compressed class space[INFO] Running ch.crdw.helper.PropertyGrannyAnnexeHelperTest
      [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 23.119 s <<< FAILURE! - in ch.crdw.helper.PropertyGrannyAnnexeHelperTest
      [ERROR] initializationError(ch.crdw.helper.PropertyGrannyAnnexeHelperTest)  Time elapsed: 0.012 s  <<< ERROR!
      java.lang.OutOfMemoryError: Compressed class space[ERROR] ch.crdw.helper.PropertyGrannyAnnexeHelperTest  Time elapsed: 11.44 s  <<< ERROR!
      java.lang.OutOfMemoryError: Compressed class space
      
      

      Can someone advise me how to fix this issue?

      Thanks.

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment -

          This is not a Jenkins issue. If the Java subprocess is not able to allocate memory, the tests will fail, whether they are running in Jenkins or outside Jenkins.

          Show
          markewaite Mark Waite added a comment - This is not a Jenkins issue. If the Java subprocess is not able to allocate memory, the tests will fail, whether they are running in Jenkins or outside Jenkins.

            People

            • Assignee:
              Unassigned
              Reporter:
              tiendungitd Dennis Tran
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: