Ulf Lilleengen created ARTEMIS-2255: ---------------------------------------
Summary: Fails to load journal after queue full Key: ARTEMIS-2255 URL: https://issues.apache.org/jira/browse/ARTEMIS-2255 Project: ActiveMQ Artemis Issue Type: Bug Affects Versions: 2.6.4 Reporter: Ulf Lilleengen I'm getting an OOM error when loading the Artemis journal after producing messages until it is 'full'. The broker is configured with these settings: * A single anycast address with a single queue * Address-full-policy = FAIL * Global-max-size -1 => default to 1/2 JVM heap After sending a lot of messages, I get the expected error message on the client: AMQ229102: Address "myqueue" is full.: ActiveMQAddressFullException[errorType=ADDRESS_FULL message=AMQ229102: Address "myqueue" is full.] However, when I restart the broker, it is unable to start due to an OOM when loading the journal: 2019-02-19 11:23:35,177 ERROR [org.apache.activemq.artemis.core.server] AMQ224097: Failed to start server: java.lang.OutOfMemoryError: Java heap space Setting the global-max-size explicitly to 1/4th of the JVM heap fixes the issue for me. In order to provide more robust defaults, I think the default should be decreased from 1/2 to 1/4 of JVM heap. -- This message was sent by Atlassian JIRA (v7.6.3#76005)