Sometimes we run into performance problems in some of our applications. At times, identifying the code to be optimized may be trivial, but sometimes it is not easy. Profilers are tools that can help us pinpoint performance problems in our code. NetBeans comes with a very good profiler that we can use with our Java EE applications.
All we need to do in order to profile our application is right-click on it in the Projects window and select Profile.
Before we can profile an application, we need to calibrate the NetBeans profiler by going to Profile | Advanced Commands | Run Profiler Calibration.
The first time we attempt to profile our application, the following ...