Hello,
We have an application that uses more than the available secure java-vm-args defined in JvmUtils.
Are there any plans to relax the current restrictions or is it possible to define more valid java-vm-args somewhere in the configuration?
Thanks in advance.
Custom valid java-vm-args ?
-
- Posts: 760
- Joined: 24 Mar 2020, 13:37
Re: Custom valid java-vm-args ?
Hi,
There is a whitelist of secure properties which has been taken from the following documentation:
https://docs.oracle.com/javase/8/docs/t ... e-property
https://docs.oracle.com/javase/9/tools/ ... m#JSWOR624
https://news.kynosarges.org/2019/03/24/ ... roperties/
https://docs.oracle.com/javase/8/docs/t ... e-property
Which other secure properties do you use? We could add those to the whitelist in a future release.
There is a whitelist of secure properties which has been taken from the following documentation:
https://docs.oracle.com/javase/8/docs/t ... e-property
https://docs.oracle.com/javase/9/tools/ ... m#JSWOR624
https://news.kynosarges.org/2019/03/24/ ... roperties/
https://docs.oracle.com/javase/8/docs/t ... e-property
Which other secure properties do you use? We could add those to the whitelist in a future release.
Re: Custom valid java-vm-args ?
Hello,
I see the following in the console:
I can provide a PR if that helps.
I see the following in the console:
Code: Select all
Ignoring java-vm-args due to illegal Property -XX:+UseParNewGC
Ignoring java-vm-args due to illegal Property -XX:+CMSParallelRemarkEnabled
Ignoring java-vm-args due to illegal Property -Djogamp.gluegen.UseTempJarCache=false
Ignoring java-vm-args due to illegal Property -Dcom.luciad.imaging.disableOpenCLImagingEngine=true
-
- Posts: 232
- Joined: 27 Mar 2020, 09:55
Re: Custom valid java-vm-args ?
for the two properties (jogamp.gluegen.UseTempJarCache and com.luciad.imaging.disableOpenCLImagingEngine) you can try to add these to the JNLP as properties.
Properties in the JNLP are applied before the client application is started. In most cases this is sufficient since no application code is executed before the properties are available
for the GC arguments we will take a look at them and if we see them save add those to the whitelist
Properties in the JNLP are applied before the client application is started. In most cases this is sufficient since no application code is executed before the properties are available
for the GC arguments we will take a look at them and if we see them save add those to the whitelist
Re: Custom valid java-vm-args ?
Hello,
Thank you for the hint with the properties. Should have seen that myself.
Thank you for the hint with the properties. Should have seen that myself.
-
- Posts: 81
- Joined: 25 Mar 2020, 12:21
Re: -
How is your question related to the original question of this topic or to OpenWebStart? Please elaborate.Brandongeora wrote: ↑03 Feb 2021, 10:12 I constantly get the message that WinEQ.exe is not a valid Win32 application. And i have to reload the program and then itll work for a couple sessions nad give the error again.
Any ideas?