Linux out of memory on VPS

view story

http://serverfault.com – On my VPS (CentOS) 4GB ram (2 + 2 dynamically assigned when needed) and i have tomcat running with following options JAVA_OPTS="-Xms256m -Xmx2048m -XX:MaxPermSize=256m". Now when i try to start other java based app (like hudson server) i get following error: There is insufficient memory for the Java Runtime Environment to continue. Native memory allocation (malloc) failed to allocate 664080 bytes for Chunk::new An error report file with more information is saved as: /server/hs_err_pid26476.log It seems as if system could not allocate 650KB of memory, but it should have like 1.2 GB f (HowTos)