2021-02-25 14:18:28
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: