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

    From Geert Van Landeghem@gvl@foundation.be to comp.sys.ibm.as400.misc on Mon Mar 28 22:41:46 2022
    From Newsgroup: comp.sys.ibm.as400.misc

    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?

    kind regards
    Geert Van Landeghem
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Geert Van Landeghem@gvl@foundation.be to comp.sys.ibm.as400.misc on Mon Mar 28 22:55:50 2022
    From Newsgroup: comp.sys.ibm.as400.misc

    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
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Geert Van Landeghem@gvl@foundation.be to comp.sys.ibm.as400.misc on Mon Mar 28 23:20:10 2022
    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