321 questions
1
vote
0
answers
80
views
How to identify which objects are in the old generation of G1 garbage collector?
I'm trying to analyze memory usage in a Java 8 application using G1GC. After a Full GC occurred, approximately 8.8GB of objects were collected from the old generation. I have both GC logs and heap ...
0
votes
0
answers
56
views
Native Memory Tracking GC stats
We have a java app that runs on openjdk version "11.0.18" 2023-01-17 LTS and it started swapping for a few weeks.
When running jcmd <PID> VM.native_memory, we get something like this:
...
0
votes
0
answers
155
views
GC pause by Metadata GC Threshold for weeks then turned to Full GC
I have a java application running heavily groovy scripts. After running for weeks, the system encountered Full GC in every day, every time it cost about one second which is not acceptable.
How can I ...
1
vote
1
answer
90
views
Unreachable java.lang.ClassValue$ClassValueMap objects not cleaned by GC
We have an enterprise application deployed on Wildfly. Java version used to run is 11.0.22+7-LTS.
We see a weird problem in perform env. Every time we collect a live heapdump, we see a bulk of memory ...
0
votes
0
answers
585
views
High Memory Usage after migrating from Java 8 to Java 17
Our java Application is deployed in AWS Infra on EC2.
Application running JVM Options - -Xmx51g -Xms24g -Xmn5g. with java 8 during start of the application it was using approx 30g but when migrated to ...
0
votes
0
answers
66
views
G1 GC Logs show regions but not detailed byte information
Using Adoptium Temurin Java 11 and G1 GC settings of
-XX:+UseG1GC -XX:+DisableExplicitGC -verbosegc -Xlog:gc*,safepoint=debug:file=${GCFILENAME}:tags,time,uptime,level:filecount=10,filesize=10M -XX:-...
0
votes
0
answers
77
views
Questions about ParallelGC and Full GC behavior in long-running systems
I have a few concerns about ParallelGC and its behavior in long-running systems:
It seems that only Full GC can reclaim the old generation, implying that the old generation can only grow until a Full ...
0
votes
1
answer
187
views
G1 GC take a long time for Object Copy
My application is a typical Java web application, Java 8, using G1 GC. I have encountered a GC problem. Within 10 minutes after the application is started (when the old generation is gradually ...
0
votes
0
answers
33
views
Can the old region be largger than the setting of JVM
I have a project with G1.The JVM Parameters are:
-Xmx12288m
-Xms12288m
-Xss256k
-XX:G1NewSizePercent=35
-XX:G1MaxNewSizePercent=60
-XX:MaxGCPauseMillis=200
-XX:+UseG1GC
-XX:-...
0
votes
0
answers
71
views
How does G1 update pointers in young only collection?
I understand that G1 keeps remembered sets to keep track of pointers pointing into a region. Then I guess that it holds a forwarding table for the region being evacuated to figure out the new ...
0
votes
1
answer
2k
views
Increase in Eden Space and Old Gen peak values
After Java 17 upgrade, JVM heap memory started to increase. When we check the memory metrics, sizes of the Eden Space and the Old Generation fluctuating and peak values are increasing.
There seems no ...
0
votes
1
answer
290
views
Why isn't RSS reduced when System.gc() for parallel, but for G1 is?
I'm using Java 17. I have a container with 2GB and run the following Java program:
import java.util.*;
public class Main{
public static Map<byte[], byte[]> m = new HashMap<>();
...
-1
votes
1
answer
595
views
how to control jvm heap usage rate to stay below 80% as much as possible?
Our springboot app is used for get large data and compress it. so it always needs large memory.But customer's Prometheus always monitor it and send alarm to us heap memory usage rate exceeds 80%....
-1
votes
1
answer
241
views
JVM hang suddenly with jdk version 8u1.8.0_312
Our online Kafka Broker service suddenly hung up, and it's occurs with low probability and without any time regularity. no crash, no warning, no error and no logs
The command "jstack [pid]" ...
0
votes
0
answers
156
views
G1 Full GC events happens too often due to Allocation Failure
I have a backend service using G1 GC, which has started full gc so frequently after running about 2 days.
the original application gc params(eliminating gc log params for better readability ):
-Xms32g ...