Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Misc > Slow initial connection delay for redhat server

Forgot Password?
 Misc   Any questions or Linux discussion that does not fit in any of the other technical areas.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-24-2003   #1 (permalink)
Just Joined!
 
Join Date: Jun 2003
Location: Canada eh?
Posts: 16
Slow initial connection delay for redhat server

Hi all.

I am having a problem with my Redhat 7.3 server.
I have it setup running an FTP server, and Apache, which is serving a few websites.

It's been running great for almost a year, but recently it's started having REALLY slow initial connection delays.

If you go to www.jaggedpath.com (for example, that's one of the hosted sites), the first time you go to the URL, it takes forever to start loading the page information. Once it loads the first time, other parts of the same site load ok.
FTP is the same. You'll try to FTP to any account (anonymous or otherwise), it will connect, then you will wait for a long time before being presented with the login / password prompts.
But once logged in, it's fast.

I've talked to my ISP about a possible reverse DNS problem, they swear up and down that their DNS is just fine.

The interesting thing is, if I was to put your IP into the /etc/hosts file, the initial connect is instant. No delay at all.

Any help GREATLY appreciated!
I'm going nuts here.

Take care
happydude is offline  



Reply With Quote
Old 06-24-2003   #2 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
Run "host 217.215.27.171" (that's my IP address) on the server and see if it can resolve that quickly. It should resolve to as6-4-8.rny.s.bonet.se.
Dolda2000 is offline   Reply With Quote
Old 06-24-2003   #3 (permalink)
Just Joined!
 
Join Date: Jun 2003
Location: Canada eh?
Posts: 16
Hi Dolda2000, thanks for the quick reply.

It resolves almost instantly.
happydude is offline   Reply With Quote
Old 06-24-2003   #4 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
How busy is this server? Can you try to run apache in debugging mode and get a strace or ltrace dump, or alternatively attach gdb to it at that point and get a stacktrace, from the worker process while it does this?
Dolda2000 is offline   Reply With Quote
Old 06-24-2003   #5 (permalink)
Just Joined!
 
Join Date: Jun 2003
Location: Canada eh?
Posts: 16
Would it be an Apache problem though since Telnet and FTP initial connections are also effected?

It seems any route of connecting to the server (wit hthe exception of VNC) has an initial connection delay, then it works ok until you try to make another connection later.
happydude is offline   Reply With Quote
Old 06-24-2003   #6 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
Yeah, right, I forgot that. Then just set up, for example, an alternate FTP service in inetd and debug that one instead. That's probably a lot easier.
Dolda2000 is offline   Reply With Quote
Old 06-25-2003   #7 (permalink)
Linux Engineer
 
Join Date: Apr 2003
Location: Sweden
Posts: 796
Have you checked that you network interfaces are running in 100mb full duplex?? If you are behind a switch its possible that it have changed the speed prefs to half duplex, if you havent set it hard in /etc/modules.conf?? Mostley you get this slow connections as result.

Regards
__________________
Regards

Andutt
andutt is offline   Reply With Quote
Old 06-25-2003   #8 (permalink)
Just Joined!
 
Join Date: Jun 2003
Location: Canada eh?
Posts: 16
Thanks guys.
The server isn't under all that much load.
The most I've sen it go to was 24% idle, and that was just for a split second.
Most of the time it's jumping around 99% to 90% idle.

The NIC is set to full duplex 100bt

It's strange, because as soon as the initial connection is made (After the first delay), it's fast as normal.
happydude is offline   Reply With Quote
Old 06-25-2003   #9 (permalink)
Linux Engineer
 
Join Date: Apr 2003
Location: Sweden
Posts: 796
How about your ISP:s DNS and proxy?? is it only you how have this ISP that have slow initial connections.

Regards
__________________
Regards

Andutt
andutt is offline   Reply With Quote
Old 06-25-2003   #10 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
Did you consider debugging the FTP service?
Dolda2000 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:58 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1