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

    From Geert Van Landeghem@21:1/5 to All on Mon Mar 28 22:55:50 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Geert Van Landeghem@21:1/5 to All on Mon Mar 28 22:41:46 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Geert Van Landeghem@21:1/5 to Geert Van Landeghem on Mon Mar 28 23:20:10 2022
    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)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)