Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2593

Thread leak test failure with OpenJ9 JVM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.11.0
    • None
    • None

    Description

      The test suite checks thread leak after each test, checking all the running threads at the end of the test and if any of the thread is not in the expected set, the test will fail.

      The expected set is a set of thread names that can be ignored when checking thread leak. With OpenJ9 JVM, the broker will cause a daemon thread called "MemoryMXBean" to be started by the VM. This thread is not controlled by the broker and should be put to the expected set. Otherwise tests will report false thread leak error.

      LEAKING THREADS
      =============================================================================
      Thread Thread[MemoryMXBean notification dispatcher,6,main] is still alive with the following stackTrace:
      jdk.management/com.ibm.lang.management.internal.MemoryNotificationThread.processNotificationLoop(Native Method)
      jdk.management/com.ibm.lang.management.internal.MemoryNotificationThread.run(MemoryNotificationThread.java:183)
      *********************************************************************************
      [main] 01:01:21,829 INFO  [org.apache.activemq.artemis.utils.ThreadLeakCheckRule] #test forceGC
      [main] 01:01:21,877 INFO  [org.apache.activemq.artemis.utils.ThreadLeakCheckRule] #test forceGC Done 
      *********************************************************************************
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brusdev Domenico Francesco Bruscino
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h