>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.
Andrew Thompson - 17 Oct 2005 18:22 GMT
>>From
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
[quoted text clipped - 4 lines]
> 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>
Darol - 17 Oct 2005 18:53 GMT
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?
Andrew Thompson - 17 Oct 2005 19:47 GMT
> Anyway, is there any way to increase the heap size from within the
> applet for it's associated html page?
No.
Roedy Green - 17 Oct 2005 22:40 GMT
>>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
[quoted text clipped - 4 lines]
>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

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Darol - 18 Oct 2005 17:15 GMT
Thanks. I'll look into it.