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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...