All Apps and Add-ons

Does anyone know how to handle the following error while reading messages from queues-JMS modular input?

ankithreddy777
Contributor

I am consuming messages using the JMS modular input.

For one connection, I need to refresh the queue connection by disabling it and enabling it again to start re-consuming. I need to do it every 5 min.

It is giving the following error
message from:

"python /opt/splunk/etc/apps/jms_ta/bin/jms.py" Exception in thread "Thread-40" java.lang.OutOfMemoryError: Java heap space

Do you know how to handle this?
@Damien Dallimore

0 Karma

Damien_Dallimor
Ultra Champion

Without knowing anything about your messaging environment or setup , the first thing you should do related to that message is refer to the documentation, specifically the "Java Heap Size" section , https://splunkbase.splunk.com/app/1317/#/details

Look for "-Xms64m","-Xmx64m"

To increase heap do something like "-Xms64m","-Xmx256m" , or whatever you need to max to be for your use case.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...