1. Home
  2. Tomcat Deployment FAQ

Tomcat Deployment FAQ

What is Tomcat?

Tomcat is an application server from the Apache Software Foundation that executes Java servlets and renders Web pages that include Java Server Page coding. Described as a “reference implementation” of the Java Servlet and the Java Server Page specifications, Tomcat is the result of an open collaboration of developers and is available from the Apache Web site in both binary and source versions. Tomcat can be used as either a standalone product with its own internal Web server or together with other Web servers, including Apache, Microsoft Internet Information Server (IIS), and Microsoft Personal Web Server. Tomcat requires a Java Runtime Enterprise Environment that conforms to JRE 1.1 or later. 

Why use the Bitnami Tomcat Stack?

The Bitnami Tomcat Stack is always up-to-date and secure. The installation and configuration of the stack is automated completely, making it easy for everyone, including those who are not very technical, to get them up and running.

Bitnami Tomcat Tutorials and documentation

List Of Bitnami Tomcat Stack Included Components

  • Tomcat
  • Apache
  • MySQL
  • Php
  • PhpMyAdmin

Where To Find Tomcat Management Console & MySQL credentials?

The instance/node/machine root credentials would be sent to your registered email address as soon as the Tomcat deployment is launched. 

The Tomcat console and MySQL credentials are stored in a standalone file. To obtain the credentials at any time, follow these steps:

  • Connect to the instance/node/machine through SSH using root user credentials.
  • Run the following command to obtain your application credentials:
      cat /home/bitnami/bitnami_credentials

How To access Tomcat Management console?

Step1: Access the Tomcat console by browsing to http://SERVER-PUBLIC-IP/.

Step2: Click on Access my application.

Step3: Click on “Manager app” will prompt for user and password Authentication Page. please enter the detail which you have retrieve from the standalone file /home/bitnami/bitnami_credentials 

Step4: Successfully logged in to the Tomcat management console.

How to open MySQL 3306 port using UFW Firewall?

           By default, the Bitnami Tomcat comes with MySQL and its port is configured to be accessible in localhost only. To open MySQL 3306 port to the open internet or only to specific IP addresses, please follow the below steps. 

1.Connect to the instance/node/machine through SSH using root user credentials.

Security Risk: Opening MySQL network port to the public internet is a significant security risk. It is strongly advised to open the MySQL port to trusted IP addresses only.

2 (a) Execute the following command to open a port to the Internet:

      ufw allow 3306

2 (b) Execute the following command to Open a port to a specific IP address

      ufw allow from <IP Address> to any port 3306 proto tcp

How To Resize JAVA Memory Setting?

The default settings for your Java application are defined by the Java Virtual Machine (JVM):

  JAVA_OPTS="-Xms256m -Xmx512m"

You can increase/decrease these Java settings for your Jenkins if necessary. The settings are available in the /opt/bitnami/java/bitnami/setenv.sh file. Here is an example of how you can increase the memory settings:

export JAVA_OPTS="$JAVA_OPTS -Xms256M -Xmx768M"

To apply the changes restart service:

/opt/bitnami/ctlscript.sh restart tomcat

NOTE: As per Bitnami script, this file  /opt/bitnami/java/bitnami/setenv.sh changes with memory value depending on instance size that you are currently using  it, also it will be automatically changed when you resize your server.

Updated on July 4, 2019

Was this article helpful?

Add A Comment