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

G1GC causes gradual memory growth and full GC brings it down

I am running my java application on centos 6 with openjdk version "1.8.0_232" using G1GC. I am seeing the total heap usage grows gradually and causing application to crash. When I am taking a heapdump of live objects the dump size is only 1.6GB but…
0
votes
0 answers

Unable to start Solr with G1GC

I am using Solr 7.7 I am trying to start my solr server with G1 GC instead of the default CMS but the solr service doesn't get up. The command I use to start solr is bin/solr start -p 8000 -a "-Dsolr.solr.home= -Denable.slave=true…
DanMatlin
  • 1,212
  • 7
  • 19
  • 37
0
votes
0 answers

OOM Exception with Nashorn after G1GC cleared memory

I have a web application, that runs in the following environment / GC settings: openjdk version "11.0.6" 2020-01-14 LTS Tomcat 9 -Xms2048M -Xmx6144M -XX:+UseG1GC -XX:ReservedCodeCacheSize=64M -XX:+UseStringDeduplication…
0
votes
0 answers

What Is The Impact Of Increasing G1GC XX:ParallelGCThreads?

I have a 32 GB heap on a 36 core server. Each day we get 2 ~20s Full GCs. The default threads used in Full GC for this setup is 25: java -XX:+PrintFlagsFinal -version| grep ParallelGCThreads uintx ParallelGCThreads = 25 …
opticyclic
  • 7,412
  • 12
  • 81
  • 155
0
votes
1 answer

Does g1 collect all (both eden and survivor) or part of garbages in young gc?

I am curious if g1 will choose part of young region to collect in order to reach the target gc time. And what the real meaning of params InitiatingHeapOccupancyPercent?
ganle hu
  • 97
  • 8
0
votes
1 answer

Full GC vs Major GC in G1 GC

I have just started learning about G1 GC. This is in continuation with my other question : Full GC in G1 GC I came across an article saying full gc and major gc (old gen collection) are two different things and that full gc is single threaded. I am…
0
votes
0 answers

Memory usage with G1GC is misleading

We migrated our application from CMS to G1GC and post that the heap monitoring system is triggering high heap usage alerts. Max heap usage is over 80% of total heap and is almost double of what we used to get with CMS. The memory graph is in zig-zag…
vjmehta
  • 9
  • 1
0
votes
1 answer

How to trigger collection of Old Generation in G1GC

Recently, some of our servers have been crashing due to segfaults. Although I don't have a proven root cause, I do have a hunch that it relates to how our application is garbage collected, the GC tuning we've done, and the memory…
liltitus27
  • 1,670
  • 5
  • 29
  • 46
0
votes
1 answer

What things acutally done in `Ref Enq` in g1 gc

I found a paragraph of gc log in my online hbase service as follow: 2018-11-08T19:12:35.907+0800: 4069334.381: [GC pause (G1 Evacuation Pause) (young) Desired survivor size 41943040 bytes, new threshold 1 (max 1) - age 1: 23290768 bytes, …
ganle hu
  • 97
  • 8
0
votes
1 answer

Kafka Streams - Application JVMs crashing randomly

I have a Kafka Streams application running on multiple JVMs (5 in total) to improve throughput. It runs fine for an hour or so and then, each JVM starts crashing one after another except the last one. is crashing randomly without exceptions in my…
0
votes
2 answers

Compilation error on Zxing

Since I don't own a G1 for development purposes, I am doing my best with the emulator. This said, I am trying to scan a JPEG image or a PNG image in my sdCard, with the ZXing (Zebra Zrossing) library. I tried to change the code in the Android…
monn3t
0
votes
0 answers

G1 OU reduce when young gc happened

env:jdk8 VM flag:-Xms6144m -Xmx6144m -XX:+UseG1GC (other flags as default) From the gc log, there is no mixed gc.Why the young gc decreasing the OU?
Seamas
  • 1,041
  • 7
  • 13
0
votes
2 answers

Java gc - what is long-lived object?

I was told not to create too many long-lived objects to get a better gc performance. Because long-lived objects will be moved to old gen. And it's more expensive to collect objects in old gen. But what does long-lived mean? Is 100 milliseconds too…
T.Tony
  • 495
  • 3
  • 15
0
votes
1 answer

Single server with multiple JVMs and multiple GC algorithms

I have a single linux application server with 4 JVMs on it. The GC Algorithm that I use on them is CMS. Can i change the GC algorithm of two of those JVMs to G1GC ? Is there any negative impact by doing so ?
0
votes
1 answer

I am sufferring JAVA G1 issue

does any one encounter this kind of issue in java G1 gc the first highlight user time is about 4 ms but the second one user time is 0 ms and system time is about 4ms. in G1 gc system time shouldn't be high, is it a bug in G1 gc? below is my gc…
peter
  • 1
1 2 3
20
21