Applet Heap Size

D

Darol

From within my applet or from its invoking html page, I need to set the
maximum heap size allocated to the Java plugin JVM. The users of my
applet may know nothing about the -Xmx runtime parameter settings that
can be specified in the Java plugin control panel so I want to set the
max heap size as mentioned above. Is there a way to do this? Since
applets are often widely deployed to non-techies across the web, it
seems a bit much to expect them to specify the heap size in the plugin
control panel.
 
A

Andrew Thompson

Why did you start your post with a '>'. It makes it look like
you are replying to ..some non-existant post.
...within my applet or from its invoking html page, I need to set the
maximum heap size allocated to the Java plugin JVM. The users of my
applet may know nothing about the -Xmx runtime parameter settings that
can be specified in the Java plugin control panel so I want to set the
max heap size as mentioned above. Is there a way to do this? Since
applets are often widely deployed to non-techies across the web, it
seems a bit much to expect them to specify the heap size in the plugin
control panel.

Doesn't it seem a bit much that an applet in a sandbox can (as
soon as I surf into the page) grab a Gigabyte of memory?

That is my way of saying,
- not short of WebStart[1]
- ..and not unless it were digitally singed, and accepted by
the end user.

What is it you are trying to do in an applet that requires
extended memory?

[1] Applets can be launched using JWS, but it sucks.. E.G.
Compare the Applet and application forms of BouncingLine, here..
<http://www.javasaver.com/testjs/xsl/04/jws/install.html>
 
D

Darol

Sorry about the ">" That was not intentional.

My applet displays geospatial data which can use more memory than what
is provided by the default heap size. It's used over my company
intranet and I'm always having to tell new users to increase their heap
size.

Anyway, is there any way to increase the heap size from within the
applet for it's associated html page?
 
R

Roedy Green

maximum heap size allocated to the Java plugin JVM. The users of my
applet may know nothing about the -Xmx runtime parameter settings that
can be specified in the Java plugin control panel so I want to set the
max heap size as mentioned above. Is there a way to do this? Since
applets are often widely deployed to non-techies across the web, it
seems a bit much to expect them to specify the heap size in the plugin
control panel.

the JVM may have started long before you Applet. It is too late now to
change that. Try Java Web Start where you can control that, spawning
a new JVM for your Applet/application. See
http://mindprod.com/jgloss/javawebstart.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top