Re: Strange delays

2000-07-04 Thread Robin Berjon

At 07:09 04/07/2000 +0200, Eric Jain wrote:
Once in a while the first page being requested by a client is delayed
by approximately 10s, even though there is no significant load on the
server. Usual delays are between 0 and 1s, rarely up to 4s (complex
database queries).

Any Ideas where to look for the cause of this?

I first thought the problem might be with the database connections.
However these same delays also happen with pages, that don't need to
connect at all...

I used to have the same problem when I was using Apache::Session with
semaphore locking, and using another sort of locking fixed that. Are you
using semaphores ?



-- robin b.
Always remember you're unique just like everyone else. 




Strange delays

2000-07-03 Thread Eric Jain

Once in a while the first page being requested by a client is delayed
by approximately 10s, even though there is no significant load on the
server. Usual delays are between 0 and 1s, rarely up to 4s (complex
database queries).

Any Ideas where to look for the cause of this?

I first thought the problem might be with the database connections.
However these same delays also happen with pages, that don't need to
connect at all...


--
Eric Jain



httpd.conf
--

...
Timeout  300
KeepAliveOn
MaxKeepAliveRequests 100
KeepAliveTimeout 5
MinSpareServers  10
MaxSpareServers  20
StartServers 10
MaxClients   30
MaxRequestsPerChild  1000
...


startup.pl
--

use strict;

use Apache::GTopLimit;
$Apache::GTopLimit::MAX_PROCESS_SIZE = 15000;

require BioDoc::Page;
require BioDoc::SQL;

use DBI ();
DBI-install_driver("Pg");

use CGI ();
CGI-compile(':standard');

1;