Reputation: 119
When multiple applications are deployed to an application server, do they all share the same JVM?
If not, is each application targeted to a different JVM?
If yes, then will it not become a performance issue - ex: multiple applications using same heap space which means more frequent garbage collection etc?
Is it not a good idea to deploy these applications as self contained Sprinboot with tomcat?
I know we have an option of using different domains to have separate JVM’s for each application - but still having many application servers up and running could also consume more resources?
Upvotes: 0
Views: 1642
Reputation: 80
Talking for weblogic server, all deployed applications share same JVM. Frequency of garbage collection is related with Min/Max Heap sizes that you set. Setting the minimum heap size (-Xms) smaller or the maximum heap size (-Xmx) larger affects how often garbage collection will occur and determines the approximate amount of live data an application can have.
For further information: https://docs.oracle.com/cd/E13221_01/wlrt/docs11/intro_wlrt/tuning.html https://docs.oracle.com/cd/E12529_01/wlss31/configwlss/jvmgc.html https://blogs.oracle.com/imc/weblogic-server-performance-and-tuning:-part-i-tuning-jvm
Upvotes: 1