I have a small cms system running on JVM and developed with Grails. When I deploy to VPS, my Tomcat 6/7 server keeps crashing after I insert a long text into my database (e.g. 12 pages in Word). I tried to do the same procedure for shorter text and it works ok.
Tomcat leaves no logs so I don't know exactly the problem. I suspect it's the insufficient RAM memory. The VPS I have for testing has Ubuntu 12.04, 512 MB RAM and 1 thread Intel Xeon 1,8 GHz. There's also MySQL dtb running.
In my setenv.sh
, I have these options:
JAVA_OPTS="$JAVA_OPTS -Xms220m -Xmx220m -XX:PermSize=158m -XX:MaxPermSize=158m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/tomcat7"
How can I force tomcat to log when it crashes? Do you think it might be a problem of small RAM when I have only 2 people testing the app?