You are on page 1of 25

Setting up Websphere profile on JProbe

1. Open the jpconsole.sh from the bin directory on JProbe installation. 2. Within the Configuration navigation pane, right clic and select !e" Configuration.

#. $efine a !e" Configuration and provide a Configuration !ame. Clic !e%t.

&. 'ention the (erver )*! directory and (erver !ame. Clic !e%t.

+. 'ention the Category,Program !ame as -ptsvcs.. (pecify the /pplication 0ilter as com.csc.pt.svc.1.123 and /ction as include. 4. /lso specify the 5lement as the 5/6 file name of the ptsvcs 2pt&j3 application. Clic !e%t.

7. (elect Performance /nalysis in /nalysis 8ype. 9eave the default values on :eneral tab. Clic on 0ilters.

;. 5nter the filter as com.csc.pt.svc.1.123 on the 0ilters tab and select /ction as -line.. Clic !e%t.

<. 9eave the Port= unchanged and provide a (napshot )asename 2optional3. Clic !e%t.

1>. Clic on (ave and *ntegrate. 8his "ill save the configuration in a settings file and start integrating the application server "ith JProbe.

11. When prompted, provide the location and name of .jpl file.

12. Provide the name and location of the start(erver?JProbe.sh file. 9eave the default unchanged. Clic on (ave.

1#. Clic on Close Wi@ard.

1&. Congratulations. 8he Websphere /pplication (erver Configuration is created and ready to 6un and Connect "ith JProbe.

Run & Connect JProbe to the Application Server and record snapshot
1. Once the connection is creation 2as sho"n in section above3, clic on 6un A Connect.

2. 8he server startup begins as sho"n belo". 8he 'emory Pool "ill gro" to a pea and eventually stabili@e sho"ing that the server is started.

#. Once the server startup is complete, the memory pool stabili@es.

&. Clic on the icon "hen you are ready to start recording a snapshot. +. On the follo"ing screen, drag the bar to level + and Clic O .

4. /fter your transaction completes, turn the recording O00 by dragging the bar bac to position 1.

7. Clic O and the snapshot is saved automatically and visible in the (napshots !avigation Pane, as sho"n belo"B

;. 6ename the snapshot and save it to a desired location.

<. 8he ne%t section sho"s ho" to analy@e the snapshot using 5clipse and understand the performance problems.

Installing JProbe Plugin for Eclipse and analyzing JProbe snapshots


1. 2. #. &. *nstall Java ($C 1.4. *nstall 5clipse #.#.2 or higher and run it on J65 4. *nstall JProbe Client. :o to httpB,,""".Duest.com,jprobe and do"nload JProbe license file and JProbe plugins for 5clipse. +. En@ip the JProbe plugins into the plugins directory of 5clipse. 4. Epdate the eclipse.ini file as F Gvm CBHProgram 0ilesHJavaHjre4HbinHjava" GGG (et to J65 4 Gvmargs GIms2+4m GIm%1>2&m G$jprobe.homeJCBHProgram 0ilesHJProbe ;.# GGG Kour JProbe Lome directory 7. (tart 5clipse. / JProbe menu item appears on the 'ain 'enu. ;. (elect JProbe 'anage 9icenses from the 'ain 'enu.

<. /dd the do"nloaded 9icense file by clic ing on the M/dd 9icenseN button.

1>. Create a JProbe project in 5clipse and copy the JProbe Performance snapGshots into that.

11. Open JProbe perspective in 5clipse and select any JProbe Performance snapGshot for analysis.

12. Clic on the M*nvestigateN button at the bottom of the (ummary vie" after selecting the method to analy@e. 8he 'ethod vie" "ill appear displaying the performance statistics for the selected method.

1#. /ttach the source using the M(ho" (ourceN or M(ho" 9ine $etailsN option and the statement causing the performance degradation in the selected method "ill be displayed.

1&. (ort descending using the M5lapsed 'ethod 8imeN or M5lapsed Cumulative 8imeN columns and the "orst performing functions "ill be displayed.

1+. (elect the function and the e%act location of it "ill be displayed in the upper "indo".

14. $atabase Dueries can be vie"ed using the M(ho" (O9 $etailsN option.

17. (ort descending "ith the M5lapsed Cumulative timeN column in the upper "indo" and drill do"n through the methods to reach the one ta ing the most time.

You might also like