We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › OutOfMemoryError question for Mac OS X
Page Index Toggle Pages: 1
OutOfMemoryError question for Mac OS X (Read 746 times)
OutOfMemoryError question for Mac OS X
May 28th, 2009, 3:55am
 

I'm trying to run large simulations for print purposes (I'd like at least 6000x2000). I can get up to 4500x1500 without errors. I used the code from the troubleshooting page view the memory usage:

allocated 52539392
free 22972664
max 66650112

When I try to go larger (4500x2000) the memory looks like:
allocated 66650112
free 25832576
max 66650112
But when I try to save a tiff, I get the Out of Memory Error.

After some googling, I tried to increase the Java Heap Space max parameter by editing Processing's Info.plist file. I changed the VMOptions to "-Xms512M -Xmx512M".  But this didn't affect the memory allocation at all and I still got the error message.

The activity monitor shows that I am using 173M, considerably lower than the 512 limit. Do I have to do something else for changes to Info.plist to take effect??  I really have no experience with JAVA or mac memory issues (which is probably obvious from my comments.)  

help!!

I'm using a MacBook Pro with 2.4 GHz Intel Core 2 Duo and 2 Gigs of RAM. Running OS X 10.5.6.
Re: OutOfMemoryError question for Mac OS X
Reply #1 - May 28th, 2009, 4:41am
 
I had no idea of what a plist can be, a quick search shown it might be specific to Macs.
Have you tried to change the memory setting in the Preferences dialog?
Re: OutOfMemoryError question for Mac OS X
Reply #2 - May 28th, 2009, 12:11pm
 

oh! I see. Thank you very much, PhiLho. That did the trick. I can save tiffs up to 10,000x10,000 now. That ought to be more than sufficient Smiley Actually, you have no idea how long I was stuck on that. I'm embarrassed that it was such an easy solution, but very grateful.

Thanks again!!!!
Re: OutOfMemoryError question for Mac OS X
Reply #3 - May 29th, 2009, 3:34am
 
You are welcome. I have, myself, overlooked this setting too, having no sketch with great memory needs. I just saw the info somewhere else on the forum and pass it up! Wink
Page Index Toggle Pages: 1