LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-08-2005, 12:22 PM   #1
rpdillon
LQ Newbie
 
Registered: May 2004
Distribution: Gentoo (main box, mythtv and laptop)
Posts: 14

Rep: Reputation: 0
Unhappy Slow web server response for net IP, fast for 127.0.0.1


Googled around quite a bit on this one, but no luck so far.

I'm installing a wiki (MoinMoin) on a Red Hat 9 server, and all has gone well, so far. I tested the install locally by visiting 127.0.0.1 and it was working correctly, and had good response time.

Then I connected (again locally), but used its network IP address, and suddenly the response time was awful. The pages eventually come up, but it takes 15-30 seconds on a LAN connection.

I've checked my iptables and routing tables, and everything looks fine. All other services are snappy. I've run the same site on both Apache and Twisted (a python webserver), and I experience the same delays when accessing using the network IP, and they are both fast when using localhost or 127.0.0.1.

I was running python 2.2 (Red Hat 9 default), but upgraded to python 2.3 thinking that was the problem. Same results after restarting the server.

I'm thinking it's a timeout of some kind inside the MoinMoin script, but it hasn't been reported anywhere I can find, so I'm thinking it's a problem caused by a misconfiguration somewhere.

The log files are reporting that pages are served, but aren't providing any details on whatever is holding up the server.

Any ideas?
 
Old 03-09-2005, 09:43 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
First thing I would check is DNS. Set up your logging in your webserver to no do LookUps.

Other DNS tricks, in your nsswitch.conf file, make sure that it looks up IP -> DNS name in files first, followed by DNS. Then in your /etc/hosts, make sure you have the name of the computer that you call the page by as well as it's corresponding IP.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow response from MySQL on other server sarmadys Linux - Networking 3 11-03-2005 11:12 AM
Why is my Web Server So Slow? carlosinfl Linux - Networking 3 10-28-2005 07:58 AM
apache slow, only fast when i check "Use a proxy server.... sabre81 Linux - Networking 1 08-05-2005 07:41 AM
nfs / nis problem - slow copy to servermounts but fast from server to local hdd krischeu Linux - Networking 1 06-09-2005 11:05 AM
127.0.0.1 No response received -- 1000ms pudhiyavan General 1 12-08-2004 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration