Is there a way to run multiple Grails applications on the same web server without PermGen errors?

We are developing several Grails applications and deploying WAR on Jetty. When we run each of the applications one at a time, they gain about 200-300 MB of memory, which is quite acceptable. But, adding any applications increases the amount of memory ... a lot. As soon as we launch our three applications, we usually end up in a crashed state of approximately 900 MB.

All three applications have Quartz jobs. I tried to increase the size of PermGen, but to no avail. And adding more memory to the web server is not an option. Is there an easy way to reduce the size of Grails applications?

+3
source share
1

ContextCleanupListener .

0

Source: https://habr.com/ru/post/1759922/


All Articles