Hello, 

         <pendingMessageLimitStrategy>
                    <constantPendingMessageLimitStrategy limit="5000"/>
                  </pendingMessageLimitStrategy>
                </policyEntry>
              </policyEntries>
            </policyMap>
        </destinationPolicy>

I increased the pending message limit strategy from 1000 to 5000...

So far this has helped, no further heap space errrors. 


JVM config; 

# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=1024

Thanks,
Amy

-----Original Message-----
From: fpapon <fpa...@apache.org> 
Sent: 03 August 2023 08:09
To: users@activemq.apache.org
Subject: Re: java heap space

[You don't often get email from fpa...@apache.org. Learn why this is important 
at https://aka.ms/LearnAboutSenderIdentification ]

WARNING: This email originated from outside of NHS Wales. Do not open links or 
attachments unless you know the content is safe.


Hi,

can you share your JVM configuration and your activemq.xml config file?

Regards,

François

On 03/08/2023 09:04, Amy Hartland (DHCW - Integration Services) wrote:
> Hello,
>
> We are currently using apache-activemq-5.15.3. We are noticing some issues 
> with java heap space.
>
> Wrapper log;
> INFO   | jvm 1    | 2023/08/02 10:01:11 | java.lang.Exception: 
> java.lang.OutOfMemoryError: Java heap space
> INFO   | jvm 1    | 2023/08/02 10:01:11 |              at 
> org.apache.activemq.transport.tcp.TcpTransportServer$1.run(TcpTransportServer.java:485)[activemq-client-5.15.3.jar:5.15.3]
> INFO   | jvm 1    | 2023/08/02 10:01:11 |              at 
> java.base/java.lang.Thread.run(Unknown Source)[:]
>
> ActiveMQ;
> 2023-08-02 10:00:36,434 | ERROR | Failed to page in more queue messages  | 
> org.apache.activemq.broker.region.Queue | Queue:qEventProcessor
> java.lang.OutOfMemoryError: Java heap space
>
> Are you able to advise?
>
> The queue is around 100,456. This is a normal number of messages that we need 
> this queue to handle.
>
> Thanks,
>
> Rydym yn croesawu derbyn gohebiaeth yng Nghymraeg. Byddwn yn ateb y fath 
> ohebiaeth yng Nghymraeg ac ni fydd hyn yn arwain at oedi.
> We welcome receiving correspondence in Welsh. We will reply to such 
> correspondence in Welsh and this will not lead to a delay.
>
--
--
François

Reply via email to