Linux: strange timeouts
Posted: Wed Jun 22, 2005 6:21 pm
[SYMPTOMS]
Strange timeouts occuring all over the system. The easiest one to check/reproduce is probably logging in using SSH:
the "username"-prompt appears immediately, but it takes ~20sec. until the "password" prompt shows up. After successful login, it takes another ~20sec. again until you get a shell prompt.
---------------
I've even had the exact same strange timeout when trying to connect to an Oracle database: The queries itself were damn fast, but logging into the database took forever!
---------------
[SOLUTION]
Check if your system can "reach" (ping?) the nameservers in /etc/resolv.conf - if it can't, it will try to, but timeout - so if you cannot fix this connection problem (or you don't want to), simply DELETE all invalid entries within the /etc/resolv.conf - and that's it!
Strange timeouts occuring all over the system. The easiest one to check/reproduce is probably logging in using SSH:
the "username"-prompt appears immediately, but it takes ~20sec. until the "password" prompt shows up. After successful login, it takes another ~20sec. again until you get a shell prompt.
---------------
I've even had the exact same strange timeout when trying to connect to an Oracle database: The queries itself were damn fast, but logging into the database took forever!
---------------
[SOLUTION]
Check if your system can "reach" (ping?) the nameservers in /etc/resolv.conf - if it can't, it will try to, but timeout - so if you cannot fix this connection problem (or you don't want to), simply DELETE all invalid entries within the /etc/resolv.conf - and that's it!