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

Questions about YourKit Java Profiler
Post Reply
Michael.Scaman
Posts: 34
Joined: Mon Feb 02, 2015 3:14 pm

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

Post by Michael.Scaman »

Is it best to requisition one and wait? Is it possible to have a CLI feature to wait for GC before a snapshot?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

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

Post by Anton Katilin »

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: 6172
Joined: Wed Aug 11, 2004 8:37 am

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

Post by Anton Katilin »

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.
Post Reply