Page 1 of 1

Custom valid java-vm-args ?

Posted: 24 Aug 2020, 17:30
by akuhtz
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.

Re: Custom valid java-vm-args ?

Posted: 24 Aug 2020, 17:58
by Janak Mulani
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.

Re: Custom valid java-vm-args ?

Posted: 25 Aug 2020, 11:12
by akuhtz
Hello,

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
I can provide a PR if that helps.

Re: Custom valid java-vm-args ?

Posted: 25 Aug 2020, 11:16
by Stephan Classen
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

Re: Custom valid java-vm-args ?

Posted: 25 Aug 2020, 12:17
by akuhtz
Hello,

Thank you for the hint with the properties. Should have seen that myself.

Re: -

Posted: 08 Feb 2021, 20:10
by Andreas Ehret
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?
How is your question related to the original question of this topic or to OpenWebStart? Please elaborate.