logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Timeout with Ajax-Requests between Apache and Tomcat
Author
Biermo



Joined: 20 Feb 2013
Posts: 1
Location: Germany, Dortmund

PostPosted: Wed 20 Feb '13 12:57    Post subject: Timeout with Ajax-Requests between Apache and Tomcat Reply with quote

Hello everybody,

I am quite new to Apache and need some help. I have an Apache Server (2.4.3) and a Tomcat Server (7.0.36) and
have some Java Applications deployed.


Everything works fine, but when we start a quite long Ajax process, I see in my Java Application, that
a Ajax request is received and starts processing - everything fine.

But during processing of the first request, I see a second request starts after 5 minutes :

Code:

[Tue Feb 19 07:11:43 2013] ajaxEventTriggerd
[Tue Feb 19 07:16:45 2013] ajaxEventTriggerd


I first thought it is the Ajax routine or the browser, but after firing the first request, I closed the browser,
and still the second event is fired!

I looked into my apache log file and see:
Code:

[Tue Feb 19 07:11:32 2013] liferaycluster 31.171.246.183 0.023790
[Tue Feb 19 07:11:33 2013] liferaycluster 31.171.246.183 0.024367
[Tue Feb 19 07:11:35 2013] liferaycluster 31.171.246.183 0.002889
[Tue Feb 19 07:11:42 2013] liferaycluster 31.171.246.183 0.517402
[Tue Feb 19 07:16:44 2013] [2854:139640191284992] [error] ajp_get_reply::jk_ajp_common.c (2126): (server-1) Tomcat is down or refused connection. No response has been sent to the client (yet)
[Tue Feb 19 07:16:44 2013] liferaycluster 31.171.246.183 300.675558


My guess:
Apache thinks that tomcat is down or had an error and fires the request again.

Does anyone know how to configure the 5 minutes delay to set it to 10 minutes or turn it off at all?

Regards,
Timo
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Thu 21 Feb '13 20:21    Post subject: Reply with quote

Hi Timo,
are you using mod_jk or mod_proxy_ajp?
Back to top


Reply to topic   Topic: Timeout with Ajax-Requests between Apache and Tomcat View previous topic :: View next topic
Post new topic   Forum Index -> Apache