title: Failed to create session factory AMQ219007 when sending messages to AMQ Artemis from Camel JMS component
body: <p>I try to send messages from the Camel rout JMS component, on some messages the error below occurs. Out of 50,000 messages, 4937 reached an average speed of 497 mes/sec. At the same time, with the same settings, the classic ActiveMQ gives about 10,000 mes/sec</p>
  
  <p>Artemis version 2.11.0. Camel version 2.20.2</p>
  
  <p>Error</p>
  
  <pre><code>Error while routing: Message has put to DEAD.LETTER.QUEUE
   org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Failed to create session factory; nested exception is ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ219007: Cannot connect to server(s). Tried with all available servers.]
      at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316)
      at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:169)
      at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:487)
      at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:516)
      at org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:440)
      at org.apache.camel.component.jms.JmsProducer.processInOnly(JmsProducer.java:394)
      at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:157)
      at org.apache.camel.processor.SendDynamicProcessor$1.doInAsyncProducer(SendDynamicProcessor.java:132)
      at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:445)
      at org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:127)
      at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
      at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
      at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
      at org.apache.camel.processor.WireTapProcessor$1.call(WireTapProcessor.java:158)
      at org.apache.camel.processor.WireTapProcessor$1.call(WireTapProcessor.java:153)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Suppressed: org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Failed to create session factory; nested exception is ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ219007: Cannot connect to server(s). Tried with all available servers.]
          ... 19 more
          Suppressed: org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Failed to create session factory; nested exception is ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ219007: Cannot connect to server(s). Tried with all available servers.]
              ... 19 more
              Suppressed: org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Failed to create session factory; nested exception is ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ219007: Cannot connect to server(s). Tried with all available servers.]
                  ... 19 more
              Caused by: javax.jms.JMSException: Failed to create session factory
                  at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:886)
                  at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:299)
                  at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:294)
                  at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180)
                  at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474)
                  ... 16 more
              Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ219007: Cannot connect to server(s). Tried with all available servers.]
                  at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:799)
                  at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:884)
                  ... 20 more
          Caused by: javax.jms.JMSException: Failed to create session factory
              at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:886)
              at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:299)
              at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:294)
              at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180)
              at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474)
              ... 16 more
          Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ219007: Cannot connect to server(s). Tried with all available servers.]
              at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:799)
              at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:884)
              ... 20 more
      Caused by: javax.jms.JMSException: Failed to create session factory
          at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:886)
          at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:299)
          at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:294)
          at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180)
          at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474)
          ... 16 more
      Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ219007: Cannot connect to server(s). Tried with all available servers.]
          at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:799)
          at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:884)
          ... 20 more
  Caused by: javax.jms.JMSException: Failed to create session factory
      at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:886)
      at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:299)
      at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:294)
      at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180)
      at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474)
      ... 16 more
  Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ219007: Cannot connect to server(s). Tried with all available servers.]
      at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:799)
      at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:884)
      ... 20 more
  </code></pre>
  
  <p>Camel route</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans factor:name="Send to Artemis" factor:status="true"
      xmlns="http://www.springframework.org/schema/beans"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:cxf="http://camel.apache.org/schema/cxf"
      xmlns:factor="factor-schema"
      xmlns:jdbc="http://www.springframework.org/schema/jdbc"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="        http://camel.apache.org/schema/spring            http://camel.apache.org/schema/spring/camel-spring.xsd        http://www.springframework.org/schema/beans      http://www.springframework.org/schema/beans/spring-beans.xsd        http://www.springframework.org/schema/jdbc       http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd        http://www.springframework.org/schema/context    http://www.springframework.org/schema/context/spring-context.xsd        http://camel.apache.org/schema/cxf               http://camel.apache.org/schema/cxf/camel-cxf.xsd"&gt;
      &lt;camelContext errorHandlerRef="myDeadLetterErrorHandler"
          id="e726891b-7413-4428-9bf5-f6c85116c771" xmlns="http://camel.apache.org/schema/spring"&gt;
          &lt;interceptFrom&gt;
              &lt;bean method="updateMDC" ref="logInterceptorService"/&gt;
          &lt;/interceptFrom&gt;
          &lt;route factor:name="Send to Artemis" id="route-4cd627f9-ba6d-43e3-ba24-4f61d8c1b69b"&gt;
              &lt;from id="35ecd8c3-ea1e-48ee-8d1e-85815576242c" uri="timer://init?delay=-1&amp;amp;repeatCount=50000"&gt;
                  &lt;description&gt;Timer&lt;/description&gt;
              &lt;/from&gt;
              &lt;setBody factor:component="SetBodyEndpoint"
                  factor:custom-name="Установить тело сообщения"
                  factor:guid="endpoint-34546317-7707-4c92-9d08-c388ea6cc390" id="endpoint-34546317-7707-4c92-9d08-c388ea6cc390"&gt;
                  &lt;simple&gt;&lt;![CDATA[&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"&gt;
    &lt;env:Header&gt;
      &lt;props:MessageInfo xmlns:props="urn:cbr-ru:msg:props:v1.3"&gt;
        &lt;props:To&gt;uic:5454&lt;/props:To&gt;
        &lt;props:From&gt;uic:newuser&lt;/props:From&gt;
        &lt;props:AppMessageID&gt;guid:1134f9d42bc98c84caea7ee62c17881312&lt;/props:AppMessageID&gt;
        &lt;props:MessageID&gt;guid:1429e234ae7016f981111361&lt;/props:MessageID&gt;
        &lt;props:MessageType&gt;1&lt;/props:MessageType&gt;
        &lt;props:Priority&gt;5&lt;/props:Priority&gt;
        &lt;props:CreateTime&gt;2016-07-27T12:41:13Z&lt;/props:CreateTime&gt;
        &lt;props:LegacyTransportFileName&gt;20191008 # pacs.008.001.08 # AAAACNBJXXX # BBBBRUMMYYY # 123456789.xml&lt;/props:LegacyTransportFileName&gt;
        &lt;props:SendTime&gt;2016-07-27T12:41:14Z&lt;/props:SendTime&gt;
        &lt;props:AckRequest&gt;false&lt;/props:AckRequest&gt;
      &lt;/props:MessageInfo&gt;
      &lt;props:DocInfo xmlns:props="urn:cbr-ru:msg:props:v1.3"&gt;
        &lt;props:DocFormat&gt;1&lt;/props:DocFormat&gt;
        &lt;props:DocType&gt;ED311&lt;/props:DocType&gt;
        &lt;props:EDRefID EDNo="1" EDDate="2016-07-27" EDAuthor="1203709000" /&gt;
      &lt;/props:DocInfo&gt;
    &lt;/env:Header&gt;
    &lt;env:Body&gt;
      &lt;sen:SigEnvelope xmlns:sen="urn:cbr-ru:dsig:env:v1.1"&gt;kk
      &lt;/sen:SigEnvelope&gt;
    &lt;/env:Body&gt;
  &lt;/env:Envelope&gt;]]&gt;&lt;/simple&gt;
              &lt;/setBody&gt;
              &lt;setHeader factor:component="SetHeaderEndpoint"
                  factor:custom-name="Установить заголовки"
                  factor:guid="87ba2d3e-7eff-42cd-9efc-048764539364"
                  headerName="JMSDeliveryMode" id="87ba2d3e-7eff-42cd-9efc-048764539364"&gt;
                  &lt;constant&gt;NON_PERSISTENT&lt;/constant&gt;
              &lt;/setHeader&gt;
              &lt;wireTap id="18382f84-1f34-487e-a55a-a731e1ec9560" uri="jms://TEST.FROM.CAMEL?connectionFactory=#RemoteArtemisMQ"&gt;
                  &lt;description&gt;JMS&lt;/description&gt;
              &lt;/wireTap&gt;
          &lt;/route&gt;
      &lt;/camelContext&gt;
  
      &lt;bean
          class="org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory"
          factor:bean-type="DEFAULT" id="RemoteArtemisMQ" name="RemoteArtemisMQ"&gt;
          &lt;constructor-arg value="tcp://192.168.58.6:61619"/&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>Artemis config</p>
  
  <pre><code>&lt;configuration xmlns="urn:activemq"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xmlns:xi="http://www.w3.org/2001/XInclude"
                 xsi:schemaLocation="urn:activemq /schema/artemis-configuration.xsd"&gt;
  
     &lt;core xmlns="urn:activemq:core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="urn:activemq:core "&gt;
  
        &lt;name&gt;0.0.0.0&lt;/name&gt;
  
  
        &lt;persistence-enabled&gt;true&lt;/persistence-enabled&gt;
  
        &lt;!-- this could be ASYNCIO, MAPPED, NIO
             ASYNCIO: Linux Libaio
             MAPPED: mmap files
             NIO: Plain Java Files
         --&gt;
        &lt;journal-type&gt;ASYNCIO&lt;/journal-type&gt;
  
        &lt;paging-directory&gt;data/paging&lt;/paging-directory&gt;
  
        &lt;bindings-directory&gt;data/bindings&lt;/bindings-directory&gt;
  
        &lt;journal-directory&gt;data/journal&lt;/journal-directory&gt;
  
        &lt;large-messages-directory&gt;data/large-messages&lt;/large-messages-directory&gt;
  
        &lt;journal-datasync&gt;true&lt;/journal-datasync&gt;
  
        &lt;journal-min-files&gt;2&lt;/journal-min-files&gt;
  
        &lt;journal-pool-files&gt;10&lt;/journal-pool-files&gt;
  
        &lt;journal-device-block-size&gt;4096&lt;/journal-device-block-size&gt;
  
        &lt;journal-file-size&gt;10M&lt;/journal-file-size&gt;
  
        &lt;!--
         This value was determined through a calculation.
         Your system could perform 83.33 writes per millisecond
         on the current journal configuration.
         That translates as a sync write every 12000 nanoseconds.
  
         Note: If you specify 0 the system will perform writes directly to the disk.
               We recommend this to be 0 if you are using journalType=MAPPED and journal-datasync=false.
        --&gt;
        &lt;journal-buffer-timeout&gt;12000&lt;/journal-buffer-timeout&gt;
  
  
        &lt;!--
          When using ASYNCIO, this will determine the writing queue depth for libaio.
         --&gt;
        &lt;journal-max-io&gt;4096&lt;/journal-max-io&gt;
        &lt;!--
          You can verify the network health of a particular NIC by specifying the &lt;network-check-NIC&gt; element.
           &lt;network-check-NIC&gt;theNicName&lt;/network-check-NIC&gt;
          --&gt;
  
        &lt;!--
          Use this to use an HTTP server to validate the network
           &lt;network-check-URL-list&gt;http://www.apache.org&lt;/network-check-URL-list&gt; --&gt;
  
        &lt;!-- &lt;network-check-period&gt;10000&lt;/network-check-period&gt; --&gt;
        &lt;!-- &lt;network-check-timeout&gt;1000&lt;/network-check-timeout&gt; --&gt;
  
        &lt;!-- this is a comma separated list, no spaces, just DNS or IPs
             it should accept IPV6
  
             Warning: Make sure you understand your network topology as this is meant to validate if your network is valid.
                      Using IPs that could eventually disappear or be partially visible may defeat the purpose.
                      You can use a list of multiple IPs, and if any successful ping will make the server OK to continue running --&gt;
        &lt;!-- &lt;network-check-list&gt;10.0.0.1&lt;/network-check-list&gt; --&gt;
  
        &lt;!-- use this to customize the ping used for ipv4 addresses --&gt;
        &lt;!-- &lt;network-check-ping-command&gt;ping -c 1 -t %d %s&lt;/network-check-ping-command&gt; --&gt;
  
        &lt;!-- use this to customize the ping used for ipv6 addresses --&gt;
        &lt;!-- &lt;network-check-ping6-command&gt;ping6 -c 1 %2$s&lt;/network-check-ping6-command&gt; --&gt;
  
  
  
  
        &lt;!-- how often we are looking for how many bytes are being used on the disk in ms --&gt;
        &lt;disk-scan-period&gt;5000&lt;/disk-scan-period&gt;
  
        &lt;!-- once the disk hits this limit the system will block, or close the connection in certain protocols
             that won't support flow control. --&gt;
        &lt;max-disk-usage&gt;90&lt;/max-disk-usage&gt;
  
        &lt;!-- should the broker detect dead locks and other issues --&gt;
        &lt;critical-analyzer&gt;true&lt;/critical-analyzer&gt;
  
        &lt;critical-analyzer-timeout&gt;120000&lt;/critical-analyzer-timeout&gt;
  
        &lt;critical-analyzer-check-period&gt;60000&lt;/critical-analyzer-check-period&gt;
  
        &lt;critical-analyzer-policy&gt;HALT&lt;/critical-analyzer-policy&gt;
  
  
        &lt;page-sync-timeout&gt;84000&lt;/page-sync-timeout&gt;
  
  
              &lt;!-- the system will enter into page mode once you hit this limit.
             This is an estimate in bytes of how much the messages are using in memory
  
              The system will use half of the available memory (-Xmx) by default for the global-max-size.
              You may specify a different value here if you need to customize it to your needs.
  
              &lt;global-max-size&gt;100Mb&lt;/global-max-size&gt;
  
        --&gt;
  
        &lt;acceptors&gt;
  
           &lt;!-- useEpoll means: it will use Netty epoll if you are on a system (Linux) that supports it --&gt;
           &lt;!-- amqpCredits: The number of credits sent to AMQP producers --&gt;
           &lt;!-- amqpLowCredits: The server will send the # credits specified at amqpCredits at this low mark --&gt;
           &lt;!-- amqpDuplicateDetection: If you are not using duplicate detection, set this to false
                                        as duplicate detection requires applicationProperties to be parsed on the server. --&gt;
  
           &lt;!-- Note: If an acceptor needs to be compatible with HornetQ and/or Artemis 1.x clients add
                      "anycastPrefix=jms.queue.;multicastPrefix=jms.topic." to the acceptor url.
                      See https://issues.apache.org/jira/browse/ARTEMIS-1644 for more information. --&gt;
  
           &lt;!-- Acceptor for every supported protocol --&gt;
           &lt;acceptor name="artemis"&gt;tcp://0.0.0.0:61619?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,OPENWIRE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;amqpDuplicateDetection=true&lt;/acceptor&gt;
        &lt;/acceptors&gt;
  
  
        &lt;security-settings&gt;
           &lt;security-setting match="#"&gt;
              &lt;permission type="createNonDurableQueue" roles="amq"/&gt;
              &lt;permission type="deleteNonDurableQueue" roles="amq"/&gt;
              &lt;permission type="createDurableQueue" roles="amq"/&gt;
              &lt;permission type="deleteDurableQueue" roles="amq"/&gt;
              &lt;permission type="createAddress" roles="amq"/&gt;
              &lt;permission type="deleteAddress" roles="amq"/&gt;
              &lt;permission type="consume" roles="amq"/&gt;
              &lt;permission type="browse" roles="amq"/&gt;
              &lt;permission type="send" roles="amq"/&gt;
              &lt;!-- we need this otherwise ./artemis data imp wouldn't work --&gt;
              &lt;permission type="manage" roles="amq"/&gt;
           &lt;/security-setting&gt;
        &lt;/security-settings&gt;
  
        &lt;address-settings&gt;
           &lt;!-- if you define auto-create on certain queues, management has to be auto-create --&gt;
           &lt;address-setting match="activemq.management#"&gt;
              &lt;dead-letter-address&gt;DLQ&lt;/dead-letter-address&gt;
              &lt;expiry-address&gt;ExpiryQueue&lt;/expiry-address&gt;
              &lt;redelivery-delay&gt;0&lt;/redelivery-delay&gt;
              &lt;!-- with -1 only the global-max-size is in use for limiting --&gt;
              &lt;max-size-bytes&gt;-1&lt;/max-size-bytes&gt;
              &lt;message-counter-history-day-limit&gt;10&lt;/message-counter-history-day-limit&gt;
              &lt;address-full-policy&gt;PAGE&lt;/address-full-policy&gt;
              &lt;auto-create-queues&gt;true&lt;/auto-create-queues&gt;
              &lt;auto-create-addresses&gt;true&lt;/auto-create-addresses&gt;
              &lt;auto-create-jms-queues&gt;true&lt;/auto-create-jms-queues&gt;
              &lt;auto-create-jms-topics&gt;true&lt;/auto-create-jms-topics&gt;
           &lt;/address-setting&gt;
           &lt;!--default for catch all--&gt;
           &lt;address-setting match="#"&gt;
              &lt;dead-letter-address&gt;DLQ&lt;/dead-letter-address&gt;
              &lt;expiry-address&gt;ExpiryQueue&lt;/expiry-address&gt;
              &lt;redelivery-delay&gt;0&lt;/redelivery-delay&gt;
              &lt;!-- with -1 only the global-max-size is in use for limiting --&gt;
              &lt;max-size-bytes&gt;-1&lt;/max-size-bytes&gt;
              &lt;message-counter-history-day-limit&gt;10&lt;/message-counter-history-day-limit&gt;
              &lt;address-full-policy&gt;PAGE&lt;/address-full-policy&gt;
              &lt;auto-create-queues&gt;true&lt;/auto-create-queues&gt;
              &lt;auto-create-addresses&gt;true&lt;/auto-create-addresses&gt;
              &lt;auto-create-jms-queues&gt;true&lt;/auto-create-jms-queues&gt;
              &lt;auto-create-jms-topics&gt;true&lt;/auto-create-jms-topics&gt;
           &lt;/address-setting&gt;
        &lt;/address-settings&gt;
  
        &lt;addresses&gt;
           &lt;address name="DLQ"&gt;
              &lt;anycast&gt;
                 &lt;queue name="DLQ" /&gt;
              &lt;/anycast&gt;
           &lt;/address&gt;
           &lt;address name="ExpiryQueue"&gt;
              &lt;anycast&gt;
                 &lt;queue name="ExpiryQueue" /&gt;
              &lt;/anycast&gt;
           &lt;/address&gt;
  
        &lt;/addresses&gt;
  
  
        &lt;!-- Uncomment the following if you want to use the Standard LoggingActiveMQServerPlugin pluging to log in events
        &lt;broker-plugins&gt;
           &lt;broker-plugin class-name="org.apache.activemq.artemis.core.server.plugin.impl.LoggingActiveMQServerPlugin"&gt;
              &lt;property key="LOG_ALL_EVENTS" value="true"/&gt;
              &lt;property key="LOG_CONNECTION_EVENTS" value="true"/&gt;
              &lt;property key="LOG_SESSION_EVENTS" value="true"/&gt;
              &lt;property key="LOG_CONSUMER_EVENTS" value="true"/&gt;
              &lt;property key="LOG_DELIVERING_EVENTS" value="true"/&gt;
              &lt;property key="LOG_SENDING_EVENTS" value="true"/&gt;
              &lt;property key="LOG_INTERNAL_EVENTS" value="true"/&gt;
           &lt;/broker-plugin&gt;
        &lt;/broker-plugins&gt;
        --&gt;
  
     &lt;/core&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I pointed out for Artemis <strong>-Xmx6G</strong>, but it didn’t affect anything, only about 5-7% of the allocated memory is consumed</p>
  
  <p>Please tell me why this error occurs and how to improve performance?</p>