RE: Liferay CE 7.1.0 - war redeploy kills the Tomcat

Roberto Silva, modified 5 Years ago. New Member Posts: 2 Join Date: 8/18/20 Recent Posts
Hello,

When I redeploy a war in Liferay, the server's memory goes up to 100% and Tomcat is killed.

I have 10 wars deployed on server.

When the server starts up it immediately consumes 70% of memory. It seems that the server does not manage to make the garbage collector.

I have Liferay CE Portal 7.1.0 CE GA1 with tomcat 9.0.6.

My setenv.sh:

CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF-8 -Djava.locale.providers=JRE,COMPAT,CLDR -Djava.net.preferIPv4Stack=true 
-Xms2048m -Xmx5120m"

CATALINA_OPTS="$CATALINA_OPTS -XX:+UseG1GC -XX:+UseStringDeduplication"


My machine has Ubuntu 18.04.5 LTS with 8GB RAM.

What am i doing wrong?

Best Regards
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
What kind of war? How large are they?
Roberto Silva, modified 5 Years ago. New Member Posts: 2 Join Date: 8/18/20 Recent Posts
War contains spring mvc portlets.

War has 45MB.
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
Then it probably has something to do with spring. Liferay uses spring internally too and I have seen often issues with spring here in the forum.
Alas, I don't really know a lot about spring and Liferay, so I really can't help here. Maybe you can search with terms like "spring  Liferay war deployment issues" or so for other posts or clues. If you can edit the title of the post, I would add spring to it. There are some people here who know a lot about the combination.