Re: Slow (Delayed) CGI request

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

 





On Sat, Sep 20, 2008 at 3:33 PM, John McGowan <john@xxxxxxxxxx> wrote:
I've got several apache servers that have been running for quite some time.  We don't normally use CGI in production, but I have a reason to use it now.  So, I've placed the CGI program, setup the config, and the CGI works.  However, every request to *any* of the executable CGI programs that I have all have about a 10s delay before executing.  Seems to be some sort of network timeout or bad DNS going on in the background, but I just can't find anything wrong with the config.

It's not a matter of the scripts themselves being slow... a simple helloworld perl script takes the same 10s as the captcha image generator that need to get working.

What's strange is that I have this problem across all of my servers...  some are FC3, 4, some are CentOS 5, Some are apache 2, and some are apache 2.2

The only thing i could think of was Host Name Lookups, or some misspelling in "Allow from all"  I've cleared those.  In fact, I sent my conf files to a friend, and he got them up and running on his server, and didn't have the same problem.

Can anybody think of some reason why this 10s delay would occur when hitting these simple CGI scripts?  I'm pretty sure the delay is outside of apache, due to the varied configurations it's happening on, but I'm stuck.

--
John



 
What an ace problem. I dont know the answer, but here are some questions. Have you used telnet over ssh while logged on locally on each servers to make sure its not with something common to the setups, which would mean that even locally it would take 10seconds. Im assuming a GET verb is used. Was your hello world perl script just that, or did it have a db connection are have part of the captcha generator code in common.
Do you use perl elsewhere on the servers other than the cgi-bin with no issues. how big is your path? Have you tcpdumped the request, Im assuming TTFB is the problem, that would tell you what the server was doing. Are using a proxy, or a firewall to hide these servers?
 
 

 

[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