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 › Memory Issues with Applet in Browser
Page Index Toggle Pages: 1
Memory Issues with Applet in Browser (Read 168 times)
Memory Issues with Applet in Browser
Mar 3rd, 2009, 12:48am
 
Hi,

I have a program that works fine. I have set the maximum available memory in File - Preferences to 512Mb and the application runs fine in the Processing environment and when exported. However I would like to be able to run the program from a browser (IE, FF, etc). But in this case the application does not run, I get an out of memory error, because the memory allocated to Java is set lower (~60mb).

There are plenty of websites that tell me how to manually set the memory in the JRE for the browser, however this is no good if each viewer of the website has to make fiddly changes to their machine for it to work. Nor can I work out how to run commands like this from within Processing to manually set the maximum memory limit during run time:

http://www.rgagnon.com/javadetails/java-0131.html

I have tried stuff like:

 String[] command;
 command = new String[1];
 command[0] = "-mx512m";
 exec(command);

But with no joy. Any help would be greatly received.

Thanks, Mathew

Page Index Toggle Pages: 1