Profile Image
huangyouchuan

Can I Reduce the heap size And why the meta size use so many memory allocated?

Current memory size can be reduced and keep a valid  GC pause?

Why the meta space allocation so many size, but use so small amount?


Report URL - https://gceasy.io/my-gc-report.jsp?p=c2hhcmVkLzIwMjQvMDQvMjUvZ2MubG9nLS0xMC01Ni01OA==&channel=WEB

    Please Sign In or to post your comment or answer

    Profile Image

    Unni Mana

     

    Hello huangyouchuan

    Greetings!

    if I understand you correctly, the reason why meta space is allocated high is based on the JVM settings.The heap size may  be reduced further if the application is profiled using the tools such as Eclipse MAT

    If your application uses a lot of strings, then it is a good idea to pass the 

    -XX:+UseStringDeduplication argument. This will reduce the heap size.

     

     

     

     

    Got something else on mind? Post Your Question