Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3033

BrokerService leaks threads when scheduler or jmx are enabled

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.4.1
    • 5.5.0
    • Broker
    • None

    Description

      If I launch the broker with the below, without the first two lines, and call brokerService.stop(), I have 13 more threads after than I had when I started. This in spite of the code I see in the BrokerService class that claims to shut down the scheduler (and the scheduler is one of the threads).

                 brokerService.setSchedulerSupport(false);
                  brokerService.setUseJmx(false);
                  brokerService.setPersistenceAdapter(new MemoryPersistenceAdapter());
                  brokerService.setPersistent(false);
                  brokerService.setUseShutdownHook(true);
                  brokerService.setUseLoggingForShutdownErrors(false);
                  brokerService.setSchedulerSupport(false);
                  bindAddress = "tcp://localhost:" + getBrokerPort();
                  tcpTransport = brokerService.addConnector(bindAddress);
                  brokerService.setDataDirectory(dataDirectory.getAbsolutePath());
                  brokerService.start();
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gtully Gary Tully
            bimargulies@gmail.com Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment