Code covered by the BSD License  

Highlights from
Java Heap Cleaner

Java Heap Cleaner

by

 

18 May 2012 (Updated )

Simple function cleaning up, at runtime, Java heap memory, thus preventing java OutOfMemory error

jheapcl(verbose)
function [] = jheapcl(verbose)

if nargin < 1
    verbose = 0;
end

org.dt.matlab.utilities.JavaMemoryCleaner.clear(verbose)

% Use this for silent cleanup
% org.dt.matlab.utilities.JavaMemoryCleaner.clear(1)

% Decomment this for verbose cleanup
% org.dt.matlab.utilities.JavaMemoryCleaner.clear(1)

Contact us