2

The total memory used by the program is not nearly recorded by Netbeans' built-in profiler. There are some very large objects that are not showing up, such as a WriteableRaster (which I'll be doing away with soon). In terms of magnitude: if the profiler doesn't account for garbage collection, I'll get a total of ~2.5GB from the profiler while the program is using ~6GB. If the profiler does account for garbage collection, then it will display ~100MB being used (live memory), while the program is still using ~6GB. Is there any way to track larger objects with the profiler or will I have to use a different tool?

4

1 に答える 1

1

The amount shown by the task manager is the total size of your heap, which might be mostly free / unused. So it probably has nothing to do with a leak.

If you want to use less memory you can decrease the maximum heap size parameter but you might run out of memory at some stage...

于 2013-01-02T20:37:10.060 に答える