Re: Timeout errors
Philip Aston <[email protected]>
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <[email protected]> |
The connect is not even succeding, so no request is sent, so there is no
response.
Feels like a network or server issue to me. You may be best off
debugging this with wireshark or similar.
- Phil
On 03/10/13 19:32, Sean Tiley wrote:
> Hello,
> I am using grinder 3.11.
> In one of my scripts I intermittently get a connection timeout
> exception, (<10% of the requests)
> When I am creating and debugging my scripts I write out the result of
> each request to a file so i thought I'd just turn on the file output
> in my scripts and I'd get the response, well no such luck, when the
> connection times I am getting an exception before the response is
> recieved and the file never gets written out.
>
> 2013-10-03 14:15:04,552 ERROR TESTER04-0 thread-2 [ run-0 ]: aborted
> run - Java exception calling TestRunner
> net.grinder.scriptengine.jython.JythonScriptExecutionException: Java
> exception calling TestRunner
> result = request101.GET('/fins_enu/start.swe' +
> File
> "C:\QAS\Scripts\EmergFIx_Perf\.\TESTER04-file-store\current\EF_SiebelLoginLogout.py",
> line 341, in page1
> self.page1() # GET start.swe (requests 101-111)
> File
> "C:\QAS\Scripts\EmergFIx_Perf\.\TESTER04-file-store\current\EF_SiebelLoginLogout.py",
> line 1199, in __call__
> java.net.ConnectException: Connection timed out: connect
> at java.net.DualStackPlainSocketImpl.connect0(Native Method)
> ~[na:1.7.0_40]
> at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
> ~[na:1.7.0_40]
> at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
> ~[na:1.7.0_40]
> at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
> ~[na:1.7.0_40]
> at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
> ~[na:1.7.0_40]
> at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.7.0_40]
> at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.7.0_40]
> at java.net.Socket.connect(Unknown Source) ~[na:1.7.0_40]
> at java.net.Socket.connect(Unknown Source) ~[na:1.7.0_40]
> at java.net.Socket.<init>(Unknown Source) ~[na:1.7.0_40]
> at java.net.Socket.<init>(Unknown Source) ~[na:1.7.0_40]
> at
> HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:4086)
> ~[grinder-httpclient-3.11.jar:na]
>
>
> Here is the code where the exception is occuring
> (LINE 341)
> result = request101.GET('/fins_enu/start.swe' +
> '?SWECmd=' +
> self.token_SWECmd +
> '&SRN=' +
> self.token_SRN +
> '&SWEHo=' +
> self.token_SWEHo +
> '&SWETS=' +
> self.token_SWETS)
> #write out the response
> saveHtmlToFile ("EF_SiebelLoginLogout_Request101", result)
>
>
> I have increased the timeout (I think)
> connectionDefaults = HTTPPluginControl.getConnectionDefaults()
> connectionDefaults.setTimeout(120000)
>
> But still the same problem and there is no way 2 minutes pass before I
> get one of these errors.
>
> Does anyone know how I might capture the result when this scenario occurs?
>
> Thanks
> --
> Sean
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk