I'm hosting a java server application on a Linux Root-Server.
My problem is, that sometimes the server takes more RAM than the allocated maximum, which leads to an automatic process kill (crash).
That's my start-script:
nohup java -Xmx900m -Xms900m -XX:MaxPermSize=128m -jar -Xss1m jar-file.jar &
As you can see, I also set the minimum and maximum RAM (-Xms900, -Xmx900m), so there shouldn't be a problem.
Does anyone know what I'm doing wrong? If yes, please tell me and show me an "improved start script".
Best wishes, Ishidres