All Questions
Tagged with heap-memory jvm
508 questions
-1
votes
1
answer
46
views
How to reduce heap space utilization when working with a list PDF documents?
I have a microservice that generates multiple PDF Documents and saves to database. For generating each document, from the main service class, I call multiple document specific service class methods by ...
1
vote
1
answer
79
views
What would prevent java garbage collection from cleaning heap?
Two k8s pods running the same image (using Adoptium 17 JRE).
Around 9pm, they start getting requests and objects are getting created.
On the blue pod, we can see the garbage collection working ...
0
votes
0
answers
87
views
Why DirectByteBuffer keeps data on JVM heap instead of native memory in Android?
I wanted use ByteBuffer.allocateDirect to keep data on native memory but it looks like it keeps data on heap.
I used this code to check that DirectByteBuffer keeps data on heap.
import android.util....
0
votes
1
answer
624
views
What would be optimal thresholds for JVM Heap Memory alerts in DataDog?
I'm working on creating Datadog alerts to alert teams when their services are on a certain percentage of JVM Heap Memory. However, I have a hard time figuring out what thresholds would be somewhat ...
0
votes
0
answers
43
views
Minimum heap size in JVM (-Xms) [duplicate]
Despite setting the minimum heap size to 0 and observing successful program execution, the question arises: With the JVM's dynamic resizing capabilities, is there a compelling need for a minimum heap ...
0
votes
0
answers
84
views
How do I determine the currently available JVM heap size?
I can use freeMemory() to get unallocated heap size, but the actual available memory is usually larger if my program needs more space because of the uncollected garbage. I wonder if there's a way to ...
1
vote
2
answers
634
views
Setting Heap size and other related parameters in cassandra
I have a cassandra 5 node cluster with 256GB memory.
I am facing some performance issue on read operation so I decided to increase my heap size as it was using the defualt.
I updated cassandra-env ...
2
votes
0
answers
270
views
PromQL-Query for used heap size after full GC
I'm currently looking for a query that would return the used heap-size after a full GC run occurred.
The goal is to suggest a calculated value for the -XmxN parameter, based on the return-value I am ...
1
vote
0
answers
535
views
Eclipse memory analyzer Heap dump analysis
recently I have downloaded some 5/6GB size heap dumps, and with great surprise I've noted with Eclipse Memory Analyzer that the leaks suspects report show me a problem total size of circa 500MB, the ...
0
votes
0
answers
559
views
Execute heap dump in remote Java 8+ JVM without first executing a Garbage Collecting
I am using VisualVM to extract a Heap Dump from a tomcat that is consuming a lot of memory resources. It starts consuming around 1GB but gradually reaches 5-6GB. It has peaks where the CPU is at 100% ...
0
votes
1
answer
157
views
Why jvm increase all the time without shrink even if has -XX:MaxHeapFreeRatio jvm argument
from jmap result, we can see, free heap size(up to 90%) exceed MaxHeapFreeRatio(40%), but jvm still not shrink.
this is jvm info:
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.version = 25.352-b1
...
1
vote
1
answer
184
views
WSO2 EI Docker container 6.4.0 - Facing java.lang.OutOfMemoryError: GC overhead limit exceeded in ETL process
There is ETL process running in WSO2 EI 6.4.0.
Flow: Task Scheduler --> Proxy Service --> Sequence
Task scheduler will trigger proxy service based on cron expression(eg. 0 45 0/2 ? * * * )
...
0
votes
0
answers
99
views
How does JVM know the address of a class in metaspace?
I learned that getting the value of a static field uses an offset from the beginning of the class data in the metaspace. (How exactly do static fields work internally?) But how does the jvm know the ...
0
votes
0
answers
86
views
Is string constant pool part of the method area or the heap area in Java ? does scp consist of objects ? are these garbage collected?
I have a big doubt about whether the string constant pool is part of the run-time constants pool created in the method area of the JVM or if they are part of the heap. I have read multiple articles on ...
1
vote
0
answers
445
views
OpenJDK JVM memory layout (Metaspace, Code Cache, Heap, Non-Heap, Runtime Constant Pool)
This question might seem like a duplicate or like a too much open question, but after long research I decided to ask it anyway.
I am looking for an updated (2023) overview of OpenJDK JVM Memory Layout,...