Custom valid java-vm-args ?

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
akuhtz
Posts: 3
Joined: 24 Aug 2020, 17:23

Custom valid java-vm-args ?

Post 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.

Janak Mulani
Posts: 726
Joined: 24 Mar 2020, 13:37

Re: Custom valid java-vm-args ?

Post 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.

akuhtz
Posts: 3
Joined: 24 Aug 2020, 17:23

Re: Custom valid java-vm-args ?

Post 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.

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: Custom valid java-vm-args ?

Post 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

akuhtz
Posts: 3
Joined: 24 Aug 2020, 17:23

Re: Custom valid java-vm-args ?

Post by akuhtz »

Hello,

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

Andreas Ehret
Posts: 81
Joined: 25 Mar 2020, 12:21

Re: -

Post 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.

Post Reply