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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linux apache slow to respond

Status
Not open for further replies.

kaancho12

Technical User
Feb 22, 2005
191
hi,
we are having problem with our fedora core 2 server. we have apache, mysql installed and everything was running fine yesterday. Today though the apache seems to respond awfully slow. i checked the process list through "top" and "ps aux" and there is nothing that's bogging the server and no unusual programs that's running in the server. when i query something through mysql command line it runs fine. But when we try accessing the server through network the response time is killing. The only thing i changed yesterday was the "resolv.conf" file. i even restarted the server today but without any luck.
any idea ???
thanks
ko12
 
resolv.conf" ... hmmm.. that's where you specify your DNS servers. go back with it, I'm pretty sure the server is trying to reach the client using the loooooong way.

Cheers.

Chacal, Inc.[wavey]
 
thanks for your response Chacalinc. But the DNS server that we used to use is no longer functional which is why i had to add a new server to the configuration file. ok, one another thing is we call the server by a localname: "local" so when someone types in - it shows them the local server. right now its slow when i type in: " or "thanks
ko12
 
try nslookup from a client (not the server!)

nslookup tron.company.com

-or-
nslookup tron

Chacal, Inc.[wavey]
 
well, the "nslookup tron" did not give any results because the name is registered only in the internal network. i found the old dns-server address in this file though "./lib/dhcp/dhclient-eth0.leases" --dont know if this has anything todo with the file or not?
thanks
 
the "nslookup tron" did not give any results because the name is registered only in the internal network.

and how are you trying to get some page from if it is not resolved from nowhere? I mean, in order to get some page from (or even get in to the web server) you need to know (as client browsing) the IP and you get it through the DNS, but you say that this server is not in the DNS.. so how?

BTW, that file is for DHCP, nothing to do with that...

Chacal, Inc.[wavey]
 
the hosts file on the server has this information:
127.0.0.1 localhost localhost.localdomain localhost tron

I thought this was set in the router but i can't find it there so i am not sure where the configuration for is set.
ko12
 
What happens if you just enter the server ip address in the browser address bar (without If it works ok, then you have a problem with name resolution.
 
well, i tried doing that but the speed is the same (slow) for both the ip address and the localname.
i will keep on looking but yeah any input is welcome.
thanks
ko12
 
When you enter just the ip addr (w/o the client does not attempt to resolve the name - it sends the http request straight to the addr specified (when prefixed with http:// it treats the numeric addr as a name). If you see the same results when entering just the ip addr, your problem is not name resolution.

Try pulling up the same pages on the server itself. If the response time is slow, the problem is on the server. If not, maybe you have a network level issue - check ping response time, etc.
 
no worries,
thanks for all the respones....it might have been the linksys router on our network----the server works fine for now

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top