Garbage Collection

The Garbage Collection metric group contains per-broker metrics regarding garbage collection. The metrics available are:

  • Young Generation Last Garbage Collection
  • Old Generation Garbage Collection Time

Since Kafka is written in Scala and runs in the JVM, there are a few JVM metrics that might be useful when diagnosing Kafka performance issues. For example, increasing garbage collection activity might degrade the performance of the broker.

Young Generation Last Garbage Collection

This metric provides information on how long the last young generation GC cycle took in milliseconds.

You can also get this metric through the Monitoring API with the query param metrics=n::youngGenLastGC

Old Generation Garbage Collection Time

This metrics provides information on the total amount of time in milliseconds spent during old generation GC cycles since the JVM was started.

You can also get this metric through the Monitoring API  with the query param metrics=n::oldGengcCollectionTime

Need Support
Learn More

Already have an account?
Login to the Console

Experiencing difficulties on the website or console?
Status page for known incidents


Don’t have an account yet?
Sign up for a free trial

Why sign up?
To experience the ease of creating and managing clusters via the Instaclustr Console.