FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Discussion
   General Processing Discussion
(Moderators: fry, REAS)
   Memory exception under OsX
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Memory exception under OsX  (Read 1101 times)
tobt


Memory exception under OsX
« on: Jul 9th, 2004, 9:42pm »

I get a java.lang.outOfMemory exception. So I want to increas the RAM of processing. But I don't know how to do this under Mac OsX. (There is no run.bat)
Thanks, tobt.
 
mattgilbert

tangramkid WWW Email
Re: Memory exception under OsX
« Reply #1 on: Jul 9th, 2004, 11:57pm »

i've been getting these a lot, too, recently. I think it started when I started playing around with 3D and/or 3D text stuff. I haven't been able to make an sketch that caused the exception consistently or predictably, or else I would have posted it.
 
Matt
 
 
fry


WWW
Re: Memory exception under OsX
« Reply #2 on: Jul 10th, 2004, 12:50am »

right-click on Processing.app, select "show package contents" and go digging for the Info.plist file. there's an entry in the Info.plist for setting the ram level, it's gonna be -Xms128m and -Xmx128m or something like that, meaning 128 megs. adjust as necessary and see how it goes.
 
tobt


Re: Memory exception under OsX
« Reply #3 on: Jul 10th, 2004, 2:32pm »

on Jul 10th, 2004, 12:50am, fry wrote:
... an entry in the Info.plist for setting the ram level, it's gonna be -Xms128m and -Xmx128m or something like that, meaning 128 megs. adjust as necessary and see how it goes.

 
can't find an entry like that in the info.plist file.
 
But there is a line in MRJApp.properties:  
com.apple.mrj.application.gc.max=128M
 
But adjusting this seems to have no influence.
Any other ideas tobt
 
fry


WWW
Re: Memory exception under OsX
« Reply #4 on: Jul 10th, 2004, 6:40pm »

yikes, no wonder it's having trouble. try adding this before the last </dict>
 
Code:
<key>Java</key>
 <dict>
  <key>VMOptions</key>
  <string>-Xms512m</string>
  <key>VMOptions</key>
  <string>-Xmx512m</string>
 </dict>

and see if that helps any. i haven't tried it but it's what another app i've done (with p5) looks like.
 
mattgilbert

tangramkid WWW Email
Re: Memory exception under OsX
« Reply #5 on: Jul 11th, 2004, 4:39am »

when i did that, processing wouldn't open. it would hop once in the dock, but then stop and not open. I tried it with 512, 400, and 300.
 
matt
 
 
mitchell

theteemingvoid WWW
Re: Memory exception under OsX
« Reply #6 on: Aug 13th, 2004, 3:39am »

I too had been running into memory problems (with bitmaps around 4Mpixels). Fry's suggestion to alter info.plist worked fine for me - P5 runs and no more outOfMemory.  
 
FYI here's the text of the whole file:
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
 <key>CFBundleIconFile</key>
 <string>processing.icns</string>
 <key>CFBundlePackageType</key>
 <string>APPL</string>
 <key>CFBundleName</key>
 <string>Processing</string>
 <key>CFBundleSignature</key>
 <string>Pde1</string>
 <key>CFBundleExecutable</key>
 <string>JavaApplicationStub</string>
 <key>CFBundleDevelopmentRegion</key>
 <string>English</string>
 <key>CFBundleVersion</key>
 <string>1.0a1</string>
 <key>CFBundleInfoDictionaryVersion</key>
 <string>6.0</string>
 <key>Java</key>  
  <dict>  
   <key>VMOptions</key>  
   <string>-Xms512m</string>  
   <key>VMOptions</key>  
   <string>-Xmx512m</string>  
  </dict>
</dict>
</plist>
 
mattgilbert

tangramkid WWW Email
Re: Memory exception under OsX
« Reply #7 on: Aug 13th, 2004, 5:42am »

there were some minor differences between my Info.plist file and yours, but changing mine to be exactly like yours made the same thing happen. Processing wouldn't open.
 
I have changed a line in MRJApp.properties, though. from:
 com.apple.mrj.application.gc.max=128M  
to:
 com.apple.mrj.application.gc.max=512M  
 
Haven't had any more memory errors so far, although I haven't used it much since then.  
 
Matt
 
 
Pages: 1 

« Previous topic | Next topic »