Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Java GC Monitoring With JVisualVM [Video]

DZone's Guide to

Java GC Monitoring With JVisualVM [Video]

Learn best practices for maintaining your garbage collection and heap in Java, with tips for keeping your app tidy and prevent you from running out of memory.

· Java Zone ·
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

Java garbage collection is a very critical aspect of JVM runtime, and poorly performing GC can have adverse impacts on the performance of your java application.

In this presentation, we will take a deep dive into what GC is all about, what the JVM heap looks like, and how objects are moved from one area of the heap to another. We will use JVisualVM, a very useful tool for debugging java performance problems.

We will also have a demo where one sample application will be used to demonstrate how the heap and GC behave in a typical application. We will simulate two scenarios: first, where the application will keep allocating objects in memory. We will show how the heap comes under pressure over time and GC starts kicking in too frequently, which can impact the performance of the application.

In the second scenario, we will show how following best practices of objects referencing/un-referencing can save you from getting problems like OutOfMemory or too many GC cycles etc.

Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat

Topics:
java ,java performance tuning ,garbage collection ,heap ,tutorial

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}