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

任务管理器显示的数量是堆的总大小,可能大部分是空闲/未使用的。所以它可能与泄漏无关。

如果你想使用更少的内存,你可以减少最大堆大小参数,但你可能会在某个阶段耗尽内存......

于 2013-01-02T20:37:10.060 回答