How can I specify multiple IBM_JAVA_OPTIONS?
Posted: Fri Apr 08, 2011 2:54 am
We are running z/OS 1.10 with J2RE 1.5.0. I am trying to run a job that invokes the USS JVM from a COBOL program via JNI using Enterprise COBOL 3.4.1. Obviously I cannot pass the JVM options on a command line, so I set up a sequential file that had all the environment variables required. One of these is IBM_JAVA_OPTIONS=-Xms16m -Xmx256m. There are times when there might be up to 5 options specified here. Unfortunately, it seems like only one is recognized at a time.
e.g.
IBM_JAVA_OPTIONS=-Xmx256m increases the maximum heap size (so my sequential file is being read and setting options)
but
IBM_JAVA_OPTIONS=-Xms16m -Xmx256m does not (maximum heap size remains at the default of 64m)
I have tried the following without success:
enclosing the options in double quotes, exporting the variable, using another variable like IJO and then $IJO, and separating options with commas.
Does anyone know how I can get multiple IBM_JAVA_OPTIONS to be recognized at the startup of the JVM?
Thanks!
e.g.
IBM_JAVA_OPTIONS=-Xmx256m increases the maximum heap size (so my sequential file is being read and setting options)
but
IBM_JAVA_OPTIONS=-Xms16m -Xmx256m does not (maximum heap size remains at the default of 64m)
I have tried the following without success:
enclosing the options in double quotes, exporting the variable, using another variable like IJO and then $IJO, and separating options with commas.
Does anyone know how I can get multiple IBM_JAVA_OPTIONS to be recognized at the startup of the JVM?
Thanks!