Posted by demonduck
on February 15, 2009 at 12:44 PM PST
If I run IE6 using Plugin2 on an applet using this:
AND the arguments in the java_arguments param are the same as the arguments I set for the JVM in the Java Control Panel --
THIS IS IMPORTANT!
Then the applet FAILS with an out of memory error!!!
To be clear, duplicate arguments in both the java_arguments
param AND the JVM arguments set in the Java Control Panel
make the applet fail. This is probably a bug.
I trapped a stack trace and it's clear that the problem is that two sets of memory setting parameters cause both to be ignored.
Here is the output from the Java Console. Remember that I'm setting the memory limits like this:
But I'm setting them in both the java_arguments param and the JVM arguments in the Java Control Panel. So they apparently cancel each other out because the memory that the Java Console shows is much less in fact it is the default memory size:
Java Plug-in 1.6.0_14
Using JRE version 1.6.0_14-ea OpenJDK Client VM
User home directory = C:\Documents and Settings\Administrator
java.lang.OutOfMemoryError: Java heap space
at java.lang.Thread.run(Unknown Source)
Try it yourself on your own machine. Use this applet:
The applet tag in that page has java_arguments as I specified above. Set your JVM params to be the same using the Java Control Panel. You should get similar results using IE6.