Java Performance Tuning

Java(TM) - see bottom of page

|home |services |training |newsletter |tuning tips |tool reports |articles |resources |about us |site map |contact us |
Tools: | GC log analysers| Multi-tenancy tools| Books| SizeOf| Thread analysers| Heap dump analysers|

Our valued sponsors who help make this site possible
JProfiler: Get rid of your performance problems and memory leaks! 

Training online: Concurrency, Threading, GC, Advanced Java and more ... 

News March 2019

Get rid of your performance problems and memory leaks!

Modern Garbage Collection Tuning
Shows tuning flow chart for GC tuning

Java Performance Training Courses
COURSES AVAILABLE NOW. We can provide training courses to handle all your Java performance needs

Java Performance Tuning, 2nd ed
The classic and most comprehensive book on tuning Java

Java Performance Tuning Newsletter
Your source of Java performance news. Subscribe now!
Enter email:

Training online
Threading Essentials course

Get rid of your performance problems and memory leaks!

Back to newsletter 220 contents

I was asked about the feasibility of adding automatic leak detection to a CI pipeline. And I realized that it's easily doable ...

  1. Make sure GC logging is on (to a well defined location).
  2. Set the GC algorithm to parallel GC (doesn't matter if a different one is used in production, that doesn't change memory leaking, and this is for a specific "memory leak regression" CI stage). Also set Xmx=Xms and Xmn values to eliminate variability in the heap adjusting itself internally.
  3. Scan for only the full/major/oldgen GCs and extract the "heap after the GC completes" (that's why to use parallel GC, it's easy to extract these from the logs).
  4. If the sequence becomes increasing and above a threshold (say above 2/3 the allocated heap size) then you have a leak.

But note that you have to run it long enough for the leak to show. Now on to this month's tips, tools, news, articles, and talks from our extensive community. And of course the tips from this month's articles and talks, as ever are extracted into this month's tips page.

A note from this newsletter's sponsor

Get rid of your performance problems and memory leaks!


Java performance tuning related news.


Java performance tuning related tools.


Jack Shirazi

Back to newsletter 220 contents

Last Updated: 2022-06-29
Copyright © 2000-2022 All Rights Reserved.
All trademarks and registered trademarks appearing on are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries. is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
RSS Feed:
Trouble with this page? Please contact us