B oBj.f0问题4:
@!O9Zp)D3A0用LR测试Oracle10g,启动VuGen并进行相应的设置。启动sqlplus,开始录制。
w&J,X\__n.}d0录制完成之后,使用Controller分发负载,但是最后测试数据只有如下4条性能曲线:51Testing软件测试网k/rB#xN qj2b
Running Vusers
tu2p1krR9N{.f?#x0Trans Response Time
E!fqB;NxKc q1XP0Trans/Sec(Passed)
1yr9@&R,Y$YE$m0Total Trans/Sec(Passed)51Testing软件测试网fub(F}*Z9_~q'U
其余的 Throughput
8M9{ G&dZ1}x?0HTTP Responses per Second51Testing软件测试网E&NfIP
Connections 等等
U6[6NT1Kh'P(|0这些性能统计项显示为灰色,没有统计数据。是不是哪儿设置的有问题呢?
.]!]fI0{FD2Rn0解决:51Testing软件测试网-Au0_P2PXD'q#z
因为sqlplus.exe是一个win32程序,那么在测试的过程中只统计上面的四项,它不
|*U1wo#p)t0|0会统计Throughput这些才有的性能曲线。51Testing软件测试网)ci;Us*e@F
所以,如果想对数据库服务器测试的更全面,这个时候就要使用isqlplus来发出查询。51Testing软件测试网$o0V(I!D`1j3_
1)在DB server上启动isqlplus服务:isqlplusctl start51Testing软件测试网$M.Y B_:th
2)启动VuGen,在客户端(压力机)启动isqlplus的Web页面
&lsDJCWh03)输入用户名、密码,我这里采用scott/tiger@lr51Testing软件测试网&p x/eS2u
OK!录制完成之后,施加压力执行测试。顺利结束之后,可以看到如下曲线已经抓取出来51Testing软件测试网B,i2u;|&E4Q8F4N1N:A
了:51Testing软件测试网/_7NM#J-lP
Throughput51Testing软件测试网a#J/Fsu.zQr
HTTP Responses per Second
[%uHxQ5`1z8d0Connections
3lG y;|8KKg0所剩的就是如何分析性能数据了。
9g2m6X2I6_.Xu_.Y7V0
W(YsWW(^(xg&w0
)Evy(z T)\EJ#Iw0问题5:51Testing软件测试网+F5t#RX@Ux
Action.c(26): Error: C interpreter run time error: Action.c (26): Error -- Unresolved symbol : lrd_session_begin.
t!_ UX0a Pn\0解决:
k0a'hl W.x"H,b0在vuser_init中添加 #include "lrd.h"51Testing软件测试网IS*GC%[
51Testing软件测试网7o ~dp!Q1JA
51Testing软件测试网u-f1`;J^x
问题6:
1l}IO6u7}y0Action.c(41): Error: lrdo_ora8_exec: "OCIStmtExecute" return-code=OCI_ERROR, error-code=00054:
,c#X Q5E~qx0U0解决:同问题1
;t6G!}e)h)s7v0
X5Q%@/]:e Gk;^p051Testing软件测试网8hB?3Q$F
问题7:
N u4N/Y^6[0Starting iteration 1.51Testing软件测试网U#k ry}rm]ryVQ
Starting action Action.51Testing软件测试网A[JWCz#E
Action.c(13): Error: lrdo_server_attach: "OCIServerAttach" return-code=OCI_ERROR, error-code=12541:
B#O#IY oZl(d0Action.c(13): Error: ORA-12541: TNS: 没有**51Testing软件测试网t!`3d1o%|4G
Action.c(13): server_attach: ERROR, return-code=LRDE2009. ServerHandle=OraSrv1, ServerID="lr"51Testing软件测试网~(ey)e.meG
解决:
6y3e!sDAz0启动数据库服务器,开启listener。如果需要使用isqlplus的话,开启服务:$isqlplusctl start51Testing软件测试网_O6V6]b.|*x
tT3Rh}3a)`%[+p0
9_af*^5D4T&^(o0问题8:51Testing软件测试网'W#A;Dq`(?[jb7\
Action.c(13): Error: lrdo_server_attach: "OCIServerAttach" return-code=OCI_ERROR, error-code=12514:51Testing软件测试网UjzKW?
Action.c(13): Error: ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的 SERVICE_NAME
W0B nPMpA6?0Action.c(13): server_attach: ERROR, return-code=LRDE2009. ServerHandle=OraSrv1, ServerID="lr"51Testing软件测试网-i)KOm8{#S$u
解决:51Testing软件测试网ndH#HpO6V%O$wX
检查压力机客户端解析文件tnsnames.ora,确保正确配置了这个文件。
5yI6avr,O6|B0检查测试的数据库服务器,确保正确配置了监听,并已经开启。51Testing软件测试网@.j/W-X J C0H-Sd
51Testing软件测试网R&P]t;H^p7M
问题9:压力机资源监视
tDG%o;r0Monitor name :Windows Resources. Cannot connect to machine lr071129.Reason: 找不到网络路径。
M)\5_{3r"n_x8lih0解决:
.YXHpF NI:@0在弹出的Add Machine窗口,name项输入IP地址,正确选择Platform。