Konrad Garus
Konrad Garus

Reputation: 54025

Is the garbage-first (G1) collector "production ready" in Java 6?

Is the G1 garbage collector still considered experimental in recent versions of Java (6)? Is it safe and ready for production use?

EDIT: I am referring to Oracle JVM.

Upvotes: 6

Views: 2207

Answers (2)

alain.janinm
alain.janinm

Reputation: 20065

No as suggest this Oracle article, it's still experimental. It will replace CMS but it seems that it's not quite performant yet : Relative Performance of Java's Garbage First (G1) Garbage Collector?

EDIT :

So now the G1 is "fully supported" in JDK7u4, it not consider anymore as experimental, so I guess it's production ready! .

Upvotes: 3

HJW
HJW

Reputation: 23443

Java 6: Update 20.

Java 7: Primordial version has it.

By Oracle JVM, you mean Sun HotSpot? It might be confused with JRockit. Much preferred to call it HotSpot.

Upvotes: 1

Related Questions