Forum Discussion

ocherk2's avatar
ocherk2
Occasional Contributor
15 years ago

large message and ERROR:java.net.SocketException: Connection reset

Hi,
I have one problem with response messages.
I have WS method which returns recordset from database:

select id, name, description,parameter from t

and if recordset contains >1000 rows then I have this kind of error:

Tue Nov 03 16:01:13 CET 2009:ERROR:java.net.SocketException: Connection reset
  java.net.SocketException: Connection reset
  at java.net.SocketInputStream.read(Unknown Source)
  at java.io.BufferedInputStream.fill(Unknown Source)
  at java.io.BufferedInputStream.read(Unknown Source)


Then I only change

select top 100 id, name, description,parameter from t

and soap UI works fine.
How to manage this?

Thank you

3 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    hmm.. what if you increase the timeout in soapUI Preferences?

    regards,

    /Ole
    eviware.com
  • Hi all,

    "Connection reset" occurs in the server side means the server machines can't handle the request connection come in because the entire of the connections pool in server side has been used up (every request will use a new connection and will return to the connection pool to the jetty when the request is done).
    So, for windows itself, we need to enlarge the "MaxUserPort" of it and better reduce the "TcpTimedWaitDelay" value.

    For app server, like Jetty for SoapUI, we also need to enlarge the thread number for it. Now , for jetty , it's default maxThreads number is 250.

    Also, I use Jmeter as the load testing tools and enable the "keep alive" for each load request so it will open only one request for each when the load is large.

    Regards

    Vance