I have an Ubuntu server 12.04 using a reverse proxy so that tomcat runs on top of apache. And I have a confluence instance on that machine, and a ticket system. So nothing special.
Memory is 8GB that's more than enough for this use.
From time to time, and in the last few days more often my confluence page crashes.
The log (confluence\logs\catalina.2014-05-06) shows this :
SEVERE: Socket accept failed
java.lang.OutOfMemoryError: Java heap space
So how can I avoid this? How can I give that process more memory.
man java
is "-Xmxn", where "n" should be replaced by a number. In order to put a limit of 100 MB for Javas memory allocator, you'd set it to "-Xmx100m". This has to be set in the options for tomcat - see: stackoverflow.com/questions/7738794/add-jvm-options-in-tomcat