I have a system with 8 GB of RAM and needed my java application to use all of it.
I gave the following settings in wrapper.conf -
wrapper.java.initmemory=8192
wrapper.java.maxmemory=8192
When I checked the JVM, it was being limited to 4 GB memory. A quick ps waux output shows that the jvm is started with -Xms4096 and -Xmx4096
Why is wrapper changing the values?
I disabled the above two options and specified -Xmx and -Xms using wrapper.java.additional parameters and it worked fine.
Logged In: NO
I've seen this too--the workaround, as described works fine.
As long as I don't set the init and max memory settings, the wrapper will let me use more than 4GB. However, if they're set, I max out at 4GB. Using values less than 4GB are properly set by the wrapper, however.