If you want to profile your projects while a server runs, you can
start a server in profiling mode. When you profile an application, data related
to the program's run-time behavior is collected and presented in both graphical
and tabular views. Profiling enables you to see which operations take the
most time and helps you to find and solve memory leaks. For more information,
refer to the Profiling and logging documentation.
Once you have started the server in profiling mode you can run
the projects that are associated with its configuration. You can stop and
restart the server at any time. The status of the server is displayed in the
Status column of the Servers view.
Prerequisites: - Create
a server.
- For WebSphere® Application
Server v5.x1: Define the Agent Controller port. Double-click on the
server in the Servers view to open the server editor. On the Overview page,
in the Agent Controller port field, type the port number
for Agent Controller. Save and close the server editor.
Note: If
the communication port number that is configured in the serviceconfig.xml
file (found in the directory x:\config, where x is
the installation directory of Agent Controller), then the Agent
Controller port field needs to be changed to the same port number.
- Add a project to a server.
To start the server in profiling mode:
- In the Servers view ( ), right-click the server
you want to start in profiling mode.
- Select Profile. In the Status column
of the Servers view, the status of the server changes to Profiling.
- You can also start the server in profiling mode by selecting the
server you want to profile, then clicking on the Start the server
in profiling mode
icon on the toolbar of the Servers
view.