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
1
vote
1 answer

Java Metaspace Full GC

I am having some issues with G1GC. 2400.241: [GC concurrent-root-region-scan-start] 2400.241: [Full GC (Metadata GC Threshold) 2400.252: [GC concurrent-root-region-scan-end, 0.0101404 secs] 2400.252: [GC concurrent-mark-start] 1151M->603M(4356M),…
Bruno Manzo
  • 353
  • 3
  • 15
1
vote
1 answer

Trigger major GC periodically with G1 GC

I am using an application with G1 GC. Is there any parameter to trigger major GC when old gen utilization goes above a certain level? Right now, my heap usage looks like below Heap Usage: G1 Heap: regions = 1504 capacity = 1577058304…
pc70
  • 681
  • 1
  • 14
  • 28
1
vote
0 answers

Eclipse Photon excessive garbage collection

I'm using the latest Eclipse Photon Java EE IDE with Java 8 "1.8.0_181" 64-Bit on Windows 10. After about an hour of usage, it becomes so unresponsive, that it's effectively unsuable. I checked the eclipse.ini and the default memory settings…
Benjamin Maurer
  • 3,602
  • 5
  • 28
  • 49
1
vote
0 answers

Can we tune G1-GC in such a way to set a threshold time duration from last gc, after that explicit garbage collection is called?

Recently we added g1-gc algorithm for our process, but we found that our process kept taking memory from os which it is not using, In previous release we didn't have this issue because we were using one explicit GC thread which were doing explicit…
1
vote
1 answer

Understanding cause of G1 garbage collector's long pause in one specific GC-phase

I am trying to G1 type garbage collector in a server-side JVM and while, in general, the gc-pauses are quite short, once in a while they shoot up and then we have issues. I am giving below the break-up of one of such long pauses, which is overall…
Roshan
  • 290
  • 3
  • 16
1
vote
1 answer

Apache Spark G1GC vs ParallelGC

I just wanted to know, why my ParallelGC (--conf "spark.executor.extraJavaOptions=-XX:+UseParallelGC") in a very long Spark ML Pipeline works faster than when I set G1GC (--conf "spark.executor.extraJavaOptions=-XX:+UseG1GC"), even though the Spark…
Aakash Basu
  • 1,689
  • 7
  • 28
  • 57
1
vote
1 answer

Why the time costs on Unloading action in G1 Remark phase too long

We have a Java Application with JDK8_162 and some the boot args as follow: -Xms512m -Xmx512m -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -XX:+UseG1GC After a few hours running, GC Concurrent phase started, with GC log as…
Gnayils
  • 161
  • 6
1
vote
1 answer

Garbage collection taking very long time, at times

In our kafka broker setup, GC takes 20 ms on an average, but it randomly increases to 1-2 secs somtimes. Extreme cases it goes on for 9s. The frequency of this is fairly random. Happens 15 times per day on an average. I have tried using GCEasy,…
1
vote
0 answers

Using JAVA 9 G1GC, System.gc () not executed when application under load. Why?

Recently we have upgraded to JAVA9 and decided to try G1GC algorithm. Then given load to the application and observed the behaviour of it 1) Full GC has not executed, even after consuming 80% of memory (under load) 2) Full GC (System.gc())…
Nagaraj
  • 11
  • 1
1
vote
1 answer

G1GC not auto adjusting NewSize (Long GC times)

My application is G1GC with a memory size of 45GB. I am seeing long GC times. While investigating, I found that only 5% of the heap for young generation which is being filled up very frequently leading to frequent collections. Moreover, although…
maneet
  • 295
  • 2
  • 10
1
vote
0 answers

Why can't marking cycle phase reclaim non-empty old regions?

The article G1: One Garbage Collector To Rule Them All gives a detailed description of G1 GC. However, one thing I feel really confused is that why G1 GC did not have any marking information after we've just finished a marking cycle phase. Before…
skytree
  • 1,060
  • 2
  • 13
  • 38
1
vote
1 answer

Why does G1 Old gen max memory in jmx equal to max heap size?

I start a tomcat instance enabled with jmx, I check G1 old gen memory stat, find max memory = max heap size. The environment # uname -a Linux bogon 2.6.32-642.15.1.el6.x86_64 #1 SMP Fri Feb 24 14:31:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux #…
linbo
  • 2,393
  • 3
  • 22
  • 45
1
vote
1 answer

Rapid Young G1 Evacuation Collections

I'm working with an application that was recently upgraded and I'm seeing new behavior that I can't quite explain. The pattern of collections seems decent but then will perform in excess of 10 G1 Evacuation Collections (Young) in a row, within a few…
1
vote
1 answer

Intellij Idea15 CE fails to launch with -XX:+UseG1GC

I am trying to test running with string interning to see if it helps ease the massive memory requirements of intellij. In order to use java 8's built in interning you need to run the G1GC. However adding this parameter to the user idea.vmoptions…
Dylan Wilder
  • 166
  • 1
  • 9
1
vote
1 answer

Why does G1 collertor cost so much time for object copy

My java options is : java -Dsun.zip.disableMemoryMapping=true -Xmx18g -Xms8g -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:InitiatingHeapOccupancyPercent=45 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:gc.log -XX:NewSize=1500m…
wangzhiju
  • 835
  • 2
  • 7
  • 12