-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.
No comments:
Post a Comment