O'Reilly logo

WildFly Performance Tuning by Anders Welén, Arnold Johansson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Types of GC strategies

There are several different collector types of the GC. These types are also known as strategies and they are, in turn, realized by different implementations depending on the JVM manufacturer. Today, many different implementations exist and these are mixtures of the basic strategies. First, let's have a look at most common strategies of the Hotspot VM:

  • The serial collector
  • The parallel collector
  • The concurrent collector
  • The Garbage First (G1) collector

It should be noted that, within a strategy, different GC algorithms can be enabled for the young generation and the old generation, respectively—all to optimize memory management and performance.

The serial collector

The serial collector performs garbage collection using a single ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required