Link to home
Start Free TrialLog in
Avatar of r_q_d
r_q_d

asked on

JProbe Tomcat Integration

I want to use the free version of JProbe 5.2.1to test the performance of Tomcat 5.5.9. the error comes out as failed to locate line for modification jakarta-tomcat-5.5.9\bin\startup.bat. script might have altered.

Anyone have any solution for this? or which version of tomcat the JProbe support?

Thanks,
Quande.
Avatar of InteractiveMind
InteractiveMind
Flag of United Kingdom of Great Britain and Northern Ireland image

<Requesting a move to the Java TA>
Avatar of r_q_d
r_q_d

ASKER

Let me answer this question by by self. the answer is come from http://questsupportlink.quest.com/eSupport/Solution.asp?WAid=268454171&itemID=12099.

 Sometimes when you are using a non-default Tomcat Server start-up script, JProbe cannot be integrated with it using the standard 'Apache Tomcat 4.0/5.0' Integration Module. In this case, you may use the generic _Other_Server Integration module as an alternative approach. This technique will directly start up the main method of Tomcat's org.apache.catalina.startup.Bootstrap class.

Resolution
Here is how to set it up to run in windows, for example:

Before attempting these steps, please make sure that the server you intend to profile is fully STOPPED.
1 - Launch your JProbe tool. Example: Profiler
2 - Click 'Session' ==> 'New J2EE Settings..': a new window named 'JProbe LaunchPad pops up
3 - Click the 'Manage Configurations' button: a new window named 'Manage J2EE Configurations' pops up
4 - Click the 'Add' button : a new window named 'Create J2EE Configurations' pops up
5 - Fill in the 'Configuration Name' field. Example: _Other_Server_Tomcat
6 - From the 'Application Server' listbox, select '_Other_Server'
7 - Click the 'Integrations' button: a new window named 'Application Server Integration' pops up
8 - Click the 'Create' button
For 'Integration ID' Field, fill in an Integration ID. Example: '_Other_Server_Tomcat'
For 'Sever Directory' select the directory of your Tomcat server.
Example: 'C:\Tomcat4.1\jakarta-tomcat-4.1.18'
For 'Server Class' enter 'org.apache.catalina.startup.Bootstrap'
For 'Class Path' enter all required classes, for example,
'C:\Tomcat4.1\jakarta-tomcat-4.1.18\server\lib\catalina.jar; ..... ; C:\j2sdk1.4.2_05\lib\tools.jar'
For 'Java Executable' select the location of the java executable you are using.
Example: 'C:\j2sdk1.4.2_05\bin\java.exe'
9 - Click the 'Advanced' button to show more fields
For 'Java Options', leave blank
For 'Working Directory', leave blank
For 'Server Class Arguments', type in 'start'
For 'JProbe Options', leave blank
10 - Click the 'Save' button
11 - Click the 'Close' button: you will now be back in the 'Create J2EE Configurations' window
12 - Click the 'OK' button.
(You do not usually have to fill the 'Application Deploy Directory' and 'Elements' fields).
13 - Click the 'Apply' button
14 - Click the 'Ok' button: you will now be back in the 'JProbe LaunchPad' window
15 - Click on the 'Filters' in the Listbox on the left
16 - Enter your Data Collection Filter(s).
(These are the fully-qualified class names that you want to include in the JProbe analysis
For example, 'yourpackage.yoursubpackage.*.*()'
17 - You do not normally have to enter anything in the 'Elements' section.
18 - Click the 'Save As' button and save your configuration settings as a JPL file.
Example: _Other_Server_Tomcat.jpl
19 - Press the 'Run' button: the Heap Graph will appear indicating a successful integration.
20 - Once the server is fully started (usually noticeable when the Heap Usage chart goes flat),
you may test the integration by hitting one of the provided demos or your application.
 
Nice one. I've requested that this thread is closed [PAQ'd], and points are refunded back to you. http:/Q_21622513.html
ASKER CERTIFIED SOLUTION
Avatar of PashaMod
PashaMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial