How to Profile Datamer with VisualVM

Goal

Obtain detailed information about Datameer service performance and memory consumption from JVM profiling. 

 

Learn

To get detailed information about a running Java application or to profile it you can use VisualVM.

[datameer@<host> current]$ bin/conductor.sh start
Java 7 found
DeployMode: live
DAS Options: -Ddb.name=dap
Java native libraries: /opt/datameer/current/lib/native
Starting Jetty: STARTED Jetty Do 2 Jul 2015 10:20:38 CEST on port 8080 under PID 921

 

It will automatically find the running JVMs on the local host or on the remote host by hostname and port number

and allow you to perform and monitor garbage collection

to generate and analyze thread and heap dumps.

This can also be used to perform lightweight memory and CPU profiling.

To do so it will be necessary to define the classes from which the profiling should start.

org.eclipse.jetty.start.**