Java Update 4 -- "Safe" java-vm-args Arguments for Java Web Start?

Sun's Java documentation notes that JNLP files can request arbitrary arguments to the virtual machine using the java-vm-args argument. However, only arguments considered "safe" will be recognized. The JNLP spec doesn't list the safe arguments, since the list might change on a per-release basis.

Unfortunately I can't find a current list of safe arguments either on Apple's site or Sun's site. I am fairly sure that -Xss is no longer on the safe list, since it's not working any more, but it would be nice to have that confirmed.

Anyone have any ideas/pointers?

Mac Pro, Mac OS X (10.5.7)

Posted on Jul 5, 2009 7:05 PM

Reply
4 replies

Jul 6, 2009 4:36 AM in response to b3av1s

I'm pretty sure that list is not accurate for the Java Web Start released in Update 4 recently. I have an app which attempts to specify heap and stack sizes using java-vm-args="-Xmx1024m -Xms1024m -Xss8m"; when I use the Java console to display memory usage, it shows that the heap is 81MB (which is the default). If I use initial-heap-size="1024m" max-heap-size="1024m" in the same JNLP file, the heap size is set properly.

Unfortunately I don't think there's any way other than -Xss to set the stack size in a JNLP file, and I need to do that too.

It's also possible that I screwed something up which caused this problem, but I reproduced it on both my Mac Pro and my Macbook Pro.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Java Update 4 -- "Safe" java-vm-args Arguments for Java Web Start?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.