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_
   Topics & Contributions
   Tools
(Moderator: REAS)
   Memory Bottleneck?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Memory Bottleneck?  (Read 2762 times)
megamu

megamu+loves+you WWW
Memory Bottleneck?
« on: Mar 18th, 2004, 6:38am »

I often get 'out of memory' errors when trying to run some of my larger programs.
 
Is there some preference I can set to correct this? I have a GIG of memory and I think I should be able to put it to good use if i can get java to let me use more than 32MB of it
 
mKoser

WWW Email
Re: Memory Bottleneck?
« Reply #1 on: Mar 18th, 2004, 10:34am »

are you starting processing via the .exe file or the .bat file?
 
if you choose the .bat route, you can edit the file to give you more memory:
 
here's what my run-expert.bat file says (found in the root directory of processing):
 
Code:

@echo off
 
REM --- if you're running out of memory, change the 256m  
REM --- (which means 256 megabytes) to something higher.  
 
set SAVEDCP=%CLASSPATH%
set CLASSPATH=lib;lib\build;lib\pde.jar;lib\kjc.jar;lib\antlr.jar;lib\oro.ja r;lib\comm.jar;%windir%\system32\qtjava.zip;%windir%\system\qtjava.zip
 
start javaw -ms256m -mx256m PdeBase
 
set CLASSPATH=%SAVEDCP%

 
when i sometimes run large programs, i change the -mx256m to something higher!
 
+ mikkel
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
megamu

megamu+loves+you WWW
Re: Memory Bottleneck?
« Reply #2 on: Mar 18th, 2004, 8:46pm »


 
Thanks!
 
juraj


Re: Memory Bottleneck?
« Reply #3 on: Feb 3rd, 2005, 10:36pm »

under Mac OS X, you have to edit
MRJApp.properties, that's in the Resources of Processing application and add the following option:
 
com.apple.mrj.application.vm.options=-Xmx512M
 
Pages: 1 

« Previous topic | Next topic »