Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-220

Test suite has memory leaks

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.CR1
    • 4.0.0.BETA2
    • None
    • None

      During an execution of a test suite TestNG keeps references to all executed test class instances. Some of our test classes keep references to instantiated caches, cache managers, and other heavy weight objects thus preventing those references from ever being garbage collected.

      Our test classes should never keep references to heavyweight objects other than in a test method scope. If we must keep reference to a cache or a cache manager in a class scope these references should be cleared and nulled in a method annotated with @AfterClass.

              vblagoje Vladimir Blagojevic (Inactive)
              vblagoje Vladimir Blagojevic (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: