Sunday 3 June 2018

Garbage Collection in the JVM - Taking out the garbage

Facebook
Twitter
LinkedIn
Google Plus
Email
Java Code Geeks on Steroids

How Garbage Collection can affect your application?


Garbage Collection in Java
Your Java virtual machine manages memory for you – which is highly convenient – but it might not be optimally tuned by default. By understanding some of the theory behind garbage collection you can more easily tune your collector. A common concern is collector efficiency, that is to say how much time your program spends executing program code rather than collecting garbage. Another common concern is long that application pauses for.

Java Garbage Collection Distilled
Serial, Parallel, Concurrent, CMS, G1, Young Gen, New Gen, Old Gen, Perm Gen, Eden, Tenured, Survivor Spaces, Safepoints, and the hundreds of JVM startup flags. Does this all baffle you when trying to tune the garbage collector while trying to get the required throughput and latency from your Java application? If it does then do not worry, you are not alone. Documentation describing garbage collection feels like man pages for an aircraft.

5 Coding Hacks to Reduce GC Overhead
In this post we'll look at five ways in which we can use efficient coding to help our garbage collector spend less CPU time allocating and freeing memory, and reduce GC overhead. Long GCs can often lead to our code being stopped while memory is reclaimed (AKA "stop the world").

Till the next time, enjoy...!!
Your Suggestions
Any ideas or suggestions? Shoot us an email at newsletter@javacodegeeks.com
Copyright © 2018 Exelixis Media P.C., All rights reserved.
You are receiving this email because you opted in at our website(s) www.javacodegeeks.com, examples.javacodegeeks.com

Our mailing address is:
Exelixis Media P.C.
Nafpaktias 18
Kesariani, Attica 16121
Greece

Add us to your address book
unsubscribe from this list    update subscription preferences

No comments:

Post a Comment