Resolving ORABPEL-05002: “java.lang.OutOfMemoryError: Java heap space”

Getting ORABPEL-05002 exception on Oracle BPEL Manager. You’ll see a message similar to this:

Exception:
ORABPEL-05002
java.lang.OutOfMemoryError: Java heap space 

Follow the solution below to correct the error.