Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

What is the best way to do a memory snapshot after garbage c

Moderators: Vladimir Kondratyev, Anton Katilin

What is the best way to do a memory snapshot after garbage c

Postby Michael.Scaman » Thu Jun 11, 2015 5:13 pm

Is it best to requisition one and wait? Is it possible to have a CLI feature to wait for GC before a snapshot?
Michael.Scaman
 
Posts: 34
Joined: Mon Feb 02, 2015 3:14 pm

Re: What is the best way to do a memory snapshot after garba

Postby Anton Katilin » Mon Jun 15, 2015 9:07 am

I'm not sure I fully understand your question. Could you please be more specific.

Do you want to ensure (force) GC before capturing a memory snapshot? if so, please use corresponding tool: toolbar button in the UI, API method if you're using the API. The command line tool does not have a command to force GC at the moment, but we might add it in the next build, it would be a trivial change.
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am

Re: What is the best way to do a memory snapshot after garba

Postby Anton Katilin » Mon Jun 15, 2015 9:11 am

The command line tool does not have a command to force GC at the moment, but we might add it in the next build, it would be a trivial change.


An update:

The command line tool command "force-gc" will be added in the next build 15062.
Anton Katilin
 
Posts: 5576
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot] and 5 guests