[ 
https://issues.apache.org/jira/browse/ARTEMIS-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17266846#comment-17266846
 ] 

Scott Ortel edited comment on ARTEMIS-3071 at 1/18/21, 1:09 PM:
----------------------------------------------------------------

Thanks for the suggestion Francesco.  I cleaned them all up (attached new 
log2.txt) and the issue still persists.

If I don't make a connection, the everything seems to shutdown correctly.  If I 
make a connection it hangs with the debugger showing the following two threads 
running for the entire minute after main() completes:

> Thread [Thread-0 
> (org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnector)] (Running)

> Daemon Thread [Thread-0 (ActiveMQ-client-global-threads)] (Running)

Maybe the JMS connection.close() logic is incorrect.


was (Author: sortel):
Thanks for the suggestion Francesco.  I cleaned them all up (attached new 
log2.txt) and the issue still persists.

If I don't make a connection, the everything seems to shutdown correctly.  If I 
make a connection it hangs with the debugger showing the following two threads 
running for the entire minute after main() completes:

Thread [Thread-0 
(org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnector)] (Running)

Daemon Thread [Thread-0 (ActiveMQ-client-global-threads)] (Running)

Maybe the JMS connection.close() logic is incorrect.

> Embedded server hangs on shutdown
> ---------------------------------
>
>                 Key: ARTEMIS-3071
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3071
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.16.0
>         Environment: CentOS 7
> OpenJDK 11.0.9
>            Reporter: Scott Ortel
>            Priority: Major
>         Attachments: log.txt, log2.txt
>
>
> 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?
> Thanks!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to