As I´m running into memory-problems running my web-app I want to know how I can set the memory for tomcat-8 running on an AWS-linux as a service.
GI-cat needs at least 1000MB free heap space to work properly. You have 506MB free (total 1752MB). Increase the memory if possible, by adding -Xmx1000m or more to the java arguments.
I´ve read How do I increase memory on Tomcat 7 when running as a Windows Service? but it only handles windows-services, not linux.
I suppose I have to manipulate catalina.sh
, don´t it but I´m unsure if this will effect the service when using service tomcat8 restart
.