This content has been marked as final. Show 4 replies
You are trying to allocate 512MB and you only have 200MB of main memory free. Unless you have 512MB of virtual memory available in the swap files this is going to fail.
Hello EJP, thanks for your answer.
I have explained bad.
The server has 703M free when Tomcat is stopped. I had mentioned that my server has more than 200M free in physical memory when Tomcat is running with JAVA_OPTS="-Xmx512m", so I don´t understand why these errors appear.
Do you understand me?
Recently I have checked the swap memory, and it is disabled. In spite of swap memory is disabled I think java wouldn´t need this memory because it has free physical memory
Facundo wrote:Should be easy enough to test by enabling swap.
In spite of swap memory is disabled
You are probably running this on a 32 bit environment. The JVM requires contiguous blocks of memory when allocating it for the mx parameter, so even if you had 1GB of free memory but it is fragmented with no fragments big enough, then you will still have the same problem.