'Is there a way to record the objects created at java application startup using JProfiler attach on wait mode?

I would like to profile a Java application start up and understand what are the objects created and what causing GC using JProfiler



Solution 1:[1]

In the "Session Startup" dialog that is shown when you start the profiling session in JProfiler, there is a "Initial recording profile" setting.

enter image description here

You can add a profile that records allocations by clicking on the "Configure" button

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ingo Kegel