Camunda Out of Heap Memory

Hey guys,

Need some help with finding where the out-of-memory error is occurring in Camunda. I do understand this is a very broad problem. But I do want to narrow it down and see what might be causing the out-of-memory issue. The only info I have from the camunda logs is this.

  • Exclusive Gateway ‘exclusiveGatewayBeforeApproval’ has outgoing sequence flow ‘sequenceFlow_45a7f1d9-b47b-417e-8fc8-da378c33c51a’ without condition which is not the default flow. We assume it to be the default flow, but it is bad modeling practice, better set the default flow in your gateway. | workflow.bpmn | line 0 | column 0
    08-Dec-2021 08:36:06.902 SEVERE [http-nio-8080-exec-9] org.camunda.commons.logging.BaseLogger.logError ENGINE-16004 Exception while closing command context: Java heap space
    java.lang.OutOfMemoryError: Java heap space

Can someone please tell me where I can start to dig deeper in order to find the why this out of memory issue is happening