Re: [Speedycgi-users] Slow SpeedyCGI response / multiple parallel requests
Brought to you by:
samh
|
From: Thomas A. <ae...@gr...> - 2003-12-22 19:39:33
|
On Thu, 2003-12-04 at 00:54, Sam Horrocks wrote:
> You could try running truss or strace on the backends to see what they're
> doing - you might get a clue there.
During debugging I ran into some strange effect: I decided to write a=20
small wrapper around my script (it's one single CGI with a number of
different functions depending on form arguments passed - ideal job for
SpeedyCGI :-)) logging start time and duration of one invocation.
I was really surprised to see the problem was gone!!!!
Now, if I use a simple wrapper like e.g.
#!/bin/sh
/usr/bin/speedycgi /tmp/myscript.pl
The pages (with myscript.pl generated images) are loaded stunningly
fast. If I use /tmp/myscript.pl directly (it starts with
#!/usr/bin/speedycgi) or use a wrapper like
#!/bin/sh
exec /usr/bin/speedycgi /tmp/myscript.pl
Then the script answers very fast, but somehow there are pauses of
several seconds between some (not each) of the invocations. If I use
the above wrapper (without "exec") the problem is gone.=20
Now I've got a workaround but no idea what's happening - might this
be some problem in signal handling or with STDIN/STDOUT/STDERR handling?
Best regards,
Tom
---------------------------------------------------------------------------=
-
Thomas Aeby, Kirchweg 40, 1735 Giffers, Switzerland, Voice : (+41)26
4180040
Internet: ae...@gr... PGP public key
available
---------------------------------------------------------------------------=
-
A day without sunshine is like night.
|