PS Scavenge and PS MarkSweep



Contents of page >
  • PS Scavenge >
  • PS MarkSweep >


PS Scavenge >
  • PS Scavenge is the Young generation collectors

  • It is the parallel scavenge collector.

  • PS Scavenge uses multiple threads in parallel for garbage collection.

  • Vm parameter for enabling PS Scavenge >

-XX:+UseParallelGC

PS MarkSweep >
  • PS MarkSweep is the old generation collector.

  • PS MarkSweep is the parallel scavenge mark sweep collector.

  • It uses the multiple threads in parallel for garbage collection.

  • Vm parameter for enabling PS MarkSweep >

-XX:+UseParallelOldGC

Summary -

So in this core java tutorial we learned what are PS Scavenge and PS MarkSweep collectors.

Having any doubt? or you liked the tutorial! Please comment in below section.
Please express your love by liking JavaMadeSoEasy.com (JMSE) on facebook, following on google+ or Twitter.


RELATED LINKS>

Most important and frequently used VM (JVM) PARAMETERS with examples in JVM Heap memory in java


What are -Xms and -Xmx JVM parameters




Monitor, analyze garbage collection and fix MEMORY LEAK >

>How to monitor and analyze the garbage collection in 10 ways in java

>Detecting and fixing memory leak in java


eEdit
Must read for you :