tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] Crash in http connector random once a day
Date Sat, 16 Mar 2019 00:16:48 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Daniel,

On 3/14/19 06:09, Daniel Castilla | thin(k)design wrote:
> Hi,
> 
> I have long searched and haven't found any real hint how to solve
> my problem, so I am adressing you.
> 
> Here are my specifications:
> 
> Server version:        Apache Tomcat/8.5.15 Server built:
> May 5 2017 11:03:04 UTC Server number:         8.5.15.0 OS Name:
> Windows Server 2012 OS Version:            6.2 Architecture:
> amd64 Java Home:             C:\Program Files\Java\jre7 JVM
> Version:           1.7.0_25-b17 JVM Vendor:            Oracle
> Corporation
> 
> The tomcat connector I am using has no custom configuration:
> 
> <Connector port="8080" redirectPort="8443" protocol="HTTP/1.1"/>
> 
> I have a PHP Javabridge app (runs PHP CGI to access JAVA
> functions) running on tomcat and it's beeing accessed solely
> through localhost from other PHP scripts running on IIS. It goes as
> follows:
> 
> 1. Request sent to IIS 2. Run PHP on IIS, process the request and
> delegates a part of the processing to tomcat 3. Access tomcat
> through HTTP on localhost:8080 and wait maximum 60s for the
> response, retry up to 3 times

I'm curious, if you are willing to wait for 3 minutes for a response
from the Tomcat server, why bother closing the request after 1 minute
and re-trying? That could potentially turn a single long-running
request into 3 simultaneous long-running requests, which may cause a
cascade and take-down lots other requests.

Why not simply wait up to 3 minutes a single time?

> In the JAVA logs I can see a "java.net.SocketException: Connection 
> reset", which is logical, as the PHP process on IIS closed the 
> connection after the 60s timeout. I tried to set this timeout to 
> infinite, with the result that the PHP process on IIS waited
> between 8 and 24 hours, only to get a 500 from tomcat.

So Tomcat will wait up to 24 hours before returning the 500 response?
That seems .. unusual.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlyMQHAACgkQHPApP6U8
pFjRKBAAj2XN2+93wf3+eLxnBUvMSEoAmPEBqHRXAaIWRWxzUKLBZnq+BjjqccH6
Krlc9OemUIVAurwtOGuKx4erD+Iy2bCxAlit9NkeGJLKmPM1l90NXyglWNNqxZZD
1c5oXSm6Bmfws6Cw4Z0geEzRqHRWS6mBDl/W1XCmiK9wUMWmxFkol2xOrv74lMrO
m97ZK8uEEBFzFLqT4lF/n2SbP2A1BJjBfqCC44jBvAqlYN1DuXY/yIkjaIY/+Haw
ev0CJyjaICfu96QBNdQKvAnQTwHIUPy5SYBEQbgqyxXfiwbw7Gx+KXnSK0DK9N7b
Zs4VI93/R8y2+BhFZ8JjQjh0cJyJKxSl2TkL/CFkOdaWEFmRlqBZ6LDkujENFW6s
39x1Jni553+ISPe84nffCheIkGQDin/kP11cgRyJgmNyFTpXBKKTZkEy8zssJy28
Q2dLSMe3OIgpqVPOXeq/zb+uWwf/XOA4nBPVjY9MLuuZAedirpmHgzZgdCjNK/IT
eEZUjxFui56uvJTr4vQEf/dwMQVQB82KxezPaHD/qC3zldoVA86UWBWomwy/MeYb
Eaf+iHeOBZ2h4q+TJY3fy2wjd8xMHlLpPmtPY1+uBe6HzvuID/ytg9uoGMbWkXoe
w4Iaif3wPHItJld935Ccifi1UPhT/0N31GC6hVR+U7wbR9QlP2U=
=b7Gb
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message