Super Java Host
  1. Home
  2. Guides
  3. Tomcat vs embedded Tomcat

Standalone Tomcat or Spring Boot embedded Tomcat?

Spring Boot contains Tomcat inside your JAR. A standalone Tomcat is a separate server that runs your WARs. Both run the same servlet engine; they differ in how you operate it.

The short answer

For a new Spring Boot application, run the executable JAR. For an existing WAR application or several small applications on one machine, run a standalone Tomcat. Both are fine in production.

Side by side

Spring Boot JARStandalone Tomcat
What you deployOne JAR with its own serverWAR files into a running server
Startjava -jar app.jar, usually as a systemd serviceTomcat service, then copy a WAR
Several applicationsOne JVM and one port eachOne JVM for all of them
MemoryEach app has its own overhead (about 300 to 500 MB beyond the heap)Overhead is shared, but one leak affects all
IsolationA crash or restart affects one appA restart affects every app
Java and Tomcat versionsChosen per app, Tomcat version comes with Spring BootOne version for all, upgraded with the operating system
Security patches for TomcatRebuild and redeploy the JARUpdate the package, restart
Configurationapplication.properties, environment variablesserver.xml, context.xml, setenv
DockerSimple, one process per containerWorks, but larger image

Choose the JAR when

  • You build a new application with Spring Boot, Quarkus or Micronaut.
  • You want the same artifact on your laptop, in CI and on the server.
  • You deploy often and want an automatic rollback by switching to the previous JAR.
  • You want each application isolated from the others.

Guides: Deploy Spring Boot to a VPS and Run a Spring Boot JAR as a systemd service.

Choose standalone Tomcat when

  • You already have WAR files and Jakarta EE style applications (JSP, JSF, servlets).
  • You run several small sites and want to share one JVM's memory.
  • Your operations team prefers patching Tomcat through the operating system's package manager.

Guides: Install Tomcat on Ubuntu and Deploy a WAR file to Tomcat.

Spring Boot as a WAR in standalone Tomcat

Spring Boot can also be built as a WAR and deployed to an external Tomcat. You lose the simple one-file deployment but gain shared hosting of several applications. If you do this, the Tomcat version must match what your Spring Boot version expects (Spring Boot 3 needs Tomcat 10.1 and Java 17 or newer).

On the server

Both run on our Tomcat hosting and Spring Boot hosting plans, because each plan is a plain VPS. Size the server with the heap calculator. For more server types see Tomcat vs WildFly vs Payara vs Spring Boot.

Questions about tomcat vs embedded tomcat

Is embedded Tomcat slower than standalone?

No. It is the same engine. Performance differences come from configuration and memory, not from the packaging.

Can I switch later?

Yes. A Spring Boot application can be packaged as a JAR or a WAR with small build changes.

Last updated October 29, 2026.

Your own Java server, billed monthly

Plans from €15.30 a month. Set up for you, or run for you.