Hi,everyone. I'm using Optimizeit 5.5 to analyse the performance of a middle-scale servelet program,the web server is Tomcat 4. In the setting,I think the Program type,war directory and launch URI shouldn't make trouble,the class path is set to "WEB-INF\classes",and the filter is setted default. when I start the request,the server shows that the servlet works normally,But when I use the Memory profiler,I couldn't find the class that I defined in the program,such as MyServlet,MyJDBC are missing.only the some jdk's class, and when I use the CPU profiler,I couldn't find methods defined by me ,so I couldn't find the hot spot in my own class. when I use Optimizeit's tutorial example,I saw the self defined object in heap,but no hot spot in CPU profiler, Is it ture that the CPU profiler cann't caculate the CPU time of the methods defined by you.
couldn't find the class that I defined in the program,such as MyServlet,MyJDBC are missing. One possible reason may be that your sampling interval is too large. If the method that you are profiling takes less time to execute than the sampling interval, your method may not show up at all. To check this, set the profiling type to "instrumentation" (as opposed to "sampling"), and/or set the sampling to 1 microsecond or so.