我使用的是 Firefox ESR 10.0.10。当我在两个不同的选项卡中打开同一个小程序两次时,只会打开一个控制台。对我来说,两个实例似乎都在同一个虚拟机中。如果我现在打开带有相同小程序的第三个选项卡,则会打开第二个控制台,但在第四个选项卡上又不会...
我必须做什么才能确保分别为每个选项卡或小程序实例打开一个新虚拟机?
最佳答案
请参阅启动 SEPARATE_JVM
对于每个小程序实例。
A
boolean
parameter specifying that a particular applet should run in its own JVM instance. This supports certain powerful desktop applets which can not tolerate any interference from other applets running in the same JVM and potentially consuming heap space or other resources.
<APPLET archive="my_applet.jar" code="MyApplet" width="300" height="300">
<PARAM name="java_arguments" value="...">
<PARAM name="separate_jvm" value="true">
</APPLET>
关于java - Firefox ESR - 在两个不同选项卡中加载同一个小程序两次时,仅打开一个虚拟机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13377616/