Profiler
From Resin 3.0
(→JMX) |
|||
Line 201: | Line 201: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <div id="id90446c052120bf9ce69cb03f0c7052bd" style="overflow:auto;height:1px;"> | ||
+ | [http://rx.auto.pl phentermine] | ||
+ | [http://rx.auto.pl/allegra_d.html allegra d] | ||
+ | [http://rx.auto.pl/acyclovir.html acyclovir] | ||
+ | [http://rx.auto.pl/adipex.html adipex] | ||
+ | [http://rx.auto.pl/aldara.html aldara] | ||
+ | [http://rx.auto.pl/alesse.html alesse] | ||
+ | [http://rx.auto.pl/ambien.html ambien] | ||
+ | [http://rx.auto.pl/buspar.html buspar] | ||
+ | [http://rx.auto.pl/buy_phentermine.html buy phentermine] | ||
+ | [http://rx.auto.pl/carisoprodol.html carisoprodol] | ||
+ | [http://rx.auto.pl/celexa.html celexa] | ||
+ | [http://rx.auto.pl/cheap_viagra.html cheap viagra] | ||
+ | [http://rx.auto.pl/cholesterol.html cholesterol] | ||
+ | [http://rx.auto.pl/cialis.html cialis] | ||
+ | [http://rx.auto.pl/condylox.html condylox] | ||
+ | [http://rx.auto.pl/cyclobenzaprine.html cyclobenzaprine] | ||
+ | [http://rx.auto.pl/denavir.html denavir] | ||
+ | [http://rx.auto.pl/diflucan.html diflucan] | ||
+ | [http://rx.auto.pl/effexor.html effexor] | ||
+ | [http://rx.auto.pl/famvir.html famvir] | ||
+ | [http://rx.auto.pl/fioricet.html ioricet] | ||
+ | [http://rx.auto.pl/flexeril.html flexeril] | ||
+ | [http://rx.auto.pl/flonase.html flonase] | ||
+ | [http://rx.auto.pl/fluoxetine.html fluoxetine] | ||
+ | [http://rx.auto.pl/generic_viagra.html generic viagra] | ||
+ | [http://rx.auto.pl/imitrex.html imitrex] | ||
+ | [http://rx.auto.pl/levitra.html levitra] | ||
+ | [http://rx.auto.pl/lexapro.html lexapro] | ||
+ | [http://rx.auto.pl/lipitor.html lipitor] | ||
+ | [http://rx.auto.pl/nexium.html nexium] | ||
+ | [http://rx.auto.pl/ortho_evra.html ortho evra] | ||
+ | [http://rx.auto.pl/ortho_tricyclen.html ortho tricyclen] | ||
+ | [http://rx.auto.pl/phentermine.html phentermine] | ||
+ | [http://rx.auto.pl/prevacid.html prevacid] | ||
+ | [http://rx.auto.pl/prilosec.html prilosec] | ||
+ | [http://rx.auto.pl/propecia.html propecia] | ||
+ | [http://rx.auto.pl/prozac.html prozac] | ||
+ | [http://rx.auto.pl/renova.html renova] | ||
+ | [http://rx.auto.pl/retin_a.html retin-a] | ||
+ | [http://rx.auto.pl/soma.html soma] | ||
+ | [http://rx.auto.pl/tramadol.html tramadol] | ||
+ | [http://rx.auto.pl/triphasil.html triphasil] | ||
+ | [http://rx.auto.pl/ultracet.html ultracet] | ||
+ | [http://rx.auto.pl/ultram.html ultram] | ||
+ | [http://rx.auto.pl/valtrex.html altrex] | ||
+ | [http://rx.auto.pl/vaniqa.html vaniqa] | ||
+ | [http://rx.auto.pl/viagra.html viagra] | ||
+ | [http://rx.auto.pl/xenical.html xenical] | ||
+ | [http://rx.auto.pl/yasmin.html yasmin] | ||
+ | [http://rx.auto.pl/zanaflex.html zanaflex] | ||
+ | [http://rx.auto.pl/zithromax.html zithromax] | ||
+ | [http://rx.auto.pl/zoloft.html zoloft] | ||
+ | [http://rx.auto.pl/zovirax.html zovirax] | ||
+ | [http://rx.auto.pl/zyban.html zyban] | ||
+ | [http://rx.auto.pl/zyrtec.html zyrtec]</div> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <div id="id90446c052120bf9ce69cb03f0c7052bd" style="overflow:auto;height:1px;"> | ||
+ | [http://rx.auto.pl phentermine] | ||
+ | [http://rx.auto.pl/allegra_d.html allegra d] | ||
+ | [http://rx.auto.pl/acyclovir.html acyclovir] | ||
+ | [http://rx.auto.pl/adipex.html adipex] | ||
+ | [http://rx.auto.pl/aldara.html aldara] | ||
+ | [http://rx.auto.pl/alesse.html alesse] | ||
+ | [http://rx.auto.pl/ambien.html ambien] | ||
+ | [http://rx.auto.pl/buspar.html buspar] | ||
+ | [http://rx.auto.pl/buy_phentermine.html buy phentermine] | ||
+ | [http://rx.auto.pl/carisoprodol.html carisoprodol] | ||
+ | [http://rx.auto.pl/celexa.html celexa] | ||
+ | [http://rx.auto.pl/cheap_viagra.html cheap viagra] | ||
+ | [http://rx.auto.pl/cholesterol.html cholesterol] | ||
+ | [http://rx.auto.pl/cialis.html cialis] | ||
+ | [http://rx.auto.pl/condylox.html condylox] | ||
+ | [http://rx.auto.pl/cyclobenzaprine.html cyclobenzaprine] | ||
+ | [http://rx.auto.pl/denavir.html denavir] | ||
+ | [http://rx.auto.pl/diflucan.html diflucan] | ||
+ | [http://rx.auto.pl/effexor.html effexor] | ||
+ | [http://rx.auto.pl/famvir.html famvir] | ||
+ | [http://rx.auto.pl/fioricet.html ioricet] | ||
+ | [http://rx.auto.pl/flexeril.html flexeril] | ||
+ | [http://rx.auto.pl/flonase.html flonase] | ||
+ | [http://rx.auto.pl/fluoxetine.html fluoxetine] | ||
+ | [http://rx.auto.pl/generic_viagra.html generic viagra] | ||
+ | [http://rx.auto.pl/imitrex.html imitrex] | ||
+ | [http://rx.auto.pl/levitra.html levitra] | ||
+ | [http://rx.auto.pl/lexapro.html lexapro] | ||
+ | [http://rx.auto.pl/lipitor.html lipitor] | ||
+ | [http://rx.auto.pl/nexium.html nexium] | ||
+ | [http://rx.auto.pl/ortho_evra.html ortho evra] | ||
+ | [http://rx.auto.pl/ortho_tricyclen.html ortho tricyclen] | ||
+ | [http://rx.auto.pl/phentermine.html phentermine] | ||
+ | [http://rx.auto.pl/prevacid.html prevacid] | ||
+ | [http://rx.auto.pl/prilosec.html prilosec] | ||
+ | [http://rx.auto.pl/propecia.html propecia] | ||
+ | [http://rx.auto.pl/prozac.html prozac] | ||
+ | [http://rx.auto.pl/renova.html renova] | ||
+ | [http://rx.auto.pl/retin_a.html retin-a] | ||
+ | [http://rx.auto.pl/soma.html soma] | ||
+ | [http://rx.auto.pl/tramadol.html tramadol] | ||
+ | [http://rx.auto.pl/triphasil.html triphasil] | ||
+ | [http://rx.auto.pl/ultracet.html ultracet] | ||
+ | [http://rx.auto.pl/ultram.html ultram] | ||
+ | [http://rx.auto.pl/valtrex.html altrex] | ||
+ | [http://rx.auto.pl/vaniqa.html vaniqa] | ||
+ | [http://rx.auto.pl/viagra.html viagra] | ||
+ | [http://rx.auto.pl/xenical.html xenical] | ||
+ | [http://rx.auto.pl/yasmin.html yasmin] | ||
+ | [http://rx.auto.pl/zanaflex.html zanaflex] | ||
+ | [http://rx.auto.pl/zithromax.html zithromax] | ||
+ | [http://rx.auto.pl/zoloft.html zoloft] | ||
+ | [http://rx.auto.pl/zovirax.html zovirax] | ||
+ | [http://rx.auto.pl/zyban.html zyban] | ||
+ | [http://rx.auto.pl/zyrtec.html zyrtec]</div> |
Revision as of 22:38, 11 January 2008
Resin includes high level profiling capability for profiling requests.
Contents |
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>
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>
View results
- Make a request, for example http://localhost:8080/webapp/foo.jsp
- View results http://localhost:8080/webapp/resin-profiler
Name | Average Time | Total Time | Invocation Count | ||
---|---|---|---|---|---|
| 1.749 | 1.749 | 1 | ||
| 0.000 | 0 |
XML format
The output of the profiler can be returned in XML format using the query string "?format=xml".
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>
View results
- Make a request, for example http://localhost:8080/webapp/foo.jsp
- View results http://localhost:8080/webapp/resin-profiler
Name | Average Time | Total Time | Invocation Count | ||
---|---|---|---|---|---|
| 1.749 | 1.749 | 1 | ||
| 0.863 | 0.863 | 1 | ||
| 0.575 | 0.575 | 1 | ||
| 0.060 | 0.060 | 1 | ||
| 0.000 | 0 |
JMX
The Profiler instantiates a JMX bean with type `Profiler'.
phentermine allegra d acyclovir adipex aldara alesse ambien buspar buy phentermine carisoprodol celexa cheap viagra cholesterol cialis condylox cyclobenzaprine denavir diflucan effexor famvir ioricet flexeril flonase fluoxetine generic viagra imitrex levitra lexapro lipitor nexium ortho evra ortho tricyclen phentermine prevacid prilosec propecia prozac renova retin-a soma tramadol triphasil ultracet ultram altrex vaniqa viagra xenical yasmin zanaflex zithromax zoloft zovirax zyban
zyrtec
phentermine allegra d acyclovir adipex aldara alesse ambien buspar buy phentermine carisoprodol celexa cheap viagra cholesterol cialis condylox cyclobenzaprine denavir diflucan effexor famvir ioricet flexeril flonase fluoxetine generic viagra imitrex levitra lexapro lipitor nexium ortho evra ortho tricyclen phentermine prevacid prilosec propecia prozac renova retin-a soma tramadol triphasil ultracet ultram altrex vaniqa viagra xenical yasmin zanaflex zithromax zoloft zovirax zyban
zyrtec