The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Who does the Login process saravana UNIX for Dummies Questions & Answers 3 01-22-2008 04:49 AM
Can no longer login. thebigm Forum Support Area for Unregistered Users & Account Problems 0 07-16-2007 10:52 AM
Killing a process that takes too long WeezelDs Shell Programming and Scripting 3 04-10-2006 12:33 PM
Interrupt signal Control C takes too long to terminate a process paqui UNIX for Advanced & Expert Users 8 10-17-2005 07:30 AM
login error(can not set process env.) amit UNIX for Advanced & Expert Users 5 12-23-2001 12:39 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-19-2007
Registered User
 

Join Date: Aug 2007
Location: Australia
Posts: 107
Login Process takes longer

Hello.

Since Yesterday, I notice that after giving telnet IP or SSH IP - it takes long time to display login: , I mean earlier after entering Server name It used to immediately ask for login ID and then password. But, now it takes min of 2-3 minute to ask for password.

Where can I check, whats going wrong?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-19-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,422
I usually use strace to have an idea of what a program is doing. Of course, if you do not have some C programming background the output may not make enough sense to you. It outputs the system calls being called. You can look at the neighbouring system calls around places where large latencies occur to give you an idea what happened at that time.

One possibility that I encounter recently is that reverse DNS of IPv4 addresses is down or simply being slow. In that case, the SSH process may need to timeout before trying another one. MySQL has similar issues as well.
Reply With Quote
  #3 (permalink)  
Old 10-20-2007
Registered User
 

Join Date: Aug 2007
Location: Australia
Posts: 107
Login Process takes longer on AIX

How to turn off DNS resolutions - First of all what is DNS, and why is it coming in picture here on UNIX? Direct telnet from server back to itself is also slow. I mean, it shows connected to server but login: prompt comes delayed only. There are no performance issues also on applications.

Please advice.
Reply With Quote
  #4 (permalink)  
Old 10-20-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,422
Exactly what happens to your system only you can trace yourself. Mine was confirmed related to DNS because that occurred on a supposedly idle server over a few days and afterwards the problem went away with no change made. That is a sign that DNS may be a cause. I could confirm with strace later that way.

For OpenSSH server side, there is a UseDNS configuration option in sshd_config. Set it to "no". Not sure about Telnet.

In fact this is in the OpenSSH FAQ:
OpenSSH FAQ
Reply With Quote
  #5 (permalink)  
Old 10-20-2007
mah mah is offline
Registered User
 

Join Date: Nov 2004
Posts: 6
Maybe try pinging the IP and check its connectiviti.
Reply With Quote
  #6 (permalink)  
Old 10-21-2007
Registered User
 

Join Date: Aug 2007
Location: Australia
Posts: 107
what is DNS? and How does it impact to login process? What solutions are there to follow IF the issue is caused by DNS ?
Reply With Quote
  #7 (permalink)  
Old 10-21-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
DNS - Domain Name Server

This is the mechanism that a host asks another host to resolve a name.

A good test is to...

login to the server
note the IP address of your client
type "nslookup ip-address" and see how long it takes to reply.

/etc/resolv.conf is a good place to start.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0