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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...