There are two ways to profile a web application project:
If your web application is part of an enterprise application, you should always profile it by running the profile command on the enterprise application project. Since the IDE does not know which enterprise applications a web application project belongs to, running the Profile command on a web application project deploys it as a stand-alone application.
If you are deploying your web application or enterprise application to a local installation of the Sun Java System Application Server/GlassFish, you can profile your project by choosing Profile Main Project from the main menu or choosing Profile from the pop-up menu in the Projects window.
If you are deploying your web application or enterprise application to a remote server, you need to attach the IDE to the remote server and profile the application in Attach mode. The Attach Wizard can help you configure the remote server to accept attachment.
To profile a stand-alone web application:
When you profile a stand-alone web application project, the IDE does the following:
To profile an enterprise application:
You can limit the classes in the enterprise application that are profiled by doing the following:
When you profile an enterprise application, the IDE does the following: