Where is profiler heap dump located on macos?

Questions about YourKit Java Profiler
Post Reply
Buktop80
Posts: 1
Joined: Thu Jul 01, 2021 11:40 am

Where is profiler heap dump located on macos?

Post by Buktop80 »

I've got OOM opening large profile and now wondering where profiler's own dump is located -- I want to clean up space )
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Where is profiler heap dump located on macos?

Post by Anton Katilin »

From the Java documentation page https://docs.oracle.com/javase/8/docs/t ... ts001.html :

"By default the heap dump is created in a file called java_pidpid.hprof in the working directory of the VM ... You can specify an alternative file name or directory with the -XX:HeapDumpPath= option."

Please see the section "The -XX:HeapDumpOnOutOfMemoryError Option" for detail.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Where is profiler heap dump located on macos?

Post by Anton Katilin »

Just to clarify: do you want to locate the dumps for further analysis, or do not want them to be created at all?

If latter, please remove -XX:+HeapDumpOnOutOfMemoryError from <user home>/.yjp/ui.ini
Post Reply