Enabling JVM options with Java Web Start / JNLP

后端 未结 1 374
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-12 02:18

I\'m creating a Web Start application which would benefit from some of the newer JVM options (especially escape analysis, G1 garbage collector etc.)

At the same time

相关标签:
1条回答
  • 2021-01-12 02:56

    As Thorbjørn mentioned, Java 6 u10 allows multiple j2se elements in JNLP. The JNLP File Syntax resources section of the latest Java Web Start Developer's Guide, indicates that multiple j2se elements, each with java-vm-args attributes can be specified with the most preferred occurring first. For example:

    <j2se version="1.3" initial-heap-size="64m" max-heap-size="128m"/>
    <j2se version="1.4.2+" href="http://java.sun.com/products/autodl/j2se" 
          java-vm-args="-esa -Xnoclassgc"/>
    
    0 讨论(0)
提交回复
热议问题