Endevor Webservices java OutOfMemoryError

Document ID : KB000100391
Last Modified Date : 06/06/2018
Show Technical Document Details
Question:
We are receiving this response from Endevor webservices HTTP Status 500 - org.glassfish.jersey.server.ContainerException: java.lang.OutOfMemoryError: Java heap space .

How to fix this error ?
Answer:
There are two settings you can adjust for this out of memory error: 

1) in WSTOMENV - JVM options (increase the Xmx to 1024m)
IJO="$IJO -Xms128m -Xmx1024m"  

2) in WSTOMSTC : 
//TOMCAT EXEC PGM=JVMLDM&VERSION,REGION=0M,MEMLIMIT=NOLIMIT, 
// PARM='&LEPARM/&LOGLVL &JAVACLS &ARGS' 

Set REGION=0M on the EXEC command, a value of 0M grants the job access to all available storage. 

Recycle Tomcat after the change.