Java Performance Tuning
Java(TM) - see bottom of page
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
|
JProfiler
|
|
Get rid of your performance problems and memory leaks!
|
|
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 ...
- Make sure GC logging is on (to a well defined location).
- 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.
- 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).
- 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: 2026-02-26
Copyright © 2000-2026 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