I tried to increase the java heap space in my linux environment by updating the parameter
wrapper.java.maxmemory=6140
in /one/PLT/plt_latest/tomcat/services/wrapper.conf
But when I check the actual java maximum heap space it capped at 4096M
How can I set my Xmx parameter to a value above 4096M?
If you're running a 32bit version of java the heap space will be limited to 4Gb. You can check this with the command
java -version
However, there have been situations where this also happens on 64bit java.
The workaround for this is on wrapper.conf not to use the wrapper.java.initmemory or wrapper.java.maxmemory and instead specify the Xmx parameter directly in wrapper.java.additional, as in the snapshot below: