How to resolve OutOfMemoryError: Java heap space

So, Obj-Open-By-Handle method is being used in an activity rule and while tracing, it always fails at this step. Upon taking a further look, we see the error in one of the pending cases: OutOfMemoryError: Java heap space

Can someone help me understand how to fix this issue?

@Ebhavya

Depending on your current java settings, You can increase the java settings for xmx and xmx, for example, try something like this if your settings are lower M’s:

Environment='CATALINA_OPTS=-Xms2392M -Xmx9569M

more details available at OPS0024: Java heap out of memory (pega.com) & Guidelines for setting up your JVM for a Process Commander application | Support Center (pega.com)