tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: mod_jk resubmitting request to Tomcat
Date Mon, 06 Jun 2016 19:12:24 GMT
Hash: SHA1


On 6/4/16 2:00 PM, Jerry Malcolm wrote:
> I am calling a JSP to start a fairly long-running process in
> Tomcat. I'm not using the page response data.  The JSP is simply a
> way to initiate the process.  The JSP simply returns "OK" or "RC=".
> However, mod_jk gets impatient, and after about 5 minutes, it
> decides to send the request to Tomcat again, which kicks off
> another instance of the back-end process (obviously not what I
> want).  Following is from the mod_jk log:
>>>> can't receive the response message from tomcat, network
>>>> problems or
> tomcat is down (, err=-60
>>>> Tomcat is down or refused connection. No response has been
>>>> sent to
> the client (yet)
>>>> receiving from tomcat failed, recoverable operation
>>>> attempt=0 sending request to tomcat failed,  recoverable
>>>> operation attempt=1
> How can I tell mod_jk to be more patient for this request and not
> to resubmit it?

Maybe tell mod_jk which requests are okay to retry and how many times?

Better yet, change your JSP to launch the long-running process using a
thread executor and return a complete response to the client. Then
there's no problem.

- -chris
Comment: GPGTools -
Comment: Using GnuPG with Thunderbird -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message