In the installed run time, I set the JVM memory to be
-Xms20:256:384P -Xmx80:512:1024P
Which I interpreted as min at 20% of current RAM but not less than 256 or more than 384, max at 80% of current RAM but not less than 512 or more than 1GB.
That works fine, but I do get JNI exception: failed to create the Jave VM Reason: not enough memory on machines with lots of memory, i.e. 2GB. This made sense when the requirement was at max 80% as the system could not get 80% continues memory at run time. However, since I specify -Xmx80:512:1024P I would expect that 512 would satisfy the start condition.
So, can you shed some light on that? What is wrong in the command line? Do I misinterpret the usage of those values? What are the safest values to use that will not penalize people with 512MB machines but still will take advantage when you have 2GB?
Thanks
-Yishai
FOLLOW US
Get the latest news in Application Packaging