Classification: Confidential Please deactivate messages , I don't want to receive these any more
-----Original Message----- From: Amy Hartland (DHCW - Integration Services) <amy.hartl...@wales.nhs.uk.INVALID> Sent: Thursday, August 3, 2023 2:47 PM To: users@activemq.apache.org Subject: RE: java heap space [CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don't click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.] 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 ::DISCLAIMER:: ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. ________________________________