JAVA_OPTS is not a formal env variable which JVM care. I guess you want to 
use IBM_JAVA_OPTIONS instead. This env variable is read by JVM when it 
start up.
Best regards.
____________________________________________________________________________________________ 
Gavin, Zhang Gan -- 
https://w3-connections.ibm.com/profiles/html/profileView.do?key=d77158d7-c5cd-4e6e-a90d-23dddc9cbaba&lang=en
IBM i J9 Team Lead, 
Email: zhanggan@xxxxxxxxxx
Phone: +86-10-82452719
Address: 1/F, 28, ZhongGuanCun Software Park, No.8 Dong Bei Wang West 
Road, Haidian District, Beijing P.R.China 100193
J9 on i: 
http://www.ibm.com/developerworks/ibmi/techupdates/java
Pete Helgren <pete@xxxxxxxxxx> 
Sent by: "JAVA400-L" <java400-l-bounces@xxxxxxxxxxxx>
05/15/2014 05:09 AM
Please respond to
Java Programming on and around the IBM i <java400-l@xxxxxxxxxxxx>
To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>, Java 
Programming on and around the IBM i <java400-l@xxxxxxxxxxxx>, 
cc
Subject
Re: IBM i 7.1 IT4J: JAVA_OPTS
I am not sure I can answer but I'll try to give you a hand (Dan Kimmel 
is on this list and is pretty good at Java environment stuff - maybe he 
will weigh in).  If you are still stuck, perhaps you can post what kind 
of Java program you are running.  Most of my stuff runs from scripts 
(Tomcat, JRuby, etc) that are invoked in PASE so I usually hack the 
scripts and add the options before I start the app but if you are 
running something directly from the command line or wrapped in a CL 
there may be different options.  JAVA_OPTS is the correct variable, BTW, 
but my guess is that you are invoking your program in a way that isn't 
picking up the variable....
You may want to subscribe to the Java400 list if you are still stuck. 
I'll cross post there in case you do.
Pete Helgren
www.petesworkshop.com
GIAC Secure Software Programmer-Java
On 5/13/2014 12:19 PM, MARK GOLDEN wrote:
Hi,
I have a system where on occasion I would like to increase the maximum 
java heap for a 64-bit JVM.
I am using the ADDENVVAR command via a CL program which sets JAVA_OPS 
-Xms4000m - Xmx4000m.
This seems to be completely ignored by the system which leaves the 
maximum java heap at 2048m for the 64-Bit machine.
As soon as the 2048m limit is reached I receive the out of memory error.
The machine I'm working on has more than enough memory for the request.
What am i missing?
Thanks,
Mark.
As an Amazon Associate we earn from qualifying purchases.