Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. In the YourKit profiler UI, select the option Profile remote Java server or application.

  2. Select Direct connect option and proceed to next step.

  3. In this window,

    1. Provide an appropriate Connection name to uniquely identify this connection that will be shown in Monitor applications section after successful connection.

    2. Under the Host column, provide profiling.lite.mybahmni.in as this is the route thought through which profiler UI can make connection with the agent.

    3. Set the Port as 443 and proceed to Next step.

  4. Hit Next, since there is no need of SSH tunnel for making this connection.

  5. Test the connection to see if the connection is fine and hit Finish to complete the process.

  6. Under Monitor applications section, a new entry with the Connection name set in step 3a will be show and Tomcat server will be shown under that connection name.

  7. On selecting the Tomcat server, a connection to the remote application is made and a new window pops up showing telemetries related to CPU and memory of the JVM, possible deadlocks in the application, insights into the threads being executed, options to monitor executions and take snapshots of CPU and resource allocation for further analysis in the future.

Info

To profile Bahmni OpenMRS running on the machine using Docker using YourKit, please refer here

The performance environment is using profiling tagged Openmrs images which are created using the following Dockerfile. This Dockerfile uses bahminindiadistro/openmrs:latest image and adds YourKit agent, which helps YourKit UI to make the connection mentioned in Step 3b.

References

  1. YourKit Documentation

  2. YourKit Profiler architecture

  3. Download YourKit Profiler UI

...