Java web应用性能监控工具jwebap
上一篇 / 下一篇 2011-12-12 17:37:35 / 个人分类:性能测试
up1]p?%u,]#t0 效果图http://www.jwebap.org/detect/console/?null
pz;R)RKQ WSBe0Mr\/F\Ln"o0 官方文档:http://www.jwebap.org/index_zh.htm51Testing软件测试网Kl1J&a])iW9t
51Testing软件测试网j!mb6Gk'kB作者blog:http://leadyu.javaeye.com/
-|*dp Ca#r iw0Y4Tx8qi"\#u0d6xC0 Jwebap是无代码侵入、需要修改web.xml配置文件的java应用监控工具,轻易获取jdbc调用/http调用、方法调用耗时及是否有jdbc泄露。核心原理:应用asm字节码操作框架实现动态monitor。51Testing软件测试网 ^DRsN&E3A gZ
E0^Nt6Z/S h]W0 另外一个工具:http://jamonapi.sourceforge.net/。51Testing软件测试网we.?%E7O{RT{6{u
qpMkT,{/i01.1.1 下载
%j*rC@J5c!^0http://sourceforge.net/projects/jwebap/files/
p
cS'c:pd/x(JHn01.1.2 部署51Testing软件测试网&he-d&b*H
解压后的jwebap_0.6.1.jar, tracer_0.6.1.jar及jwebap_0.6.1_all\lib目录下jar复制到jboss-4.2.2.GA\server\default\lib目录下。
修改tracer_0.6.1.jar/META-INF/plugin.xml文件,红色为修改项:
H0kll lG7Nr'}0,nAO+N!r7Q0<?xml version="1.0" encoding="UTF-8"?>51Testing软件测试网{g|BI/{@ @t.|
+T5S+DEbyj%e0<plugin>51Testing软件测试网 WQ,LlPpa:@
51Testing软件测试网by n,Q;|+OKZ;v<!--component-->51Testing软件测试网!E+g.O.k.g,j;E:o1XU
+e,t ];Fp;\@D0 <component name="HttpComponent" type="org.jwebap.plugin.tracer.http.HttpComponent">
$D4f5urZ#ha00hH[Lm?P0z0 <component-param>51Testing软件测试网2B"a6jwK[q
51Testing软件测试网)O#R%t o-~<name>trace-filter-active-time</name>
6k&O)Ve+eBk00[e.M X*uMmr't0 <value>-1</value>51Testing软件测试网W!Y,_t7e)]!C-JK
51Testing软件测试网9ulL ]*F'e`~r?{<description>(ms) timings filter's over time</description>51Testing软件测试网"X? bufQH\|Z9wt
c5? MT%w f0 </component-param>51Testing软件测试网6X6wgqC/~"Aq7V/D
51Testing软件测试网u/\E,Rv|Nrl,f Z<component-param>51Testing软件测试网 B[/l;l#V3k|
Fg%@o(e!s5y0x DDO0 <name>trace-max-size</name>
5r-l@ |(F@@[ ]vP0(}|%M;c%w0H6DTp RF0 <value>1000</value>51Testing软件测试网0}n"kc8uP
51Testing软件测试网2\!Dw g;ku+L I<description>max over-time trace size</description>
ks"d r#iata0!D0X_o0v+t0 </component-param>
w[)]T7d#{:o+L%T051Testing软件测试网1?Uwp(r C</component>
-i9E4fW(M/u3AMKX0};U^)B Qel]0 <component name="MethodComponent" type="org.jwebap.plugin.tracer.method.MethodComponent">
I(R0bu3b#o6B-g051Testing软件测试网y\ y/YD\<component-param>51Testing软件测试网pb6E;_o@~
/s%h6z3U8P4@JT{A @X0 <name>trace-filter-active-time</name>
:A5_*Qqf1q W$V051Testing软件测试网6PX#\x F3LQ;W<value>-1</value>51Testing软件测试网-Y6i@l*`5VNr
,F+h)ULT8H;mi0 <description>(ms) timings filter's over time</description>
(A+_lp(g$Zg$a04uc by$z4Yl5r)azeO0 </component-param>51Testing软件测试网{3J`"x U0|
51Testing软件测试网#uo"S${7B ~<component-param>
_S a"VnY1B0@c cQ7s?(aS0 <name>trace-max-size</name>51Testing软件测试网F5nk,ZMt'@q-fm
51Testing软件测试网x V3o!@wY<value>1000</value>
jB y!Q+\1W0b&^+^&r2Z0 <description>max over-time trace size</description>51Testing软件测试网f7F6I)o [
51Testing软件测试网-S!b3c k+?S \#t</component-param>
*U~g_2^2q!p051Testing软件测试网n~A$S7H.Xz%M6Vm<component-param style="longtext">51Testing软件测试网U3mb pH%TG7N
0hv+z kbh~#`.Q0 <name>detect-clazzs</name>51Testing软件测试网&{~l#]Hh3GZ+g5m
51Testing软件测试网NhuwyY&J<value>51Testing软件测试网-wA sk"R'ne9S,x3B
51Testing软件测试网1Jl^)ij"KAcom.ali.*;51Testing软件测试网$T"T |(m)k{-RO ^@
51Testing软件测试网,^4mfZ7N:RfzD }</value>
[3b;O_Qm^&W9c051Testing软件测试网$S zr1D$k~?"c3R$T3lb#@<description>51Testing软件测试网6N{`9l8cS RtUcpz
51Testing软件测试网I3g_"R*rpackage name and class name that monitored by MethodComponent,
nMZ|4n#C[S\0Yr0C"a ~Y ?0 e.g.: 'test.*;test.Test' , divided by ';'
7VT J,q yV!dY051Testing软件测试网[A z Oa9Sl-e</description>
'Dyo"h9f0YEGV0@.DU0bK0 </component-param>
tRc5h(C7C;? A L1Y051Testing软件测试网v}!a#_"P;SI</component>
\5[@?D051Testing软件测试网"? a4]5Yr kk$`<component name="JdbcComponent" type="org.jwebap.plugin.tracer.jdbc.JdbcComponent">
}{7h8v)Z E xj0[L"iV @QO|'Z0 <component-param>
ys G*]~U7?051Testing软件测试网.xeq|%DX(c9Y<name>trace-filter-active-time</name>51Testing软件测试网3wqa1M d
51Testing软件测试网^ w_cR<value>-1</value>51Testing软件测试网U~ dl XR*oT
51Testing软件测试网;~+UhD4GA?9qt V t<description>(ms) timings filter's over time</description>51Testing软件测试网)u)U,P4e6dO^+T9v0we
51Testing软件测试网"fB(Kc5j4Bz</component-param>51Testing软件测试网0\]P|1c
+E:@ e$Q XF0 <component-param>51Testing软件测试网pOb8{p*i4f;`d
Tqw}}_/] h3S0 <name>trace-max-size</name>51Testing软件测试网$nZG5{V!l3VNZ^
51Testing软件测试网kM7pVv-^n<value>1000</value>51Testing软件测试网]hM9y9M-E,kR)u
51Testing软件测试网Z]vTYe$~<description>max over-time trace size</description>
2z[N0?3y(?G5u;P0f$z Y'm8}6jO+[i9J0 </component-param>
0n,mz%i ?lc s051Testing软件测试网8ASP;X{g*Y<component-param style="longtext">
"bsclrO/o0&P*Ly-`!^0 <name>connection-listener</name>
7@*vh^"O-W3AT#@j051Testing软件测试网?E]2A Wgk<value>
4L pX!L8i07r]R#s;}.C0 org.jwebap.plugin.tracer.http.ServletOpenedConnectionListener;org.jwebap.plugin.tracer.method.MethodOpenedConnectionListener
ss*p;v:Wi0i2S1H P)qUr]D0 </value>51Testing软件测试网!C[4h)z N,g
51Testing软件测试网pmG N.gkI2u*R<description>Connection Listener</description>51Testing软件测试网3KL)u:d1ys
B%z2[X6}:b~0 </component-param>
M&pvo0qU"z051Testing软件测试网f9d1z ^JLa<component-param style="longtext">
;u?Qh+hh3[{ OZpk0@'Gs1e/rK0 <name>driver-clazzs</name>51Testing软件测试网FRA/SFnv8N
51Testing软件测试网-w!nj~qMyG<value>org.apache.commons.dbcp.BasicDataSource</value>
:^5j8L9s/E051Testing软件测试网9?h:`%v2G$t<!--51Testing软件测试网dEE_+X3[,_
8TE&@c5\I g~$V;W0 <value>com.mysql.jdbc.Driver</value>
e:umh,G.X|2{051Testing软件测试网+G.L I W o5WR-->