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

1 view (last 30 days)
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.

Answers (1)

bym
bym on 26 Apr 2011
for publishing, how about using 1 figure in conjunction with
snapnow()
  1 Comment
nanren888
nanren888 on 27 Apr 2011
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.

Sign in to comment.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!