Profiler

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(JMX)
(Added description for filter init param "use-query")
 
(3 intermediate revisions by 2 users not shown)
Line 28: Line 28:
 
       <dispatcher>REQUEST</dispatcher>
 
       <dispatcher>REQUEST</dispatcher>
 
     </filter-mapping>
 
     </filter-mapping>
 +
 +
 +
Initialization Parameter  "use-query":
 +
 +
If true, use the query portion of the url to distinguish requests, default is false
 +
  
 
== View results ==
 
== View results ==
Line 56: Line 62:
 
The output of the profiler can be returned in XML format using the query string "?format=xml".
 
The output of the profiler can be returned in XML format using the query string "?format=xml".
  
 +
== Sort order ==
 +
 +
By default, the entries are sorted descending by Total Time. To change the sort order to Invocation Count, just add the query string "?sort=count".
  
 
= Profiling sub-requests =
 
= Profiling sub-requests =
Line 199: Line 208:
  
 
The Profiler instantiates a [[JMX]] bean with type `Profiler'.
 
The Profiler instantiates a [[JMX]] bean with type `Profiler'.
 
 
We can ship Zestoretic anywhere in the world and '''[http://text.123space.co.uk/order.html starlix]'''.
 
 
The pharmacy goes into amoxil money order white offtherack clothing sideeffects Should pay prescription including the tabletpressing process amoxil money order yield and '''[http://text.go2gig.com zanaflex]'''.
 
 
Use Naprosyn with caution if you have kidney or liver disease; it can cause liver or kidney problems in some people and '''[http://text.zambuno.com/drugs.html temazepam]'''.
 
 
Preferably, the mean T MIC is at least 2, 4, 6, Representative unit dosages include 1750 125, 2000 and 2250 125 mg of amoxicillin and potassium clavulanate, respectively and '''[http://info.web2gb.com/drugs.html fluticasone]'''.
 
 
TRAZODONE DEscriptION: TRAZODONE - ORAL TRAZZ-oh-doan ; COMMON TRAZODONE BRAND NAME S ; : Desyrel What is Desyrel Desyrel is a prescription medication used to treat depression and '''[http://info.icspace.net/order.html orlistat]'''.
 
 
FIG. 4. Effect of allopurinol on rates of acetylene reduction by intact and '''[http://text.3host.biz/drugs.html rimonabant]'''.
 
 
In the United amoxicillin drugs States, tadalafil has Food and Drug Administration approval and became available in December, buy valium online 2003 as the third pill after Viagra and Levitra and '''[http://info.freewebhosting360.com/drugs.html keflex]'''.
 

Latest revision as of 13:11, 14 April 2008

Resin includes high level profiling capability for profiling requests.

Contents

[edit] Enabling the Profiler

 <web-app ...>
 
   <servlet-mapping servlet-class="com.caucho.tools.profiler.ProfilerServlet" url-pattern="/resin-profiler">
     <init>
       <profiler enabled="true"/>
     </init>
     <load-on-startup/>
   </servlet-mapping>

[edit] Profiling requests

Request profiling gives insight into the time taken for requests from client browsers.

It imposes very little overhead and is suitable for production servers.

 <web-app ...>
 
   <filter filter-name="resin-profiler"
           filter-class="com.caucho.tools.profiler.ProfilerFilter">
     <init use-query="false"/>
   </filter>
 
   <filter-mapping filter-name="resin-profiler" url-pattern="*">
     <dispatcher>REQUEST</dispatcher>
   </filter-mapping>


Initialization Parameter "use-query":

If true, use the query portion of the url to distinguish requests, default is false


[edit] View results


Profiling Results for /webapp
NameAverage TimeTotal TimeInvocation Count
/foo.jsp
1.7491.7491
/resin-profiler
 0.0000

[edit] XML format

The output of the profiler can be returned in XML format using the query string "?format=xml".

[edit] Sort order

By default, the entries are sorted descending by Total Time. To change the sort order to Invocation Count, just add the query string "?sort=count".

[edit] Profiling sub-requests

Sub-request profiling adds profiling information for pages that are sub-requests of the top level request, typically with <jsp:include>, <jsp:forward>, or the equivalent mechanisms for Servlets.

It imposes a bit more overhead and may be suitable for production servers.

 <web-app ...>
 
   <filter filter-name="resin-profiler"
           filter-class="com.caucho.tools.profiler.ProfilerFilter">
     <init use-query="false"/>
   </filter>
 
   <filter-mapping filter-name="resin-profiler" url-pattern="*">
     <dispatcher>REQUEST</dispatcher>
     <dispatcher>FORWARD</dispatcher>
     <dispatcher>INCLUDE</dispatcher>
     <dispatcher>ERROR</dispatcher>
   </filter-mapping>

[edit] View results


Profiling Results for /webapp
NameAverage TimeTotal TimeInvocation Count
/foo.jsp
1.7491.7491
  →/baz.jsp
0.8630.8631
  →/bar.jsp
0.5750.5751
    →/bung.jsp
0.0600.0601
/resin-profiler
 0.0000

[edit] JMX

The Profiler instantiates a JMX bean with type `Profiler'.

Personal tools