Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay CE 7.1.0 - war redeploy kills the Tomcat
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:
My machine has Ubuntu 18.04.5 LTS with 8GB RAM.
What am i doing wrong?
Best Regards
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
What kind of war? How large are they?
War contains spring mvc portlets.
War has 45MB.
War has 45MB.
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.
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.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™