Heap profiling (Memory Profiling) enables you to understand the memory allocation and garbage collection behavior of your applications over time. Memory profiling helps in identifying method calls in the context within which most memory was allocated and combine this information with the number of allocated objects. The survivor respective helps you to understand the context within which your long-living objects (Objects that survive multiple garbage collection cycles are created). In memory profiling window, you can see the following details which are listed below:

Pre-requisite

For memory functionality to work correctly, the application must include the native agent argument. Ensure the following argument is added to the application startup configuration: -agentpath:/home/cavisson/netdiagnostics/lib/libjavanativeagent.so=feature_all.

Add New Session

To add new memory profiling session, you have to click on the Add New Session icon on the top left corner of the window. Once you click on the add new session icon, the Configuration Topology Window will open where you have to provide the topology details by selecting the tier, server and instances.

Memory Profiling Session

In memory profiling session, you can see the details for the sessions which are related to a particular memory profile. In memory profiling session, you can see the following details related to the session which are listed below:

Note: You can also delete an existing memory profiling session by clicking on the Delete icon.

New Memory Allocation

In new memory allocation, you can see a list of classes which have been allocated with new memory. In new memory allocation, you can see the details for the following which are listed below:

Class Data

In class data, you can see the new memory allocated details in tabular format. There are following fields which are listed below:

Stack Trace

A stack trace will capture the total stack trace during the session. The default value for stack trace is 1000, default minimum value for stack trace is 100 and default maximum value for stack trace is 10000. In stack trace window, you can see the following details which are listed below:

Statistics

In statistics, you can see the new memory allocated details in graphical format. There are following fields which are listed below:

In statistics, you can see three different types of statistical data in pie or chart format which are listed below:

Memory Leaks

Memory leaks are programming errors where the allocated memory is not properly deallocated or release when it is no longer needed, as a result the memory which is no longer in use remains allocated. In memory leaks window, you can see the following details which are listed below:

Class Data

In class data, you can see the new memory allocated details in tabular format. There are following fields which are listed below:

Stack Trace

A stack trace will capture the total stack trace during the session. The default value for stack trace is 1000, default minimum value for stack trace is 100 and default maximum value for stack trace is 10000. In stack trace window, you can see the following details which are listed below:

Statistics

In statistics, you can see the new memory allocated details in graphical format. There are following fields which are listed below:

In statistics, you can see the new memory allocated details in graphical format. There are following fields which are listed below:

In statistics, you can see the data in the following two graphical formats which are listed below:

You can also see two different types of statistical data in the pie or chart format which you can see in the total allocation which are listed below:

Notes: