Garbage collector algorithms

Over the years, the garbage collector algorithms have been enhanced and there are multiple algorithms available now. They match several sorts of applications and are more or less adapted, depending on the product:

  • Serial collector: This is a mono-threaded implementation and the default algorithm for client-side machines (32 bit or single processor).
  • Parallel collector: The serial collector algorithm adapts to server resources (fast CPU and big memory sizes). The parallel collector is the default one for server machines (>= 2 processors).
  • Parallel compacting collector: This allows to paralellize the tenured generation processing.
  • Concurrent Mark Sweep (CMS) collector: With this collector, the tenured generation ...

Get Java EE 8 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.