Spring boot, Tomcat connection pool when multiple spring boot applications are in same external tomcat container

36 Views Asked by At

Let's consider I have two Spring boot applications.
And say each configures 50 max-active connections.
Say that both are deployed to external Tomcat container and embedded Tomcat container is disabled in both.

What will be the connection pool behavior?

  1. Will each application create its own connection pool with max 50 active connections?
  2. Will there be one common connection pool of max 100 active connections?

What is recommended for such connection pools in such multiple Spring boot application deployments to same Tomcat server container?

0

There are 0 best solutions below