Qpid
  1. Qpid
  2. QPID-2635

Ant tests fail with OutOfMemoryError due to PermGen space exhaustion

    Details

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

      Description

      Ant tests fail with OutOfMemoryError due to PermGen space exhaustion. This appears to happen only with the last test, and only intermittently.

        Activity

        Hide
        Andrew Kennedy added a comment -

        Change permgen to 256Mb for tests. Works for me, but can't test under all situations...

        Show
        Andrew Kennedy added a comment - Change permgen to 256Mb for tests. Works for me, but can't test under all situations...
        Hide
        Andrew Kennedy added a comment -

        This should work, but it doesn't and I think setting ANT_OPTS is the only way of getting rid of this issue just now...

        Show
        Andrew Kennedy added a comment - This should work, but it doesn't and I think setting ANT_OPTS is the only way of getting rid of this issue just now...
        Hide
        Andrew Kennedy added a comment -

        The attached patch now correctly forks once per module, setting max perm size to 256Mb

        Show
        Andrew Kennedy added a comment - The attached patch now correctly forks once per module, setting max perm size to 256Mb
        Hide
        Andrew Kennedy added a comment -

        Removed the permgen JVM args, since simply setting junit fork mode to 'once' fixes the issue.

        Show
        Andrew Kennedy added a comment - Removed the permgen JVM args, since simply setting junit fork mode to 'once' fixes the issue.
        Hide
        Robbie Gemmell added a comment -

        Patch applied.

        Show
        Robbie Gemmell added a comment - Patch applied.

          People

          • Assignee:
            Robbie Gemmell
            Reporter:
            Andrew Kennedy
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development