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

Justin Bertram commented on ARTEMIS-4019:
-----------------------------------------

bq. ...we were actually using the switches to explicitly define the paths.

I'm not sure what you mean. How specifically is this causing confusion?

> Journal export runs out of memory 
> ----------------------------------
>
>                 Key: ARTEMIS-4019
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4019
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>         Environment: SUSE Linux Enterprise Server 15 SP3
> JAVA_ARGS="-XX:+PrintClassHistogram -XX:+UseG1GC -XX:+UseStringDeduplication 
> -Xms512M -Xmx4G -Dhawtio.disableProxy=true -Dhawtio.realm=activemq 
> -Dhawtio.offline=true 
> -Dhawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal
>  -Djolokia.policyLocation=${ARTEMIS_INSTANCE_ETC_URI}jolokia-access.xml "
>            Reporter: Peter Machon
>            Priority: Major
>
> To avoid the situation from ARTEMIS-4018 on other nodes in our environment we 
> wanted to export the old journal and reimport it before restarting the 
> upgraded version. The export however runs OOM:
> {noformat}
> /var/opt/apache-artemis/integrationbus>bin/artemis data exp --output 
> /var/opt/apache-artemis/integrationbus/etc/data3.exp
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
>     at 
> io.netty.buffer.UnpooledByteBufAllocator.newHeapBuffer(UnpooledByteBufAllocator.java:82)
>     at 
> io.netty.buffer.AbstractByteBufAllocator.heapBuffer(AbstractByteBufAllocator.java:169)
>     at 
> io.netty.buffer.AbstractByteBufAllocator.heapBuffer(AbstractByteBufAllocator.java:160)
>     at io.netty.buffer.Unpooled.buffer(Unpooled.java:119)
>     at 
> org.apache.activemq.artemis.core.message.impl.CoreMessage.initBuffer(CoreMessage.java:156)
>     at 
> org.apache.activemq.artemis.core.message.impl.CoreMessage.reloadPersistence(CoreMessage.java:1252)
>     at 
> org.apache.activemq.artemis.core.message.impl.CoreMessagePersister.decode(CoreMessagePersister.java:85)
>     at 
> org.apache.activemq.artemis.core.message.impl.CoreMessagePersister.decode(CoreMessagePersister.java:28)
>     at 
> org.apache.activemq.artemis.spi.core.protocol.MessagePersister.decode(MessagePersister.java:120)
>     at 
> org.apache.activemq.artemis.core.persistence.impl.journal.DescribeJournal.newObjectEncoding(DescribeJournal.java:623)
>     at 
> org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.processMessageJournal(XmlDataExporter.java:218)
>     at 
> org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.writeXMLData(XmlDataExporter.java:150)
>     at 
> org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.writeOutput(XmlDataExporter.java:144)
>     at 
> org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.process(XmlDataExporter.java:133)
>     at 
> org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.execute(XmlDataExporter.java:100)
>     at 
> org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:160)
>     at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:108)
>     at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:135)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
>     at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>     at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:134)
>     at 
> org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:50){noformat}
> Note: We were attempting to export the old journal with the new broker 
> version. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to