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|

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

Training online: Threading Essentials course 

News March 2019

JProfiler
Get rid of your performance problems and memory leaks!


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


JProfiler
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

JProfiler
Get rid of your performance problems and memory leaks!

News

Java performance tuning related news.

Tools

Java performance tuning related tools.

Articles

Jack Shirazi


Back to newsletter 220 contents


Last Updated: 2019-05-26
Copyright © 2000-2019 Fasterj.com. All Rights Reserved.
All trademarks and registered trademarks appearing on JavaPerformanceTuning.com are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries. JavaPerformanceTuning.com is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
URL: http://www.JavaPerformanceTuning.com/news/news220.shtml
RSS Feed: http://www.JavaPerformanceTuning.com/newsletters.rss
Trouble with this page? Please contact us