gpt4 book ai didi

java - 服务器关闭时 Webstart 应用程序非常慢

转载 作者:太空宇宙 更新时间:2023-11-04 08:39:12 25 4
gpt4 key购买 nike

我拥有的:

  • Tomcat 服务器包含包含所有必需库的 jnlp 文件,并且可能因某种原因关闭
  • 非常庞大的波动应用程序,需要所有证券权限
  • 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 XP 超时高 10 倍。基本上,如果我能以某种方式设置一些可以解决问题的常规连接超时。

更新 3:更改标签根本没有帮助。它仍然工作相同。

最佳答案

这听起来就像你正在运行 <update check="timeout">如果没有<update...>,则这是默认值指定的。这将尝试更新,直到达到超时,如果失败(Tomcat 关闭),则在后台继续(继续失败)。尝试使用<update check="always"> .

有关引用,请参阅 <update ...> tag 上的文档

关于java - 服务器关闭时 Webstart 应用程序非常慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5712984/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com