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

Embedded server hangs on shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.16.0
    • None
    • Broker
    • None
    • CentOS 7

      OpenJDK 11.0.9

    Description

      I'm investigating switching to Artemis.  I created a simple embedded broker and a VM connection to it.  After completion, the VM hangs for 1 minute on exit.

      The following is the simple code:

      EmbeddedActiveMQ server = new EmbeddedActiveMQ();
      server.setConfigResourcePath(xml);
      server.start();
      TransportConfiguration transportConfiguration = new TransportConfiguration(InVMConnectorFactory.class.getName());
      ConnectionFactory cf = ActiveMQJMSClient.createConnectionFactoryWithoutHA(JMSFactoryType.CF, transportConfiguration);
      Connection connection = cf.createConnection();
      connection.close();
      server.stop();
      

      The configuration:

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <configuration xmlns="urn:activemq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:activemq /tmp/artemis-configuration.xsd">
         <core xmlns="urn:activemq:core">
            <persistence-enabled>false</persistence-enabled>
            <security-enabled>false</security-enabled>
            <journal-type>NIO</journal-type>
            <journal-pool-files>1</journal-pool-files>
            <acceptors>
               <acceptor name="in-vm">vm://localhost</acceptor>
            </acceptors>
         </core>
      </configuration>
      

      I have attached the log.

      Also, does anybody know why there is so much logging at INFO?

      Attachments

        1. log.txt
          3 kB
          Scott Ortel
        2. log2.txt
          3 kB
          Scott Ortel

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sortel Scott Ortel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: