Search

GC easy – Universal Java GC Log Analyser

Author

Ram Lakshmanan

artist + rebel + engineer.

Best practices: Java memory arguments for Containers

When you are running your Java application in physical servers, you would have been using ‘-Xmx’ JVM argument to specify the Java heap size. If you are porting your application to Containers, you might be wondering how to configure Java heap size in the container’s world? Are there any best practices? In this article, we will discuss the possible JVM arguments that can be used to specify the Java heap size and the best option to choose. 

Continue reading “Best practices: Java memory arguments for Containers”

Difference between InitialRAMFraction, MinRAMFraction, MaxRAMFraction

Coming soon…

Difference between InitialRAMPercentage, MinRAMPercentage, MaxRAMPercentage

This article attempts to clarify the difference between InitialRAMPercentage, MinRAMPercentage, MaxRAMPercentage JVM arguments. These arguments have been introduced since Java 8 update 191. They are used to configure your Java application’s heap size when you are running it in the Physical server or in the container. In this article, let’s review their differences.

Continue reading “Difference between InitialRAMPercentage, MinRAMPercentage, MaxRAMPercentage”

What is Java Heap Fragmentation?

Java Heap fragmentation is an interesting problem, which triggers long pausing full garbage collection cycles. In this article we would like to attempt to explain the heap fragmentation. 

Let’s say developer write a code ‘new BMW()’. This will create a new BMW object in the heap memory space. Example:

Continue reading “What is Java Heap Fragmentation?”

Avoid passing – XX:+UseCompressedOops

Since we are analyzing thousands of Garbage Collection logs every single day through our GCeasy tool, we are noticing several java applications still continuing to use ‘-XX:+UseCompressedOops’ JVM argument. Actually, it’s not required to pass ‘-XX:+UseCompressedOops’ JVM argument if you are running in Java SE 6 update 23 and later. Compressed oops is supported and enabled by default in Java SE 6u23 and later versions.

Continue reading “Avoid passing – XX:+UseCompressedOops”

Advantages of setting -Xms and -Xmx to same value

Coming soon…

GC allocation stall

Coming soon…

All you need to know about System.gc()

In this article, we have attempted to answer most common questions around System.gc() API call. We hope it may be of help.

Continue reading “All you need to know about System.gc()”

Try to avoid -XX:+UseGCLogFileRotation

Developers take advantage of the JVM argument -XX:+UseGCLogFileRotation to rotate GC log files. Continue reading “Try to avoid -XX:+UseGCLogFileRotation”

Powered by WordPress.com.

Up ↑