服务器关闭时,Webstart应用程序的运行速度非常慢
|
我有的:
包含jnlp文件和所有必需库的Tomcat服务器,由于某些原因可能被关闭
非常胖的摇摆应用程序,需要所有证券许可
JNLP文件:
<jnlp spec=\"1.0+\" codebase=\"http://somehost:6020/webstart/DS/xxx/\" href=\"DS.jnlp\">
<information>
<title>DS WebStart</title>
<vendor>DS</vendor>
<homepage href=\"index.html\"/>
<offline-allowed/>
<icon href=\"http://somehost:6020/DS_5.6.0.333/icon_32x32.gif\"/>
<icon kind=\"splash\" href=\"http://somehost:6020/DS_5.6.0.333/Splash.jpg\"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version=\"1.6.0_12\" max-heap-size=\"128m\" href=\"http://java.sun.com/products/autodl/j2se\"
java-vm-args=\"-XX:MaxHeapFreeRatio=25 -XX:MinHeapFreeRatio=20 -Xss2M\"/>
<jar href=\"http://somehost:6020/DS_5.6.0.333/sds.jar\" download=\"eager\"/>
<jar href=\"http://somehost:6020/DS_5.6.0.333/sresources.jar\" download=\"eager\"/>
<jar href=\"http://somehost:6020/DS_5.6.0.333/scommons-logging.jar\" download=\"eager\"/>
<jar href=\"http://somehost:6020/DS_5.6.0.333/slog4j.jar\" download=\"eager\"/>
<jar href=\"http://somehost:6020/DS_5.6.0.333/stclib.jar\" download=\"eager\"/>
<jar href=\"http://somehost:6020/DS_5.6.0.333/sconcurrent.jar\" download=\"eager\"/>
<jar href=\"http://somehost:6020/DS_5.6.0.333/scon.jar\" download=\"eager\"/>
<jar href=\"http://somehost:6020/DS_5.6.0.333/sDSLauncher-1.0.jar\" download=\"eager\"/
<nativelib href=\"http://somehost:6020/DS_5.6.0.333/jdic-native.jar\" download=\"eager\" />
</resources>
<application-desc main-class=\"com.ds.app.Main\" />
</jnlp>
客户端操作系统:Windows XP和Windows 7。
客户端计算机上的JNLP文件始终通过快捷方式像这样启动:javaws.exe DS.jnlp
问题:
当tomcat关闭时,应用程序会从缓存中启动,但是太慢了,无法使用它。无法确定当tomcat关闭时javaws对应用程序有什么影响?请帮助我解决此问题
谢谢,
安德烈
更新1:在不同的系统上进行测试之后,我注意到该应用程序可以在Windows XP上完美运行。似乎javaws试图在启动应用程序时在后台检查所有这些签名的jar,而不是仅仅从现金中读取它。在Windows XP上,相同版本的Java根本不执行该操作。它只是启动应用程序。
更新2:似乎Windows 7连接超时比Windows XPs超时高10倍。基本上,如果我能以某种方式设置一些常规连接超时可以解决该问题。
更新3:更改标签根本没有帮助。它仍然起作用。
没有找到相关结果
已邀请:
1 个回复
涸坍饺
运行,如果未指定
,则这是默认设置。这将尝试更新,直到达到超时为止,并且如果失败(Tomcat关闭),则将在后台继续(继续失败)。尝试使用
。 作为参考,请参见
标签上的文档