From Newsgroup: comp.sys.ibm.as400.misc
On Tuesday, March 29, 2022 at 7:55:52 AM UTC+2, Geert Van Landeghem wrote:
Hello all,
we are using the RPG-JAVA Integration to use webservices through java code in RPG. One of the messages to process is rather big so we get a OutOfMemoryError...how do we set the min and max size of the heap in the started JVM?
A standalone java program heap size can be tuned using -Xms and -Xmx
kind regards
Geert Van Landeghem
Solved by setting IBM_JAVA_OPTIONS environment variable
ADDENVVAR ENVVAR(IBM_JAVA_OPTIONS) VALUE('-Xmx8G') LEVEL(*JOB) REPLACE(*YES) --- Synchronet 3.21d-Linux NewsLink 1.2