Open the Java Plug In Control Panel (Start|ControlPanel|JavaPlugIn) and click "Advanced" tab and at "Java Runtime Parameters" write -Xmx256m
You can increase the amount of max memory available to JVM just setting a value greater than 256. DO NOT forget the m sufix, for megabytes. On Unix system (Linux included) the Control Panel can be found in the JRE folder. Alessandro --- Gasdia Roberto <[EMAIL PROTECTED]> escreveu: > try to launch java -ms300m ...... where 300 mb is the maximum heap size that > you want for the applet (or application) . Of course your memory demand can > be different... > > Hope this helps > > Roberto > ----- Original Message ----- > From: jinping > To: [EMAIL PROTECTED] > Sent: Friday, July 30, 2004 3:31 AM > Subject: [JAVA3D] encounter "OutOfMemory" when Applet reads 3D models > larger than about 5MB > > > Hi, > > I wrote an Applet that reads and displays VRML files. Everything is fine > when the .wrl file is no larger than about 5MB. But when the total size of > the .wrl file and it's .jpg texture excess 5MB, the JVM will always throw a > "outOfMemory" exception. I'm sure the physical memory is sufficient for the > program (512M RAM, WinXP). Has anyone encountered and solved this problem? > Please help, thank you. > > > Jeff > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > _______________________________________________________ Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis! http://br.info.mail.yahoo.com/ =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".