 |
AppPerfect Java Profiler |
Tutorial : Profiling a Remote Application from Windows (local) to Linux (remote)
This tutorial provides instructions on how to profile an application running on remote Linux machine from a local
windows machine. This tutorial assumes you have
successfully downloaded and installed AppPerfect DevTest4J on both local and remote machine with the default
options.
This document is divided into following sections
- Creating Common Project
- AppPerfect Java Profiler
Within each section, multiple exercises are listed. All exercises assume that on windows machine the
AppPerfect DevTest4J is installed at C:\AppPerfect\DevTest and on linux its installed at
/opt/AppPerfect/DevTest.
Creating Common Project
Exercise 1: Launch AppPerfect DevTest4J
Action:
- Click on Start -> Programs ->AppPerfect DevTest4J x.x.x -> AppPerfect DevTest4J
- On launching AppPerfect DevTest4J a Welcome page will be displayed. Go through the brief description
given for each product and click on the product icon to view its perspective.
NB: Welcome page is displayed only when DevTest4J x.x.x is launched and last time no project
was opened.
- To switch between different product perspectives click on corresponding project button in toolsbar.
Exercise 2: Creating a Common Project
Action:
- Launch the Common Project Wizard by clicking File ->New... menu option.
The New Project wizard will be launched.
- Go through the instruction provided on top of the General tab.
- General: Provide a name and location for the project. Select "Target Application/AppServer
runs on remote machine" checkbox. Provide IP address and service port of the remote (linux) machine.
| NOTE:
|
The App Service "APPDev" must be running on remote (Linux) machine. To start the service, type the following at the terminal: $ sh /opt/AppPerfect/DevTest/wrapper/start_service.
|
- Import: Keep the default settings and click next.
- Source: Leave it empty and click next.
- Java Settings, under Remote Java Environment, please provide '/opt/AppPerfect/DevTest/jre' as the Java Home and click Validate Java to ensure the path is correct. Then click Next.
- Environment: Leave it empty and click next.
- Target (For remote server profiling): Select project type as Server/Web Application. Then provide
'Starting URL' and other settings. Click 'Go to AppServer Settings'. Here select 'Specify AppServer
Settings' and provide remote app. server configurations and click Finish.

- After clicking finish, leave the default project preferences and click OK.
AppPerfect Java Profiler
The steps henceforth will be same in case of Server and Local profiling, hence
please refer to the Profiling Server Application for further details.