Error: Insufficient memory for the Java Runtime Environment to continue.
Scenario :
Workflow was throwing below error while executing on agent.
Error in log:
2020/09/21 12:28:14 - xyzwf- (stdout) # There is insufficient memory for the Java Runtime Environment to continue.
2020/09/21 12:28:14 - xyzwf- (stdout) # Native memory allocation (malloc) failed to allocate 1048576 bytes for AllocateHeap
Possible cause:
Memory release management is not done properly in workflow, which is causing heap size full. Due to that reason problem is coming while loading java Virtual machine.
Solution:
Check if same workflow works fine in process studio. If yes then apply below changes.
1. Edit startup.bat and Increase Xmx2048 to Xmx4096 and save file.
2. Kill all task/process and instance from task manger which was occupied by JVM.
3.Submit request again.