Questions tagged [g1gc]

G1 or Garbage First is a generational partially collecting concurrent and parallel garbage collection algorithm. It is targeted for multi-processor machines with large memories and can meet soft realtime requirements with garbage collection (GC) pause time goals. An implementation of the G1 currently ships with the new Java 7 VMS - officially supported from JDK7 update 4.

G1 or "Garbage First" is a generational partially collecting concurrent and parallel garbage collection algorithm. It is targeted for multi-processor machines with large memories and can meet soft realtime requirements with garbage collection (GC) pause time goals.

An implementation of the G1 currently ships with the Java Hotspot 7 VM - officially supported from JDK7 update 4.

Resources

314 questions
3
votes
1 answer

How to interpret Java G1 GC pause time cause

We have been struggling with what appears to be long stop the world pauses when using the G1 collector. I have read through the Oracle documentation but I am still having trouble determining how to interpret what is causing the long pauses and what…
Casey Jordan
  • 1,204
  • 1
  • 20
  • 39
3
votes
1 answer

Humongous allocation: how can I ask jvm to print a log if humongous allocation happens

I am using G1GC. Is there a jvm argument I can pass to jvm so I get a gc log every time Humongous allocation happens?
Erben Mo
  • 3,528
  • 3
  • 19
  • 32
3
votes
1 answer

UseCompressedOops kick-in threshold different for G1 and CMS

I am running a 64 bit Java 1.8 Hotspot JVM by Oracle. I have been trying to wrap my head around a difference in behavior of JVM to kick in compressed object pointers when different GC mechanisms are used. For example: $ java -XX:+UseConcMarkSweepGC…
Ashu Pachauri
  • 1,283
  • 10
  • 16
3
votes
1 answer

G1 GC single, very long young GC occured with ParallelGCThreads=1

I set ParallelGCThreads=1 and use G1 GC, all other JVM settings are default. I run PageRank on Spark-1.5.1 with two EC2 nodes 100 GB heap each. My heap usage graph is below (Red area: young generation, black area: old generation). All young GCs are…
user2616566
  • 63
  • 1
  • 3
3
votes
1 answer

Very long duration of Finalize marking in the Remark stage of G1GC

Application becomes unresponsive on high load while G1 garbage collector is in the Remark stage(Finalize marking). This is part of the gc log (pause happened at 2015-08-30T11:24:23.780): 2015-08-30T11:24:22.736-0400: 431394.465: [GC pause (GCLocker…
3
votes
2 answers

G1GC Strange behavior

I've decided to try G1GC on my Eclipse Mars RC3 for JavaEE developers installation, but I observed a very strange behavior: As you can see it has run almost 700 FULL GCs for the lifecycle of the application, while only 30 minor GCs. Also I noticed…
Svetlin Zarev
  • 14,713
  • 4
  • 53
  • 82
3
votes
2 answers

G1 doesn't process soft references

Here is my simple gc test: public class Main { static class Data { public long[] l = new long[100]; } static List> list = new ArrayList<>(); public static void main(String[] args) { long i = 0; while…
tim zh
  • 93
  • 6
3
votes
1 answer

What Causes G1 GC Suspension Time when No Full GC is Reported?

I am using monitoring tool - DynaTrace and I don't see Full GC occurring however there is a GC Suspension time getting reported. What could be causing this?
3
votes
1 answer

G1 GC processes references too slow

So, we're using G1 GC. and 18GB heap. Young generation size is about 3,5G. And heap maximum usage is about 12G. And memory is full of short-living objects. Also, maybe it's important that Couchbase instance is running on the same node near the JVM.…
Anton Maximov
  • 251
  • 2
  • 6
3
votes
1 answer

Java 7 G1GC strange behaviour

Recently I have tried to use G1GC from jdk1.7.0-17 in my java processor which is processing a lot of similar messages received from an MQ (about 15-20 req/sec). Every message is processed in the separate thread (about 100 threads in stable state)…
3
votes
2 answers

G1GC long pause with initial-mark

With j7u5, G1GC "-Xms3200m -Xmx3200m -XX:+UseG1GC -XX:ParallelGCThreads=14 -XX:ConcGCThreads=4 -XX:MaxGCPauseMillis=40 -XX:NewRatio=2 -XX:SurvivorRatio=10 -XX:+PrintGC -XX:+PrintGCDateStamps" for a given performance test, my application hits a long…
user1931506
  • 31
  • 1
  • 3
3
votes
1 answer

Do minor GC with G1GC result in global pause?

We currently have JDK1.7 installed and configured to use G1GC. What i want to know is this. Are stop the world pauses only a characteristic of Major GC? Or Minor GC has that issue as well?
tven
  • 547
  • 6
  • 18
2
votes
2 answers

options for G1 garbage collectors not available?

http://www.oracle.com/technetwork/java/javase/tech/g1-intro-jsp-135488.html seems to be the official docs for the G1 garbage collector. There are two options mentioned: -XX:+G1ParallelRSetUpdatingEnabled -XX:+G1ParallelRSetScanningEnabled When…
Stefan Armbruster
  • 39,465
  • 6
  • 87
  • 97
2
votes
2 answers

JVM not using all available heap space

I'm trying to understand G1 garbage collection logs. Most important details you may find in the top of the log file. Heap max capacity is 594M, but the latest garbage collection cycle had used only 351M, before the jvm exit. Jvm crashed with…
SLY
  • 525
  • 2
  • 11
  • 24
2
votes
1 answer

java JDK 11 G1 garbage collector collections taking longer and longer

I have spring boot java-service (JDK 11) running on a linux-platform in which under heavy load the time used for garbage collection (collector G1) keeps getting longer and longer. When the service is just restarted the average time used per…