Apache Tomcat is an open-source Java servlet container and web server. It runs Java web applications packaged as WAR files, including servlets and JSP pages. Its core engine is Catalina, and most configuration lives in files such as server.xml and in startup scripts like catalina.sh and catalina.bat.
The posts cover installing and configuring Tomcat on Linux from a zip file or with yum, and explain how JSP works. They also compare Tomcat with application servers such as WildFly, WebLogic, WebSphere and GlassFish. Many of the posts deal with monitoring: enabling JMX on Windows, collecting Tomcat metrics with Zabbix and the New Relic infrastructure agent, and adding Datadog or New Relic APM Java agents. Troubleshooting posts cover an application failing to start at its context path because of a PermGen OutOfMemoryError, and a script that restarts Tomcat after a crash. There is also a set of 50 interview questions.
The material suits Java developers, middleware administrators, and DevOps or SRE engineers who deploy and monitor Java web applications.
Start here
- Tomcat Install and Configuration Tutorial and Guide – Installs Tomcat on Linux from a zip or with yum, then shows how to access it.
- What is jsp and How it works? An Overview and Its Use Cases – Explains JSP architecture and how Tomcat serves dynamic pages.
- Top 10 Application Servers: Features, Pros, Cons & Comparison – Compares Tomcat with WildFly, WebLogic, WebSphere, GlassFish and IIS.
- Step by Step Guide to enable JMX in tomcat in windows – Gives a sample catalina.bat JAVA_OPTS setup for remote JMX monitoring.
- How to setup Datadog APM for Java application running with Tomcat – Adds dd-java-agent.jar to catalina.sh, generates traffic with JMeter and shows how to review traces.
- FAIL – Application at context path /application could not be started – Shows the details of a common deployment failure caused by PermGen OutOfMemoryError.
- How to automatically recover Tomcat from crashes – Provides a script that detects when Tomcat is down and restarts it automatically.
- Top 50 Apache tomcat interview questions and answers – Reviews Catalina config files, startup scripts and WAR deployment for interviews.
Latest Apache Tomcat articles
Tomcat 7.0.6 in Context: What the First Stable Tomcat 7 Release Changed
Apache Tomcat 7.0.6 was announced as the first stable release in the Tomcat 7 branch, bringing Servlet 3.0-era capabilities into mainstream use. This revised guide explains the key changes, their operational impact, and practical steps for teams still touching legacy Tomcat 7 workloads.
Ant build.xml for WAR Packaging and Tomcat Deployment (Annotated Reference)
This guide turns a legacy Ant WAR build sample into a practical reference you can reuse. You will learn the target flow, required layout, runnable commands, and common pitfalls before using it in CI/CD.
Top 10 Application Servers: Features, Pros, Cons & Comparison
Introduction Application Servers are the backbone of modern software systems. They provide a runtime environment where business logic runs, data is processed, and applications interact with databases,…
Elastic: Elastic APM Java agent on Apache Tomcat
1) Prerequisites 2) Get your APM endpoint & token/key from Elastic Cloud 3) Download the Elastic APM Java Agent Create a directory for the agent and download…
Newrelic APM- Install and Configure using Tomcat & Java Agent Tutorials
Step 1 – Install JDK Step 2 – Install & Start Tomcat Step 3 – Install your apps Lets use Tomcat’s default example app only. You may…
How to Monitor & Integration of Apache Tomcat & JMX using NewRelic Infra Agent?
To set up New Relic JMX monitoring, follow these steps: Step 1: Install the New Relic infrastructure agent If you haven’t already, install the New Relic infrastructure…
Jenkins Tutorials: Installing Jenkins on Tomcat
We are going to discuss Installing Jenkins today. We will be focusing on installing it on Tomcat server as a servlet, and tomcat will act as a…
Tomcat Tutorials: How to create /enable a tomcat user to access tomcat?
Step 1 – Stop your tomcat service Stop Script – C:\tools\apache-tomcat-9.0.79\bin\shutdown.bat Step 2 – Go to “conf’ directory of tomcat home path. e.g – C:\tools\apache-tomcat-9.0.79\conf Step 3…
Cloudbees CD RO Tutorials: Deploying a Tomcat application
Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…
Step by Step Guide to enable JMX in tomcat in windows
To enable JMX (Java Management Extensions) in Apache Tomcat on a Windows system, you can follow these step-by-step instructions: Sample Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE,…
Gerrit Setup using Tomcat and Mysql
MySQL database CREATE USER ‘gerrit’@’localhost’ IDENTIFIED BY ‘gerrit’; CREATE DATABASE gerritdb; ALTER DATABASE gerritdb charset=latin1; GRANT ALL ON gerritdb.* TO ‘gerrit’@’localhost’; FLUSH PRIVILEGES; exit; Apache Configuration sudo…
How to enable Apache Tomcat monitoring in Datadog Agent?
Apache Tomcat Integratoion with Datadog collects Following Tomcat metrics Step 1 – How to Install Open JDK 11 Reference How to Download Apache Tomcat 9? Reference How…
Tomcat Install and Configuration Tutorial and Guide
Method 1 – Install and Configuration Tomcat in Any Linux using Zip file Download Location of Tomcat – https://tomcat.apache.org/download-90.cgi Method 2 – Install Tomcat Using Package Manager…
How to setup APM of Java Apps in AppDynamics?
Step 1 – Install Java Step 2 – Install Tomcat Step 3 – Run Apps in Tomcat Step 4 – Download & Extract AppDynamics APM agent Step…
How to enable Java & Tomcat monitoring using JMX in Zabbix?
What is JMX? Java Management Extensions (JMX) is a Java technology that supplies tools for managing and monitoring applications, system objects, devices and service-oriented networks. Those resources…
What is jsp and How it works? An Overview and Its Use Cases
History & Origin of jsp JSP, a specification of Sun Microsystems, first appeared in 1998. The official versions, 1.0 and 1.1, both appeared in 1999, and both were…
Top 50 Apache tomcat interview questions and answers
1) What is Apache Tomcat? Apache Tomcat is basically a Web Server and Servlet system which is an open-source (i.e. freely available on the internet) and is…
List of top 11 application server in 2021
Application server is a server that hosts applications. It is a Sotware framework for building application servers. It provides the facility to create web application and a…
How to setup Datadog APM for Java application running with Tomcat
SOURCE FOR APM – https://docs.datadoghq.com/tracing/trace_collection/?tab=containers This note is applicable for only Host Based APM. Step 1 – Install Datadog Agent in Centos or Ubuntu or Windows Step…
Deploying NewRelic Agent in Docker Image using Dockerfile for Tomcat and Java
It doesn’t actually matter where you put the New Relic agent. All that matters is that the agent and its support files (including newrelic.yml) are in the…
Chef Lab and Excercise – Cookbooks – Part 3
Write a cookbook using install version of latest tomcat and deploy a Jenkins.war file into tomcat web directory. Write a cookbook using you can install apache http…
How to automatically recover Tomcat from crashes
rajeshkumar created the topic: How to automatically recover Tomcat from crashes How to automatically recover Tomcat from crashes Tomcat occasionally crashes if you do frequent hot-deploys or…
Good Cpanel Url Collection
rajeshkumar created the topic: Good Cpanel Url Collection Setup Tomcat for JSP/Servlets forums.cpanel.net/f402/cpanel-tomcat-jsp…ts-guide-282922.html How to fix port issue in tomcat forums.cpanel.net/f5/how-fix-port-issue-tomcat-161074.html Regards, Rajesh Kumar Twitt me @…
FAIL – Application at context path /application could not be started
rajeshkumar created the topic: FAIL – Application at context path /application could not be started Problem: Error message while starting application using Tomcat Web Application Manager 1….
Error Collection of Tomcat Log files
rajeshkumar created the topic: Error Collection of Tomcat Log files Problem: [code language=”css”] WEB-INF/lib/javaee.jar) – jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class…
Apache Tomcat Good url Collection
rajeshkumar created the topic: Apache Tomcat Good url Collection Tomcat : How to increase the Java heap size www.serveridol.com/2011/07/28/tomcat-increase-java-heap-size/ Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn Rajesh…
Chef Lab and Excercise – Cookbooks – Part 6
Write a cookbook using you can install apache http server in CentOs and Ubuntu, enable the services and start the service. Write a recipe using template resources…
Chef Lab and Excercise – Cookbooks – Part 5
Write a cookbook using you can install apache http server in CentOs and Ubuntu, enable the services and start the service. Write a recipe using template resources…
Apache Tomcat: frequently asked questions
Is Apache Tomcat an application server?
Tomcat is a servlet container. It implements specifications such as Jakarta Servlet, Pages (JSP), Expression Language and WebSocket, but not the full Jakarta EE platform, so features like EJB are missing. Applications that need the full platform usually run on servers such as WildFly, WebLogic or GlassFish.
How do I deploy a WAR file to Tomcat?
Copy the WAR file into Tomcat's webapps directory. With the default auto-deploy setting, Tomcat unpacks and starts it. You can also upload and manage WAR files through the Tomcat Manager web application.
What ports does Tomcat use by default?
By default the HTTP connector listens on port 8080 and the shutdown port is 8005. Both are set in conf/server.xml.
How do I enable JMX monitoring in Tomcat?
Add the -Dcom.sun.management.jmxremote options, with a port and your authentication and SSL settings, to CATALINA_OPTS or JAVA_OPTS. A common place for them is setenv.sh or setenv.bat. Then restart Tomcat.
