Reputation: 3234
I have an applet that takes a fair amount of memory so we want to start it with separate_jvm = true so that each instance gets its own JVM (rather than a shared one) so we don't run out of memory upon repeated invocations. This works on our development boxes, but fails on our clients' computers.
Are there security reasons for this?
This is a signed & trusted applet as we're doing 3d rendering.
Upvotes: 3
Views: 8328
Reputation: 76709
I would presume that Sun Java 6 update 10 is installed on your client's computers. If not, you could probably force the applet to run in a JVM whose version is atleast 6u10. I'm unsure about the error that will be thrown, or the error message displayed if the required version of the JVM is not found.
Apart from that, there is no guarantee that a separate JVM instance will be created when the separate_jvm parameter is specified in an APPLET tag.
The only guarantee is that the applet will run in its own JVM separated from other applets. If a JVM is already available and if no applet has been loaded in that JVM, then it is possible for the JVM to load the applet in the already initialized JVM instance.
For the Sun Java 6 u10 release notes, the following salient points are worth reading:
Here is a rough set of guidelines from the 6u10 release notes, for the sharing and creation of new JVM instances:
The best bet therefore is to provide java_arguments in the applet tag, such that there is a very high probability of launching the applet in a separate JVM.
Upvotes: 8
Reputation: 16518
The separate_jvm
parameter was introduced in 1.6u10. If your customer's JVM is any older than that, the parameter will be silently ignored.
Upvotes: 2