• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

A problem about the usage of Optimizeit

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic