to increase MaxPermSize memory in Java by command line

前端 未结 3 1248
清歌不尽
清歌不尽 2021-01-24 10:56

Could you please explain me how to increase this PermSpace size. I am using Gate application and loading huge amount of data and large number of plugins and unfortunately after

3条回答
  •  半阙折子戏
    2021-01-24 11:48

    -XX:MaxPermSize=256m
    

    Maybe combined with 32 bit addresses for objects, instead of 64 bits

    -XX:+UseCompressedOops
    

    Enables the use of compressed pointers (object references represented as 32 bit offsets instead of 64-bit pointers) for optimized 64-bit performance with Java heap sizes less than 32gb.

    See VM Options.

    Also check that String internalization does not occur. XML introduced in the past a String.intern() to save space, but then Perm space grows. So maybe check your XML settings.

提交回复
热议问题