Custom CloudWatch Tomcat JVM Metrics

To set this up you will need to do the following:

  • Have an AWS account
  • Set up a IAM Role to be applied to a running instance which you want to monitor
  • Start EC2 instance hosting Tomcat which has outbound access to the internet
  • Download the AWS CLI package
  • Create a script to extract the JVM stats and publish to CloudWatch using the CLI
  • Set execution of the script in cron to publish the metrics at your desired frequency

Viet Luu has written 318 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.

Leave a Reply