Wednesday, 15 August 2012

apache2 - Is there a limit to the number of Ajax requests that can be launched on Apache -


What is the limit of the number of Ajax requests at the same time compared to Apache server? For example, to update the div elements on one page (prototype JS), consider the following function:

  function trigger_content_update (cell) {// Asynchronous: incorrectly $$ ($$ working correctly '.update') Each (function (update_item) {new Ajax request ('/ neighboring .state = update_template and dummy =' + (new date ()). GetTime (), {asynchronous: wrong, parameters: {($ (elm)! == faucet) {$ (Elm) .update (response); $ (elm) .responseText)}}}})}}; }  

On my HTML page, there are 8 devil elements which are marked with the "Update" CSS selector, thus 8 Ajax requests are being launched. This code works incorrectly with Asynchronous property, but as soon as I set up asynchronous I can see in most Ajax requests (firebug) by returning 500 status (Internal Server Error).

It is a one time, Apache needs to be restarted to recover it.

I check the server side code which is handling the request.

As far as Apache is concerned, your Ajax request is only a post - as you submit a form. 8 Simultaneous requests can be easily controlled by Apache, so it turns out that Apache is running server side code - maybe it's trying to write and lock any data file?


No comments:

Post a Comment