Profiling tools allow you to gather runtime statistics and analyze
the performance of your portlets.
To use profiling tools on a portlet running on a remote server,
- Define a remote
portal server attach server.
- On the remote system, start the WebSphere Portal server.


From a command window,
type these commands:
cd WebSphere_installation_root/bin
./startServer.sh WebSphere_Portal
where WebSphere_installation_root is
the directory where you installed WebSphere Application Server.
- On the remote system, start the Agent Controller.

- Open
- Highlight the IBM Rational Agent Controller service.
Right-click and select Start.

Type the following from a command window:
cd Agent_Controller_installation_root/bin
./RAStart.sh
where Agent_Controller_installation_root is
the directory where you installed Agent Controller.
- From the Project Explorer view, expand Dynamic Web Projects.
Select a portlet project, right-click and select . The portlet
is published to the remote portal server and the Web browser opens to the PortletPreview page.
- Define profiling
options.
- Select .
- Select the Attach - Java Process configuration
that you defined for the remote server.
- On the Agents tab, highlight the unknown agent
in the left pane. Click > to move the agent to the Selected
Agents list in the right pane.
- You can use the Profiling tab to override
your default profiling settings.
- Click Profile.
- If the Profiling Tips dialog box opens,
click OK.
- If the Confirm Enablement dialog box appears,
click OK.
- In the Profiling Monitor view of the Profiling
and Logging perspective , right-click and
select Start Monitoring.
- Switch back to the Web perspective and
use your portlet application.
- Switch back to the Profiling and Logging perspective.
- Right-click and select Pause Monitoring.
- Double-click the Execution Time Analysis entry
in the Profiling Monitor view. The statistics that you collected
appear on the right. If the statistics do not display correctly, right-click
in the right pane and select Refresh Views.
- Right-click and select Detach from Agent.
Warning: Do not use the Terminate option.
This stops the server that is being monitored.