Friday, April 3, 2015

How to Connect JProfiler with WSO2 Products

Introduction

In this tutorial I will show how to Connect JProfiler with WSO2 Product.

UseCase
  • Memory usage
  • CPU usage
  • Thread profile

Prerequisite


  • WSO2 API Manager (you can Download from here) .
  • Jprofiler ( you can Download from here ) .
Install Jprofiler and get the jprofiler installation path. We consider that as "JProfiler_Home" .

Unzip WSO2 API Manager and add following line into wso2server.sh or wso2server.bat file in  <APIM_HOME>/bin folder according to the shown place

-agentpath:<JProfiler_HOME>/bin/linux-x64/libjprofilerti.so=port=8849 \





After successful configuration start the WSO2 API Manager server . You can find server is listening to the 8849 port 

Listening to Jprofiler Port 

Open the Jprofiler GUI and Select Start Center to create session to this server according to following steps

Select to Attached to profile JVM option and give the host of the server and port to monitor and select ok.


Then you have to select Instrumentation or Sampling as the setting . On Instrumentation its give full features from the profile and Sampling we can only monitor the CPU usage of the server.



After successfully configured into the Server we can see following view .


According to this view we can find how many instances will create according to the class name .





No comments:

Post a Comment