Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RPG/JAVA Integration how to define min and max size for started JVM?

80 views
Skip to first unread message

Geert Van Landeghem

unread,
Mar 29, 2022, 1:55:52 AM3/29/22
to
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

Geert Van Landeghem

unread,
Mar 29, 2022, 2:20:12 AM3/29/22
to
Solved by setting IBM_JAVA_OPTIONS environment variable

ADDENVVAR ENVVAR(IBM_JAVA_OPTIONS) VALUE('-Xmx8G') LEVEL(*JOB) REPLACE(*YES)
0 new messages