Requests taking a lot of time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am struggling with an issue and I have the following set up that reproduces the problem.
I am running apache 2.2 on Centos 5.0.
On the client side, I have a web page that polls the server every second. Using prototypejs, it looks like that:
setInterval('polling();', 1000); 
function polling()
{
  new Ajax.Request
  ( 'polling_server.php',
    { onSuccess: function(transport)
      {
      }
    }
  );
}

the polling_server.php does nothing:
<?php ?>
Most queries takes around 100-150 ms for a round trip (measured using firebug)
Sooner or later though, one of those requests will take a lof of time and will timeout after 74000ms.
Also, there are sequences of requests that  take a lot of time (5, 10 seconds sometimes more) and then the system gets back to the normal 100ms.
it looks like a jam. I'd like to understand why this is happening so that I can fix it. How could I explore the issue further?
Where does the 74000ms come from? Is it something I can change in apache?

Thanks


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux