Server sometimes drops AJAX requests
NickName:Daniel Wilson Ask DateTime:2016-03-12T02:55:41

Server sometimes drops AJAX requests

My customer's web application sometimes drops AJAX requests.

It's a LAMP site. Regular browser requests are uninhibited. The web app includes a slide show and that goes right on working.

However, logins involve an AJAX request (jQuery) and a couple times a day, the login requests will not work. The problem clears up in about 5 minutes.

When logins are failing, users logged in can do most operations but if they're doing other operations involving AJAX requests (certain add/edit operations), those also do not respond.

The Apache logs do not record the requests.

The problem is reported to always occur at the same time in the hour 40-45 minutes past the hour. I haven't proven this, but the customer is fairly sure.

Figuring out what happens at that time of the hour is one approach I'm working on. The obvious cron job fires every 15 minutes, not just as the 40-45 mark.

But WHAT kind of thing am I looking for? Both TOP and my VM stats indicate normal usage of CPU & RAM. The VM stats indicate normal network & disk usage.

I've upgraded to the latest jQuery and I've moved my static files off to a separate server running Lighttpd. The DB is on another VM on the same host. Its usage stats fail to show anything unusual at the problem times as well.

What else should I be looking at?

Thanks!

Copyright Notice:Content Author:「Daniel Wilson」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/35947837/server-sometimes-drops-ajax-requests

More about “Server sometimes drops AJAX requests” related questions

Server sometimes drops AJAX requests

My customer's web application sometimes drops AJAX requests. It's a LAMP site. Regular browser requests are uninhibited. The web app includes a slide show and that goes right on working. However,

Show Detail

Ajax - Checking for connection drops

I am writing a Web chat application. It uses a long polling mechanism. Basically you send a request to the server, and the server holds it until there is data to send back. Then it responds, and th...

Show Detail

Why Chrome sometimes makes 2 AJAX requests instead of 1?

I have encountered a strange behaviour of current version of Google Chrome (44.0.2403.157) on OS X. When I do AJAX (XHR) request with method GET with my Chrome sometimes makes 1 request and someti...

Show Detail

Multiple AJAX requests on a page efficiency

I have an application of which loads around 5 sections of data using AJAX. I find that on load of the application, sometimes (1 in 8) one or more of the sections hang and sometimes does not comple...

Show Detail

Ajax Requests again

I have again a problem with my ajax requests. my architecture hasn't change, so I use a Java servlet on the server side, and on the client I'm running a JavaScript application, programmed and teste...

Show Detail

Node.js server not receiving AJAX requests?

I'm using Express and Node.jx 0.6.7. Server is EC2 Small instance.. For some reason, Node.js is sometimes not receiving my ajax requests (sometimes). Firebug would say "pending..." and the spinn...

Show Detail

Detecting ajax requests in selenium

I am testing a single page app using selenium. I want to test to make sure that the app is only going back to the server when it needs to. Is there a way in selenium to assert that no ajax request...

Show Detail

Ignoring old multiple asynchronous ajax requests

I've got a custom javascript autocomplete script that hits the server with multiple asynchronous ajax requests. (Everytime a key gets pressed.) I've noticed that sometimes an earlier ajax request...

Show Detail

Simultaneous AJAX requests causes PHP Session not to be updated properly

In my application I have an AJAX request that runs every 10 seconds, which tells the server that the user is still connected. When a user does an action another AJAX request is sent to the server w...

Show Detail

cross-domain jquery.ajax calls are getting aborted before sending requests to cross-domain server

We are using jquery.ajax() to run cross domain ajax calls. Sometimes we observed that these ajax calls were getting aborted and its http requests were not sent to cross-domain server. When ajax cal...

Show Detail