|
Author |
Topic: Memory Bottleneck? (Read 2762 times) |
|
megamu
|
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
|
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
|
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
|
|
|
|
|