Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    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

  2. #2
    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.

  3. #3
    Just Joined!
    Join Date
    Jun 2003
    Location
    Canada eh?
    Posts
    16
    Hi Dolda2000, thanks for the quick reply.

    It resolves almost instantly.

  4. $spacer_open
    $spacer_close
  5. #4
    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?

  6. #5
    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.

  7. #6
    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.

  8. #7
    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

  9. #8
    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.

  10. #9
    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

  11. #10
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Did you consider debugging the FTP service?

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •