We have been getting an “Out of Memory Error” on one of our servers
recently so we increased the heap size from 1.5Gb to 3Gb but it is still
occurring and then I noticed in the “hs_err_pidXXXXX.log” file it creates
when it occurs that it has suggestions at the top of things to try and one
of them is “Decrease Java heap size (-Xmx/-Xms)”.
I’m now confused as how would “decreasing” it help?
In the “catalina.out” file it has the following for the error:
I think it’s suggesting you reduce the amount of memory you are allocating
to the heap because the JVM is having trouble getting the requested amount
from the OS.
Can you see what other processes might be consuming memory at the point the
error happens ?
something like NewRelic’s server monitoring might be useful to show you
memory profile of other processesOn Thu, 17 Dec 2015 at 12:25 Andrew Dixon <@Andrew_Dixon> wrote:
Hi All,
We have been getting an “Out of Memory Error” on one of our servers
recently so we increased the heap size from 1.5Gb to 3Gb but it is still
occurring and then I noticed in the “hs_err_pidXXXXX.log” file it creates
when it occurs that it has suggestions at the top of things to try and one
of them is “Decrease Java heap size (-Xmx/-Xms)”.
I’m now confused as how would “decreasing” it help?
In the “catalina.out” file it has the following for the error: