Exception:java.lang.OutOfMemoryError: Java heap space while executing trigger

Hello All,

please help me for resolving following kind of issue.

Exception:java.lang.OutOfMemoryError: Java heap space while executing trigger. Rejecting Document for .

Thanks,

@webM Vir,

Please paste, Settings > Resources > Store Settings screenshot.

What is server memory size? Max, Min?

Thanks,
Rankesh

Hello Rankesh here is the details:
JAVA_MIN_MEM=2048M
JAVA_MAX_MEM=4084M
StoreSetting.jpg

What is the number of messages and their size you are pushing to triggers?

Try to increase the size of Trigger Document store size depending on your pub-message size and processing capacities.

Please paste more logs, if available.

HTH.

Thanks,
Rankesh