Over a million developers have joined DZone.

Start to Manage Apache Tomcat and TomEE in 5 Minutes from Cloud

DZone's Guide to

Start to Manage Apache Tomcat and TomEE in 5 Minutes from Cloud

· Cloud Zone ·
Free Resource

Learn how to migrate and modernize stateless applications and run them in a Kubernetes cluster.

Nowadays, cloud based IT Monitoring is a hot topic and there are different types of cloud based monitoring and management tools exist in the market, such as Application Monitoring, Network Monitoring and Server Monitoring from the cloud.  There are several reasons to use such monitoring tools from the cloud :

  • Nothing to install any resources like operating system, server, database, etc in your runtime environment,
  • Start to monitor your environment immediately without complex installation and configuration,
  • There is no maintenance cost of the monitoring runtime environment,
  • Very very low cost of ownership against the other inhouse and onpremise solutions.

In this regard, we launched our Apache Tomcat Cloud Monitoring, Management and TroubleShooting Platform, ManageCat to easily monitor the Apache Tomcat, Apache TomEE and all other application servers/platforms using the Apache Tomcat.

There are a lot of companies use the Apache Tomcat for their production applications such as e-commerce, insurance or banking applications. They are very happy to use Apache Tomcat (easy to use, install and configure) but when it comes to a management and monitoring,  they are facing with some complexity.  They try to use different set of tools and platform for server monitoring purposes all installed in onpremise. ManageCat is launched to solve this problem. It provides a single complete platform to manage, monitor and troubleshoot the Tomcat servers from cloud.

In 5 Minutes, you can start to monitor your Apache Tomcat instances from cloud.

Start to Use ManageCat From Cloud

To start with ManageCat, you can simply fill the SaaS registration form from ManageCat Registration Page and the magic will start. After your registration, you will receive SaaS Account Key over email which will be used to register your Apache Tomcat servers. Registration email will also contain the links to download monitoring agents for your Apache Tomcat 6, 7 and 8 versions.

Register the Apache Tomcat Servers

To start monitoring, you have to download the monitoring agent from the links which are provided in the email that you received. Agent is a simple WAR archive which is named as console.war.  Simply deploy the console.war to your  monitored Apache Tomcat servers and configure the following properties in catalina.properties file of Tomcat.

  • com.managecat.controller.url : https://saas.managecat.com/
  • com.managecat.collector.url  : https://collector.managecat.com/
  • com.managecat.console.agent.groupname : Group name of the Tomcat server. Every Tomcat instance must belong to a group. If this parameter is not provided, monitored server instance will belong to a default-group.
  • com.managecat.console.agent.servername : User friendly server name of the agent. Must be unique among the same hosts, for example : Tomcat_Production.
  • com.managecat.console.agent.hostname : Host name of the monitored Tomcat server. This host name is used by SaaS Controller to communicate with the agent.SaaS controller must access the agent host.
  • com.managecat.console.agent.port : HTTP/S port of the monitored Tomcat server connector. This port is used by SaaS Controller instance to communicate with the agent, for example: 8080. This port must be opened in Firewall to access by the controller.
  • com.managecat.console.agent.contextname : console. (If you change the name of console.war to something else, you also have to change this accordingly.)
  • com.managecat.console.agent.secure : true if your Tomcat uses secure HTTPS port. (default is false).
  • com.managecat.console.agent.accountkey : SaaS customer account key which is sent via email.

After you configure the above properties in catalina.properties or adding them as Java System properties, you have to restart the Apache Tomcat instance.  If you have successfully installed the agent, you will see a log like this in the Tomcat log file:

Jan 02, 2015 10:46:17 AM com.managecat.console.common.servlet.MultiTenantConsoleContextListener$ConnectorRunnable run

INFO: Successfully registered the agent AGENT_NAME with the controller. Registration is taken : 1234 ms

Starting to Monitor Your Server:

  • Open SaaS controller page from https://saas.managecat.com with the user name and password that you specified in registration form.
  • Click "Managed Servers" link from the controller menu,
  • You will see the servers in the Server Groups view.

You can click one of the registered server, then you will see the server properties in the table.

You can connect to the server view with clicking the "Connect" image. The new popup window will be opened. (If your browser not allow to open popups, you must enable to open popups.)

Below is the Server UI opened after you connect to the server.

Congratulations. Your installation of the agent is successful. You can also read User Manuals to get much more information.

Summary and Next Steps

Apache Tomcat is a great server but lacks of some management and monitoring capabilities. With ManageCat, you can easily start to monitor your servers from cloud in minutes. To get more information about the ManageCat please visit the http://managecat.com web site.If you face with any problem in registration and your trial, please do not hesitate to contact with us from http://support.managecat.com

Happy Monitoring.

Join us in exploring application and infrastructure changes required for running scalable, observable, and portable apps on Kubernetes.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}