0

I have a Javafx application which is deploybed via java webstart.

I need to pass GC vm args for the application and I have issues in doing so.

I have the following in my jnlp

<j2se version="1.8+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="1024m" max-heap-size="1024m" java-vm-args="-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC"/>

When the application starts, it looks like most of them are not passed to the VM

ps -ef | grep java gives the below output

133768645 2448 1 0 4:31PM ttys020 0:37.80 /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -XX:+DisableExplicitGC -XX:CMSInitiatingOccupancyFraction=75 -Xmx1g -Xms1g

The min & max heap gets set as expected but not all the other VM arguments.

Can u please let me know why the other vm args are not being passed to the VM ? Am I doing something wrong ?

Appreciate your help.

Thanks

2
  • Examples of how to provide java vm arguments when packaging a JavaFX application are provided in the JavaFX deployment documentation. Commented Jan 12, 2016 at 0:56
  • 1
    I think those java-vm-args are not allowed, see the JNLP File Syntax. I never used JavaFX but I doubt this could make a difference. Commented Jan 12, 2016 at 10:25

1 Answer 1

1

Make sure your jnlp file that you changed is the one javaws is using. If it has an href attribute in the jnlp file header, it will take the jnlp file from there even if you launch it from your local machine.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.