Power

 View Only
  • 1.  heap size adjustment jvm

    Posted Thu December 01, 2022 12:01 PM
    We have a lpar on IBM i 7.3. From a rpg program we run java (runjva). The jvm that is started always has 2GB heap size.
    Then the java program start but this runs into a out of memory message, now we want to increase the maximum heap size.
    I know this can be done with -Xmx option but I don't have a clue where to  define this ?
    Any help is welcome

    ------------------------------
    Peter Renkema
    ------------------------------


  • 2.  RE: heap size adjustment jvm

    Posted Fri December 02, 2022 09:57 AM
    We have I series group we can move this there. This is for Power server.

    ------------------------------
    minesh patel
    ------------------------------



  • 3.  RE: heap size adjustment jvm

    Posted Fri December 02, 2022 02:16 PM
    if this helps.

    https://www.ibm.com/docs/en/was-nd/8.5.5?topic=css-increasing-java-virtual-machine-heap-size-using-scripting
    https://www.ibm.com/docs/en/capmp/8.1.4?topic=cvvm-increasing-java-heap-size
    https://www.ibm.com/docs/it/b2b-integrator/5.2?topic=utility-edit-performance-configuration-settings

    ------------------------------
    minesh patel
    ------------------------------



  • 4.  RE: heap size adjustment jvm

    Posted Tue December 06, 2022 03:17 AM
    I've adjusted the heap size to 2800, -Xmx2800, in the /QIBM/UserData/Java400/SystemDefault.prpoperties file.
    That now heap size is a little bit bigger (2800) when I try to set it to 2900, the jvm doesnot even start. It seems like there is no more memory available ?

    ------------------------------
    Peter Renkema
    ------------------------------



  • 5.  RE: heap size adjustment jvm

    Posted Tue December 06, 2022 09:49 AM
    how much total memory on the server and you can run topas or svmon to figure out how much memory is allocated for lpar and is it shared memory or dedicated memory.

    There is perfpmr script  that you can download and run it and out will have memdetail file that has memory information.

    ------------------------------
    minesh patel
    ------------------------------