LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 04-13-2012, 02:03 PM   #1
chekhov_neo
LQ Newbie
 
Registered: May 2010
Location: Bangalore
Distribution: Ubuntu
Posts: 22

Rep: Reputation: 2
Remote CentOS server is slow


Hello,

I'm accessing a remote CentOS server through SSH. Any command I issue to the server executes with a delay. Sometimes they take too long.

Using ping I found the RTT to be just 0.5 ms. I'm facing this problem ever since I solved the issue mentioned in this thread.

I found a few threads which were dealing with similar issue but they didn't help me much.

Any help would be appreciated. Thank you.
 
Old 04-14-2012, 03:33 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,999
Blog Entries: 54

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
Quote:
Originally Posted by chekhov_neo View Post
Using ping I found the RTT to be just 0.5 ms.
Pinging a machine is nice to see if it is Live (if it accepts ping) but you don't use ICMP for actual traffic. You use TCP mostly so I suggest you use 'tcptraceroute' or 'lft' instead to test port accessibility and "Internet weather" conditions.


Quote:
Originally Posted by chekhov_neo View Post
Any command I issue to the server executes with a delay. Sometimes they take too long.
- What is long? Run
Code:
time \ps
on that machine and compare with another one.
- Is the load on the machine significant or not?
- Is there any difference between commands issued as unprivileged user or root?
- Did you ever fully revert your changes?
0. /var/log/yum.log lists packages removed at that time so if you removed them on say Feb 26th 01:01:02 then you could check with
Code:
awk '/Feb.*26.*01:01:02.*Erased: / {print $NF}' /var/log/yum.log|while read PKG; do rpm -q "${PKG}"; done
if packages are installed.
1. verify your RPMDB with
Code:
rpm -Vva 2>&1 | grep -v '^\.\{8\}'
and check output (see "verify options" in 'man rpm' for output format listing).
2. Wrt your other thread copying files over from another machine may make it work again but it doesn't address proper package installation (like running pre- and post-installation scripts) or RPMDB integrity. Re-installing damaged packages properly would.
- Does any system log file that (r)syslog(-ng) logs to show any errors?
- Do you have a backup from before your changes that you can compare details with?

Last edited by unSpawn; 04-14-2012 at 03:35 AM. Reason: //More is more
 
1 members found this post helpful.
Old 04-16-2012, 05:25 PM   #3
chekhov_neo
LQ Newbie
 
Registered: May 2010
Location: Bangalore
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 2
Hi unSpawn,

Thank you for your response! I got the problem solved!

Quote:
Originally Posted by unSpawn View Post
Pinging a machine is nice to see if it is Live (if it accepts ping) but you don't use ICMP for actual traffic. You use TCP mostly so I suggest you use 'tcptraceroute' or 'lft' instead to test port accessibility and "Internet weather" conditions.



- What is long? Run
Code:
time \ps
on that machine and compare with another one.
As suggested by you, I tried the tcptraceroute and time \ps commands. The former gave a latency of 27 ms approximately while the latter gave the following:

Code:
$time \ps
  PID TTY          TIME CMD
15813 pts/6    00:00:00 bash
15857 pts/6    00:00:00 ps

real    0m0.012s
user    0m0.004s
sys     0m0.008s
These delays were too less to cause the kind of delay I was experiencing.

Quote:
Originally Posted by unSpawn View Post
- Did you ever fully revert your changes?
0. /var/log/yum.log lists packages removed at that time so if you removed them on say Feb 26th 01:01:02 then you could check with
Code:
awk '/Feb.*26.*01:01:02.*Erased: / {print $NF}' /var/log/yum.log|while read PKG; do rpm -q "${PKG}"; done
if packages are installed.
Then I checked the yum logs and I found that I haven't re-installed all the packages. So I started installing the missing packages one by one. After installing one system-config-date package, the serve started working fine without any delays! I'm wondering how not having this package was causing delays.

Once again thank you very much for your suggestions. I love this forum. You guys rock!
 
  


Reply

Tags
centos, remote, slow, ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Why remote X is slow (squeeze client, lenny server)? kaz2100 Debian 1 08-21-2010 03:27 AM
Remote Desktop from Windows XP to a CentOS server? How To? roshanekka Linux - Server 3 06-15-2010 12:09 PM
How To setup remote access server on centOS 5 bagra Linux - Newbie 2 08-25-2009 06:07 AM
Remote setup of LAMP server on CentOS 5 satimis Linux - Server 19 01-31-2008 11:42 PM
getting mails from remote mail server is slow,so need an intermediate server Sleen Linux - Networking 5 09-30-2006 03:09 PM


All times are GMT -5. The time now is 04:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration