LoadRunner录制ie停止功能
有个项目,pdf打印,文件太大时,用户会经常点击ie的停止功能,关闭。后台就会出错,报ClientAbortException:java.net.SocketException: 打破的管道
但是又不是经常出现,偶尔会出现。
我想用lr录制用户这样的行为,进行压力测试。如何才能录制停止,关闭这样的操作?
谢谢 从LZ说的情况来看,貌似不是什么压力测试的问题啊,而是功能问题。为什么这么说呢,可能并不是文件太大了才会导致这个问题,而是只要建立socket连接之后,数据没传输完之前关闭客户端浏览器,都会发生这种问题。可能是代码里面对于该异常没有捕获,导致直接抛异常了,建议LZ去看下建立socket连接部分的代码,看看有没有做异常捕获。 是基于b/s的项目。
看了代码,捕获了异常。只要异常出现,就会出现用户登录很慢。 本帖最后由 TEST_HUAN 于 2012-7-13 09:57 编辑
贴上后台抛出的异常信息:
ClientAbortException:java.net.SocketException: 打破的管道
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:357)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:308)
at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:272)
at org.apache.catalina.connector.CoyoteOutputStream.close(CoyoteOutputStream.java:104)
at ****.util.PrintUtil.createPDF(PrintUtil.java:113)
at ****.store.***.print(StorePrintAction.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.eclink.filters.LoginFilter.doFilter(LoginFilter.java:71)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.eclink.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:100)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:818)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:595) 二楼的兄弟,能告诉我具体函数吗?谢谢
页:
[1]