Memory dump fills disk

Questions about YourKit Java Profiler
Post Reply
fabiankessler
Posts: 1
Joined: Mon Feb 17, 2014 2:03 pm

Memory dump fills disk

Post by fabiankessler »

Before taking a memory dump the program could/should check whether there is enough disk space available.

My scenario:
Running Windows on a 64gb SSD, having an additional disk. Windows takes 30gb, hibernate and paging file another 15gb. Obviously there's not much left (I had 3gb left).
Installed YourKit on 2nd disk. But apparently it still sets the dump folder to the primary disk c, no questions asked.
Taking the first larger dump was quite a flowstopper. Filled disk c and left 1.5mb, froze the system for a while.

Other than that: wonderful software.

I was looking for the bugtracker, this forum is all I could find. It feels a bit 90s.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Memory dump fills disk

Post by Anton Katilin »

Hi Fabian

Please set a custom snapshot directory as described here:
http://www.yourkit.com/docs/java/help/snapshot_dir.jsp

Regarding automatic checks.

Unfortunately, it's almost impossible to determine the snapshot size before taking it. Furthermore, if there is a lack of disk space, it can be suddenly eaten by another process running in parallel, thus even if we checked the available disk space right before capturing the snapshot it wouldn't be a 100% guarantee of a successful capture.

However, we can show a warning if the free space is below some reasonable threshold, e.g. 10 GB. Not a solution, but maybe a useful precaution.

Best regards,
Anton
Post Reply