
- #Tomcat 8 performance tuning how to
- #Tomcat 8 performance tuning code
- #Tomcat 8 performance tuning series
The connector category provides an overview of the different connectors and the various mbean attribute values. We will now provide a brief overview of some of the default MBean categories available for Tomcat which are listed in Figure 1. There is no extra set up required to allow us to access the various JMX Mbeans attributes and operations in JConsole. We will run JConsole locally rather than remotely however if you wish to set up your tomcat instances to remotely accessed then please follow this link.

To monitor performance on each tomcat instance we will use JConsole which comes with JDK 1.7 Hotspot. We will also use here Apache JMeter 2.1.1 to allow us perform some simple load testing against the deployed web application above for a set different configuration settings in tomcat and measure performance using JConsole.
#Tomcat 8 performance tuning code
Both the source code and packaged war file can be downloaded from here. In this blog, we will use a very simple web application for performance testing purposes which will consist of a simple servlet class which will will retrieve a list of existing product orders from a mysql database instance and display them to the user in a browser.
#Tomcat 8 performance tuning how to
We will cover the following areas in this blog:ġ) Provide an overview of the application we will use for testing and Apache JMeter setupĢ) How to enable JMX Monitoring on Tomcat and provide an overview of some of the JMX Monitoring metrics in JConsole.ģ) Monitoring and Tuning JVM Heap performanceĤ) Application Testing using a fixed number of test scenarios and demonstrate how performatce tuning can aid application request throughput and performance.ĥ) Instrumenting an application using the instrumentation framework called Byteman. In this blog, we will narrow our discussion to a specific number of tools we can use for monitoring and also focus on specific configuration parameters for tuning various resources.
#Tomcat 8 performance tuning series
Finally we will introduce the Byteman framework which can be used to instrument and profile applicationsįollowing on from Andy's blog post looking at some of the many ways we can configure Tomcat for example to restrict administration access and error page handling within applications, we will be using the same server topology used in this series whereby we have a single Apache server instance which load balances requests to two different tomcat instances in the cluster.Ĭurrently, there is a vast array of both open source and commercial monitoring tools on the market today and the many different ways in which we can tune a Tomcat instance depending on project requirements.

This is the third and final part in the blog series on Tomcat whereby we will discuss some of the various options available to monitor Tomcat performance and also describe some of the configuration parameters we can tune to optimize Tomcat application performance.
