Over a million developers have joined DZone.

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

Build vs Buy a Data Quality Solution: Which is Best for You? Gain insights on a hybrid approach. Download white paper now!

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.

Build vs Buy a Data Quality Solution: Which is Best for You? Maintaining high quality data is essential for operational efficiency, meaningful analytics and good long-term customer relationships. But, when dealing with multiple sources of data, data quality becomes complex, so you need to know when you should build a custom data quality tools effort over canned solutions. Download our whitepaper for more insights into a hybrid approach.

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 }}