java.lang.OutOfMemoryError

Cause

Too many incidents with big attachments are exchanged simultaneously.

Solution

Increase the Java Virtual Machine heap size in catalina.bat (Tomcat).

set JAVA_OPTS=-Xms512m -Xmx1024m