apache on redhat 9 first page slow

This is a discussion on apache on redhat 9 first page slow within the Linux Web Servers forums, part of the Web Server and Related Forums category; I have installed redhat 9 on two machines on two different networks and I get the same result. The first ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-03-2004
Ron
 
Posts: n/a
Default apache on redhat 9 first page slow

I have installed redhat 9 on two machines on two different networks
and I get the same result. The first page I access (from LAN) is slow
to load >20sec then subsequent pages are very fast unless I wait about
1 or 2 minutes then the first one is slow again. If I access the
website from the redhat machine(localhost) then access is very fast
even on the first page. Hostname lookups is off. I use php, and
postgresql. SSL and Perl are not loaded. Firewall is disabled (since
its just on a LAN). There is nothing in the error log. Any
suggestions where to start next?

Thanks for any help.
Ron
  #2 (permalink)  
Old 05-03-2004
Brian Borchers
 
Posts: n/a
Default Re: apache on redhat 9 first page slow

>I have installed redhat 9 on two machines on two different networks
>and I get the same result. The first page I access (from LAN) is slow
>to load >20sec then subsequent pages are very fast unless I wait about
>1 or 2 minutes then the first one is slow again. If I access the
>website from the redhat machine(localhost) then access is very fast
>even on the first page. Hostname lookups is off. I use php, and
>postgresql. SSL and Perl are not loaded. Firewall is disabled (since
>its just on a LAN). There is nothing in the error log. Any
>suggestions where to start next?


This could be happening because the client machine has trouble with
the DNS lookup. After it finally figures out the domain name,
subsequent pages will load quickly because it will have cached the IP
address. To test this hypothesis, use the actual numerical IP address
in the URL instead of the domain name.

--
Brian Borchers borchers@nmt.edu
Department of Mathematics http://www.nmt.edu/~borchers/
New Mexico Tech Phone: 505-835-5813
Socorro, NM 87801 FAX: 505-835-5366


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
  #3 (permalink)  
Old 05-04-2004
George Self
 
Posts: n/a
Default Re: apache on redhat 9 first page slow

On 3 May 2004 12:53:16 -0700, ronjrcrappy@yahoo.com (Ron) wrote:

>I have installed redhat 9 on two machines on two different networks
>and I get the same result. The first page I access (from LAN) is slow
>to load >20sec then subsequent pages are very fast unless I wait about
>1 or 2 minutes then the first one is slow again. If I access the
>website from the redhat machine(localhost) then access is very fast
>even on the first page. Hostname lookups is off. I use php, and
>postgresql. SSL and Perl are not loaded. Firewall is disabled (since
>its just on a LAN). There is nothing in the error log. Any
>suggestions where to start next?
>
>Thanks for any help.
>Ron


Wow, I think I have exactly the same issue. I've noticed it while
loading both Web pages and FTP access. I'm running RH9 (Enterprise
Edition) with Apache; all packages updated constantly. I don't have
anything else running on that server (other than the unusual
services). On first connect, whether by FTP or HTTP the information
takes 20-30 seconds to load. However, later accesses are much faster.

I thought at first it was a DNS error. However, I only have three
lines in resolve.conf. The server's name and two IP addresses that are
both known good name servers.

My machine is behind a pretty healthy firewall. However, I seem to get
the same delay whether I try to reach it from behind the firewall or
outside.

I would appreciate any ideas to try.

--George
  #4 (permalink)  
Old 05-04-2004
Dan Wilga
 
Posts: n/a
Default Re: apache on redhat 9 first page slow

In article <c7699l$q3$1@rainbow.nmt.edu>,
borchers@nmt.edu (Brian Borchers) wrote:

> >I have installed redhat 9 on two machines on two different networks
> >and I get the same result. The first page I access (from LAN) is slow
> >to load >20sec then subsequent pages are very fast unless I wait about
> >1 or 2 minutes then the first one is slow again. If I access the
> >website from the redhat machine(localhost) then access is very fast
> >even on the first page. Hostname lookups is off. I use php, and
> >postgresql. SSL and Perl are not loaded. Firewall is disabled (since
> >its just on a LAN). There is nothing in the error log. Any
> >suggestions where to start next?

>
> This could be happening because the client machine has trouble with
> the DNS lookup. After it finally figures out the domain name,
> subsequent pages will load quickly because it will have cached the IP
> address. To test this hypothesis, use the actual numerical IP address
> in the URL instead of the domain name.


It could also be the *server*, if you have reverse lookups turned on in
Apache, and it's having trouble reaching a DNS server. Look for the
"HostNameLookups" directive.

--
Dan Wilga dwilga-MUNGE@mtholyoke.edu
** Remove the -MUNGE in my address to reply **
  #5 (permalink)  
Old 05-06-2004
Ron
 
Posts: n/a
Default Re: apache on redhat 9 first page slow

borchers@nmt.edu (Brian Borchers) wrote in message news:<c7699l$q3$1@rainbow.nmt.edu>...


> This could be happening because the client machine has trouble with
> the DNS lookup. After it finally figures out the domain name,
> subsequent pages will load quickly because it will have cached the IP
> address. To test this hypothesis, use the actual numerical IP address
> in the URL instead of the domain name.


I am using the IP address. Just to test though I put an entry in the
hosts file and got the same response.
  #6 (permalink)  
Old 05-09-2004
Bav
 
Posts: n/a
Default Re: apache on redhat 9 first page slow

Guys, I seem to also have the same problem. I too am running RH9 and
apache 2.0. All the other computers on the LAN takes forever to find
the webserver.

The other problem I am having is my index.htm files are not loading up
automatically. I'm pertty new to linux so I'm using the GUI to get
around.

I have included index.htm index.html index.shtm in the http.conf file.

Should I be looking out for anything else?
Also I'm interested if anyone fix the LAN Slow problem as well

Thanks
  #7 (permalink)  
Old 06-01-2004
Bav
 
Posts: n/a
Default Re: apache on redhat 9 first page slow

Just following up if anyone has figured out the first page slow
problem.
As for the index.html problem, this is fix by adding index.html again
to the site config tab under each Vhost site(using gui).
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:45 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0