Sling
  1. Sling
  2. SLING-1782

Build error: tests take a loooooooooong time

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Building revision 997835 takes a loooooooooong time. I stopped that after the integration tests had run longer than half an hour and there werde some problems as one can see in the log.

      I did not find any more information in sling/launchpad/testing/target/surefire-reports, but there were a small number of warnings "[main] HttpMethodBase.java:682 Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended."


      Running org.apache.sling.launchpad.testing.TestAll
      Running org.apache.sling.launchpad.webapp.integrationtest.issues.SLING457Test
      Checking if the required Sling services are started (timeout 62 seconds)...
      (base URLs=http://localhost:43374 and http://localhost:43374)
      Sling services seem to be started, continuing with integration tests.
      JSP script engine configured using serverscripts/jsp-engine-setup.jsp
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.GetStarTest
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.JspForwardTest
      Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.servlets.resolution.PathsServletTest
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.servlets.post.SlingDefaultValuesTest
      Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.MkdirTest
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.servlets.resolution.PutMethodServletTest
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.servlets.post.PostServletAtCopyTest
      Tests run: 8, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.FiltersTest
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.JavascriptWrappersTest
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.GetWithSuffixTest
      Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.servlets.resolution.WarSelectorServletTest
      Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.servlets.post.PostServletUpdateTest
      Tests run: 7, Failures: 0, Errors: 1, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.RedirectTest
      Tests run: 4, Failures: 1, Errors: 3, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.GeneratedNodeNameTest
      Tests run: 6, Failures: 0, Errors: 6, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.StaticContentTest
      Tests run: 2, Failures: 2, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.InitialContentTest
      Tests run: 5, Failures: 5, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.servlets.post.PostServletOrderTest
      Tests run: 9, Failures: 0, Errors: 9, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.ScriptBuiltinObjectsTest
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.accessManager.PrivilegesInfoTest
      Tests run: 5, Failures: 0, Errors: 5, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.PostRedirectTest
      Tests run: 6, Failures: 0, Errors: 6, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.NamespaceMappingTest
      Tests run: 4, Failures: 4, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.servlets.post.PostServletCreateTest
      Tests run: 12, Failures: 2, Errors: 10, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.servlets.post.PostServletOutputContentTypeTest
      Tests run: 6, Failures: 5, Errors: 1, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.SyntheticResourceTest
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.userManager.UpdateGroupTest
      Tests run: 3, Failures: 3, Errors: 0, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.servlets.resolution.ExtensionServletTest
      Tests run: 3, Failures: 0, Errors: 3, Skipped: 0
      Running org.apache.sling.launchpad.webapp.integrationtest.DavExIntegrationTest
      Tests run: 2, Failures: 0, Errors: 2, Skipped: 0

        Issue Links

          Activity

          Hide
          Felix Meschberger added a comment - - edited

          What are your heap and PermGen sizes ? It might be that your GC is taken over the reign
          Also you need more memory if your on a 64bit system

          Show
          Felix Meschberger added a comment - - edited What are your heap and PermGen sizes ? It might be that your GC is taken over the reign Also you need more memory if your on a 64bit system
          Hide
          Andreas Kuckartz added a comment -

          Yes, PermSize is a problem. Unfortunately the build did not abort and the info on that problem ("java.lang.OutOfMemoryError: PermGen space") was hidden in org.apache.sling.launchpad.testing.TestAll.txt

          I now changed PermSize from 128M to 256M. The documentation should be modified as well (http://sling.apache.org/site/getting-and-building-sling.html).

          But it turns out that this did not solve the problem. Fortunately the problem now is logged normally:

          Running org.apache.sling.launchpad.webapp.integrationtest.accessManager.ModifyAceTest
          ERROR: EventDispatcher: Error during dispatch. (java.lang.OutOfMemoryError: PermGen space)
          java.lang.OutOfMemoryError: PermGen space
          ERROR: EventDispatcher: Error during dispatch. (java.lang.OutOfMemoryError: PermGen space)
          java.lang.OutOfMemoryError: PermGen space

          I will try again with PermSize 512M. But it is strange that the PermSize requirements multiplied within a few days ...

          Show
          Andreas Kuckartz added a comment - Yes, PermSize is a problem. Unfortunately the build did not abort and the info on that problem ("java.lang.OutOfMemoryError: PermGen space") was hidden in org.apache.sling.launchpad.testing.TestAll.txt I now changed PermSize from 128M to 256M. The documentation should be modified as well ( http://sling.apache.org/site/getting-and-building-sling.html ). But it turns out that this did not solve the problem. Fortunately the problem now is logged normally: Running org.apache.sling.launchpad.webapp.integrationtest.accessManager.ModifyAceTest ERROR: EventDispatcher: Error during dispatch. (java.lang.OutOfMemoryError: PermGen space) java.lang.OutOfMemoryError: PermGen space ERROR: EventDispatcher: Error during dispatch. (java.lang.OutOfMemoryError: PermGen space) java.lang.OutOfMemoryError: PermGen space I will try again with PermSize 512M. But it is strange that the PermSize requirements multiplied within a few days ...
          Hide
          Andreas Kuckartz added a comment -

          PermSize 512 solved this problem (so that I can now see a different problem).

          This issue can be closed when the PermSize requirement (PermSize 512M for 64 bit Linux) has been added to the Gettin and Building Sling page.

          Show
          Andreas Kuckartz added a comment - PermSize 512 solved this problem (so that I can now see a different problem). This issue can be closed when the PermSize requirement (PermSize 512M for 64 bit Linux) has been added to the Gettin and Building Sling page.
          Hide
          Felix Meschberger added a comment -

          Ammended the MAVEN_OPTS recommendation output generated during the build in the parent POM in Rev. 997987. (This will show up, once we release the parent POM and refer to it from the projects).

          Also updated the recommendations on the Getting and Building Page.

          Show
          Felix Meschberger added a comment - Ammended the MAVEN_OPTS recommendation output generated during the build in the parent POM in Rev. 997987. (This will show up, once we release the parent POM and refer to it from the projects). Also updated the recommendations on the Getting and Building Page.

            People

            • Assignee:
              Felix Meschberger
              Reporter:
              Andreas Kuckartz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development