LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-23-2004, 07:46 AM   #1
jdf1973uk
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
Angry Taking 30-60secs to connect to redhat 8 server


Hi

I am running quite a few redhat 8 servers and sometimes they start to really grind when asked for a TCP/IP connection. I have a mysql server and it takes 30 seconds to connect to it.

I've turned IPTables off, but in any event it had no packet matching enabled, so it shouldn't have affected it.

When I run netstat, it sits there for about 30 - 60 seconds and then spits all of the information out in one go.

The servers seem to go slow, and a reboot doesn't speed them up. They seem to get better by themselves.

gnome-system-monitor is saying that the CPU usage is about 0 - 2 % while I'm waiting for these connections.

I have tried restarting the xinetd and networking itself, but to no avail.

Once a connection is made, there are no problems. The machines are different types, but they all run redhat 8.

Please help!! I'm having real problems
 
Old 01-24-2004, 11:02 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

From what you are saying it could be a dns problem, perhaps you are logging all requests and the services are trying to lookup dns entries for all the connecting hosts, this could delay a connection if the dns is slow to respond.

The next time you see the connections becoming slow put your IP address next to a host entry in the servers hosts file and see if it speeds the connections up for you compared to everyone else. Note that the IP you need to use is the one you identify your self with to the server, this may not be your private IP address.
 
Old 01-26-2004, 04:48 AM   #3
jdf1973uk
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Original Poster
Rep: Reputation: 0
My friend,

You are an absolute life saver. Thank you very much indeed
 
Old 01-26-2004, 01:05 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
No problem - I assume that it was DNS?
 
Old 01-27-2004, 04:23 AM   #5
jdf1973uk
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Yes it was. Populating /etc/hosts is something that I hadn't got round to because (stupidly) i assumed that things wouldn't do a DNS query on a private address. But obviously if you have an internal DNS server then it will.
 
  


Reply



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
How do i connect my redhat linux9 pc to a windows 2003 server that is also domain trpjagan Linux - Networking 6 10-13-2006 12:22 AM
Can't connect to RedHat 9 SMTP server from XP bper Linux - Networking 1 10-22-2003 09:07 AM
Is samba required to connect to a Windows Advanced server from RedHat 8.0 server? NemesisStar Linux - Hardware 1 10-20-2003 12:32 AM
Can't connect to MySQL server remotely on RedHat 9 bper Red Hat 4 10-02-2003 10:56 AM
how to connect redhat linux as client to the novell server? halovivek Linux - Networking 3 08-17-2003 12:12 PM

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

All times are GMT -5. The time now is 02:58 AM.

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