Re: Tracking which JMeterThread, ThreadGroup produced a sample
Agree ! I have started looking at the code on how to accomplish this, at first glance doesn't seem tough. dmitri On Tue, 22 Jan 2002, Nathan Chandler wrote: Think it would be useful if reporters could provide info. on which thread produced a sample, e.g. so File Reporter output may look like: # Sample data created by ### # JMeterThreadThreadGroupUrlMilliseconds JMThreadXXXtest1http://blah.com/aaa?page=bbb176 JMThreadYYYtest1http://blah.com/aaa?page=bbb196 JMThreadXXXtest1http://blah.com/aaa?page=ccc111 JMThreadYYYtest1http://blah.com/aaa?page=ccc165 Others think this useful? Is capture of such information addressed at moment? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
java.io.FileNotFoundException
From time to time I get this exception on jmeter console: java.io.FileNotFoundException: http://host1/servlet/SOP at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574) at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:839) at org.apache.jmeter.protocol.http.sampler.HTTPSampler.saveConnectionCookies(HTTPSampler.jav a:346) at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:253) at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:111) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:134) at java.lang.Thread.run(Thread.java:484) I realize it may be related to the backend server, however I don't see any exceptions thrown on the backend. Has anyone seen this exception due to jmeter itself ? TIA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cookie Manager Struts?
If URL' file name changes from page to page then CookieManager will not add SOME cookies to the Response. E.g. : page 1: http://www.a.com/servlets/XXX/page1 page 2: http://www.a.com/servlets/YYY/page2 cookies in with cookie.getPath() containing XXX will not be added to Response for page2. This is b/c CookieManager has a condition in getCookieHeaderForURL(URL url) method: url.getFile().startsWith(cookie.getPath()) I don't know if this is your problem, but I had this issue in my test scenarios where user was hopping from servlet to servlet and was losing his session. My request had 2 cookies: one from JServ, its path was simply / and there was no problem with it, but the other was an app server's cookie that had it's path set to /servlet/XXX. Therefore CookieManager was comparing url.getFile()=/servlet/YYY and cookie.getPath()=/servlet/XXX and since they don't match it was dropping the cookie (unfortunately it was the last cookie that maintained the session). I ended up commenting-out that condition and everything worked well. Good luck, Dmitri On Fri, 11 Jan 2002, Alex Colic wrote: If you figure out how to do this please forward the info to me. I am trying to do the same thing and I have been unsuccessful. Alex -Original Message- From: Roland Chan [mailto:[EMAIL PROTECTED]] Sent: January 11, 2002 3:47 PM To: 'JMeter Users List' Subject: Cookie Manager Struts? Not 100% on how to correctly use the cookie manager, could someone please give an example of how to use this correctly. I have a struts application for which I created a thread group, added the cookie manager, and web test samples all beneath a simple controller. The test simulates a login, and then one other business action. The login works fine (1st struts action -- in which case I am assuming the cookie manager correctly used the JSESSIONID), however, when it tries to proceed with the next business action (2nd struts action) it no longer has any knowledge of the current session and I receive an IO Exception. Does anyone else experience this sort of behavior. Any advice would be appreciated. Regards, Roland -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Exception under load
When I increase load to 40 and more concurrent users I start to get this exception: java.io.FileNotFoundException: http://xxx1:80/servlet/SOPricing at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574) at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:839) at org.apache.jmeter.protocol.http.sampler.HTTPSampler.saveConnectionCookies(HTTPSampler.jav a:346) at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:253) at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:111) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:134) at java.lang.Thread.run(Thread.java:484) I don't get it for every request but as I increase # of concurrent users (e.g. to 120) I get more of those exceptions. I thought that this may be not due to JMeter at all since JRun error.log gets this: Mon Dec 17 18:18:04 EST 2001: ProductInfoServlet: java.lang.IllegalStateException: Already called getOutputStream()^M { (ProductInfoServlet: java.lang.IllegalStateException: Already called getOutput Stream()) java.io.IOException: Broken pipe at java.net.SocketOutputStream.write(Compiled Code) at java.io.BufferedOutputStream.flushBuffer(Compiled Code) at java.io.BufferedOutputStream.write(Compiled Code) at java.io.DataOutputStream.write(Compiled Code) at com.livesoftware.jrun.service.proxy.JRunProxyConnection.writeClientTo Conn(Compiled Code) at com.livesoftware.jrun.service.proxy.JRunProxyConnection.writeClient(C ompiled Code) at com.livesoftware.jrun.JRunOutputStream.flushBytes(Compiled Code) at com.livesoftware.jrun.JRunOutputStream.flush(Compiled Code) at com.livesoftware.jrun.JRunOutputStream.finish(Compiled Code) at com.livesoftware.jrun.JRunServletResponse.sendError(JRunServletRespon se.java:282) at com.livesoftware.jrun.JRun.servletError(JRun.java:474) at com.livesoftware.jrun.JRun.runServlet(Compiled Code) at com.livesoftware.jrun.JRunGeneric.handleConnection(Compiled Code) at com.livesoftware.jrun.JRunGeneric.handleProxyConnection(Compiled Code ) at com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleReq So is it JRun or JMeter. If it's JRun anyone has an idea why it gets java.lang.IllegalStateException: Already called getOutputStream()??? TIA ! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DELETE exception
SORRY, WRONG LIST ! On Tue, 11 Dec 2001, Dmitri G. Chtchekine wrote: I get exception trying to delete some files (OS is Windows NT). Strangely some files get deleted, and on some ant failes. All files have same permissions. Here is the code: delete file=${build.dir}\${package.root.dcmtools}\Certifier.ini/ delete file=${build.dir}\${package.root.dcmtools}\BulkLoad.ini/ delete file=${build.dir}\${package.root.dcmtools}\MainMenu.ini/ delete file=${build.dir}\${package.root.dcmtools}\ProductDelete.ini/ delete file=${build.dir}\${package.root.dcmtools}\Reports.ini/ Here is output: [delete] Deleting: C:\java\buildclasses\dcmtools\Certifier.ini [delete] Deleting: C:\java\buildclasses\dcmtools\BulkLoad.ini [delete] Deleting: C:\java\buildclasses\dcmtools\MainMenu.ini [delete] Deleting: C:\java\buildclasses\dcmtools\ProductDelete.ini BUILD FAILED d:\ant\buildpii.xml:726: Unable to delete file C:\java\buildclasses\dcmtools\ProductDelete.ini at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:267) at org.apache.tools.ant.Task.perform(Task.java:217) at org.apache.tools.ant.Target.execute(Target.java:164) at org.apache.tools.ant.Target.performTasks(Target.java:182) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:256) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:120) at org.apache.tools.ant.Task.perform(Task.java:217) at org.apache.tools.ant.Target.execute(Target.java:164) at org.apache.tools.ant.Target.performTasks(Target.java:182) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.Project.executeTargets(Project.java:560) at org.apache.tools.ant.Main.runBuild(Main.java:454) at org.apache.tools.ant.Main.start(Main.java:153) at org.apache.tools.ant.Main.main(Main.java:176) TIA! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]