Java – Garbage collectors

1. Serial
-XX:+UseSerialGC JVM

2. Parallel
default

3. CMS(Current Markup Sweep)
-XX:+USeParNewGC

4. G1
–XX:+UseG1GC

Note: Java8 and G1 collector can optimize the string intern with the following option
-XX:+UseStringDeduplicationJVM

More information regarding G1:
https://www.infoq.com/articles/G1-One-Garbage-Collector-To-Rule-Them-All

Advertisements
This entry was posted in Java, Programming. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s