Search code examples
amazon-web-servicesplayframeworkamazon-elastic-beanstalkperformance-testingplayframework-1.x

How to view the JVM memory usage of the Play framework


My application is developed in Play framework 1.2.5 and it is running in Amazon Elastic Beanstalk. The CPU utilization is high. So I would like to monitor the JVM of the Amazon instance. Can someone guide me on the monitoring tool for Play framework 1.2.5 application. Thanks in advance.


Solution

  • Depends on the OS on which the JVM is running, but basically for high CPU you need to jstack to get thread dumps on the process when it is maxing the CPU and at the same time collect OS layer information on the process and it's threads.

    ps -eL and jstack on linux will do the trick.

    Another tip, try jconsole and jvisualvm on your JAVA_HOME/bin directories for monitoring as well.