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
0
votes
1 answer

Java heap is full but all regions are empty

I am trying to tune G1 GC. Application run for sometimes then heap gets full but it shows regions of Eden, survivor and old is 0 and the full GC get called to free up space. Flags I used: Xmx:30G -XX:+UseG1GC -XX:+AlwaysPreTouch…
Neetesh
  • 71
  • 2
  • 6
0
votes
1 answer

G1GC - How can Tenured get cleaned without a mixed GC

I have created a test Java program to help understand how the G1GC works. My program has two threads - one loads a large ArrayList with about 200MB of objects (just 1000 character strings) and then it removes an element and adds an element in a loop…
Stephen ODonnell
  • 4,441
  • 17
  • 19
0
votes
0 answers

JVM crashes with OutOfMemoryError

I get regular jvm crashes on linux server with jdk 1.8 u121 and CPU load 100%. VM params are -XX:+UseG1GC -XX:+UseLargePages -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:G1HeapRegionSize=16777216 -XX:InitialHeapSize=17179869184…
Qu Vad
  • 11
  • 4
0
votes
0 answers

G1GC taking long frequent pauses

do not I am using G1GC garbage collector for presto engine, with a 244Gb RAM node as slave with the following gc related…
Ankit Dixit
  • 142
  • 11
0
votes
1 answer

How to determine region size automatically generated by g1gc?

Documentation says that: Upon startup, the Java Virtual Machine (JVM) sets the region size How could I determine what size was chosen for g1gc regions at the startup? How to get notification when it is changed during runtime? I had tried to log gc…
ayvango
  • 5,867
  • 3
  • 34
  • 73
0
votes
1 answer

how essentially g1 gc guarantee low latency pause?

I looked online. But most of the docs just mentioned because g1 gc is incremental, predicatble collection without much details.
del bao
  • 1,084
  • 1
  • 11
  • 20
0
votes
0 answers

Switching to G1 gc form CMS

Is it advisable to switch from CMS to G1 with large object requests(approx. 40-50MB). Available resource details: Heap Size : Between 6GB-16GB. Heap region size: 8MB-32MB. I applied G1 GC with following configurations: Heap Size: 12GB, Region size:…
0
votes
1 answer

How to extract key infromation from G1 gc log

I find the G1 GC log to be somewhat cryptic and I wanted to ask can the log file itself be used to understand the total "stop the world" time for a specific time window that was used for GC? Also , how is a full gc cycle specified for G1 collector? …
bob dabelina
  • 507
  • 5
  • 20
0
votes
1 answer

Does UseG1GC option work in the system installed only JRE?

I added -XX:+UseG1GC option JAVA_OPTS but it didn't seem to work. I installed only JRE 7 in this server so I'm just wondering if I need to install JDK 7. JRE which is installed in the server is the following. java version "1.7.0_25" Java(TM) SE…
kurikintoki
  • 839
  • 1
  • 8
  • 8
0
votes
3 answers

G1 Collector execute 50 times per seconds

Using Java 1.6.0_45 with G1 I have one of my application that run almost indefinitely G1 collector. Beside that seems to waste some CPU it also fill my gc log pretty fast at the lowest setting I could find. I'm wondering what's going on here. Is it…
0
votes
1 answer

Out of swap space

We are facing following exception. Please not that we are following configurations for the JVM (32 bit ) -Xms1024m -Xmx3076m -Xmn1024m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts…
Jabir
  • 2,776
  • 1
  • 22
  • 31
-1
votes
1 answer

Java 6 G1GC - Repeated full GC

We have a Java application which is configured to use Java 6 with G1GC collector. Recently we observed that Full GC gets stuck in repeated attempts even though there is enough memory (per GC logs). Has anyone come across such scenario for Java 6…
Anmol
  • 3
  • 2
-2
votes
1 answer

Application freezing on g1 old run

we currently run DonutSMP.net, a minecraft server that handles concurrently more than 4000 players online every day and it runs a survival gamemode, chunk-intensive, currently we have been experiencing some G1 OLD issues, every time the g1 old runs…
-4
votes
1 answer

Is G1GC stable for Large spark application

Our data pipeline is currently running on Spark 2.4 and java version 1.8, it takes about 10 hours to performing all the ETL steps. Currently we noticed that driver memory heap is elevated and causing a lot of full GCs toward the end of pipeline( the…
Hiu
  • 23
  • 3
1 2 3
20
21