Notifications
Clear all

Can't increase maximum heap space beyond 4096M

1 Posts
1 Users
3 Reactions
1,504 Views
1
Topic starter

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

image

How can I set my Xmx parameter to a value above 4096M?

 

1 Answer
2
Topic starter

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
image

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:

image