Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache page loading too long

Status
Not open for further replies.

wjod

IS-IT--Management
Nov 11, 2004
6
IE
I have a perl program which dynamically generates a web page loading in a javascript file in the process.
The script extracts the contents from a section of Novells eDirectory and displays the result in the browser.

I have tried the same files on two systems.

a) Windows 2000 desktop using localhost/scripts as the location of the files. The data is retreived and displayed correctly. The process takes about 5 seconds to load from start to finish.

b) Apache v2 on a netware server using as the location of the files. The process takes upto 20 seconds from start to finish, the retrieval and display is complete within 5 seconds but the browser does not indcate that it has finished for a further 15-16 seconds. Until this is complete the functions defined in the javascript code are unavailable.

I am at a loss why the Apache system is causing such a significant delay, any ideas whould be much appreciated...

TIA
 
It's probably a delayed close on the socket. Apache does this in case the browser wants to send another request, it won't have to open a new port, but can reuse the open connection.
 
but what can I do about it???
 
Have you tried changing the MaxKeepAliveRequests directive or perhaps KeepAliveTimeout? You may want to also see if modifying MaxRequestsPerChild and ThreadsPerChild will help with the delayed closing of the socket.

Rninja

sl.jpg

 
Is there any way to finding out what is happening between the time the page is displayed and the time the browser actually finishes communicating with the server ... utilities .. log files or otherwise?

Our apache v2 install is a default install provided as part of the Netware65 installation.

The only addition we have made is the addition of the cgi module and the enabling of perl scripting from the cgi-bin directory. ...
 
On the linux box make sure your /etc/resolv.conf is properly configured. Or make sure you have HostnameLookups Off.

People sometimes don't realize that the reverse lookup can cause these delays if the box can not find its nameserver.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top