publish - figure reuse - java heap - maximum settings - error

조회 수: 4 (최근 30일)
nanren888
nanren888 2011년 4월 26일
Question: Anyone know what sets the maximum heap space in the Matlab desktop GUI interactive slider to set java heap space?
Question: Anyone know any rules for accumulation of heap space requirements, eg per snap of figure published, or such?
Using publish (html), figure reuse, maximum java heap space set, still have java heap space error. Standard matlab, no mex, no explicit java.
for - loop
for - loop
for - loop
figure(1);
plot...
figure(2);
plot...
end
end
end
So, after the first time through, no new figures are created. Have used the Matlab - desktop gui to set maximum java heap space. Runs a long time, then gives the java heap space error.
Have set the slider for heap space to maximum allowed, (by the end of the slider) about 6GBytes.
Will try publish to other formats. Otherwise, next steps are to divide the script up & enumerate all the loops separately: YUK!
Or, maybe start wondering about memory leaks or lingering java objects?
So, questions as at the top, or comments accepted.
Thanks, in advance.

답변 (1개)

bym
bym 2011년 4월 26일
for publishing, how about using 1 figure in conjunction with
snapnow()
  댓글 수: 1
nanren888
nanren888 2011년 4월 27일
Ok, my pseudo-code was not so clear. I've updated it. I'm only using 2 figures, with each reused many time.
But, yes, thanks for the suggestion, I'll cut it down to a single figure, reuse it more & see it there is any change.
If I had lots of time I'd explore the growth in heap 7 what affects it &c, but hoping someone knows this stuff & can save me the trouble.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by