Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting Java heap size parameters in Applet, or on Applet tag

843811May 17 2004 — edited Feb 15 2005
When I build my Java application as a Frame-derived class, I start the JVM with the switches

-Xmx512m -Xms128m

in order to provide sufficient heap space to this memory-intesive application.

I also host this application within a web page, by building it with its main class derived from Applet instead of Frame. In this case, I'd like to set the memory parameters either programatically (within the applet), or on the APPLET tag in my HTML.

Anyone know how to do this?

Thanks ...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 15 2005
Added on May 17 2004
6 comments
274 views