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 the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...