tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard W. Smith, Jr." <smithh032...@gmail.com>
Subject Re: Avoiding/Handling SocketTimeoutException(s) when web application serving resources to mobile clients
Date Sun, 10 Nov 2013 22:44:03 GMT
On Sun, Nov 10, 2013 at 5:08 PM, Igor Cicimov <icicimov@gmail.com> wrote:

>
> In my experience SocketTimeoutException comes up in case of misbehaving
> browser (read IE 8 and older), i.e. the client fails to send the complete
> request and the socket timeout strikes.


interesting, thanks. This error occurs when different endusers are
accessing web application via Google Chrome on Android tablet or phone, and
Google Chrome (or Safari) on iPad.


>
> You don't provide information about the Java and OS version you are running
> your app on since this might be related to one of them (or maybe I missed
> that info).


my apologies,

JVM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08, mixed mode)
Java: version 1.7.0_45, vendor Oracle Corporation
OS: Microsoft Windows Server 2008 R2 64-bit


> For Sun Java for example you can try the following:
>
> -Dsun.net.client.defaultReadTimeout=1800000
>
> which will increase the socket timeout to 30 minutes lets say if the
> default one is not enough in case or slow client. Another thing to check is
> your OS socket timeout setting, on linux systems for example:
>
> net.ipv4.tcp_keepalive_time = 300
>
> and try adjusting it according to your needs.
>

noted, thanks.


>
> Would love to hear some other people experiences and thoughts regarding
> this as well, this is really annoying one to troubleshoot.
>

agreed/ditto. thanks for your response.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message