Search This Blog

Java: UseG1GC to reduce memory consumption

Add java arugments:
-XX:+UseG1GC -XX:+UseStringDeduplication



Note: UseStringDeduplication only works with UseG1GC. From my experience, it does reduce the memory consumption significantly for some applications. But it also slows down the process a little bit compared with the default Parallel GC.


see also

No comments:

Post a Comment