在生成新的浏览器窗口时是否可以确保小程序的单独 Java 环境?

发布于 2024-12-31 22:44:12 字数 235 浏览 5 评论 0原文

我正在尝试解决一个问题,其中两个不同的网页已签署小程序,这些小程序似乎会互相造成问题。第一页包含一个小程序,它会生成一个新的浏览器窗口并将 URL 设置为第二页。像这样的事情......

cmd /c start iexplore.exe page2.html

一些跟踪信息表明这两个小程序共享同一个堆,这可能会导致问题。

有什么办法可以保证完全分离吗?

I am trying to solve a problem where 2 different web pages have signed applets which seem to be causing problems for each other. The first page contains an applet which spawns a new browser window and sets the URL to the second page. Something like this...

cmd /c start iexplore.exe page2.html

Some tracing infomation suggests that the two applets are sharing the same heap and this might be causing the problems.

Is there any way to ensure a complete separation?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风月客 2025-01-07 22:44:12

请参阅 Separate_VM 参数。

一个布尔参数,指定特定的小程序应该
在其自己的 JVM 实例中运行。这支持某些功能强大的桌面
不能容忍其他小程序的任何干扰的小程序
在同一个 JVM 中运行并可能消耗堆空间或其他空间
资源。

See the Separate_VM param.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文