LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2011, 12:15 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
Centos is got slow


My box is centos 5.5 x86, and it is got slow nowadays.
The "top" is as attached.

Please let me know how to fix this.

Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	20110302top.jpg
Views:	8
Size:	165.8 KB
ID:	6277  
 
Old 03-02-2011, 12:39 AM   #2
Awatto
Member
 
Registered: Aug 2003
Location: Halifax, NS
Distribution: Debian, Gentoo, Ubuntu, Fedora
Posts: 128

Rep: Reputation: 30
Hi windstory,

The output of top you posted may actually provide a hint (though before I looked at it I had my doubts).

Gnome-panel is using 291 megs of memory. This is way too much, and almost 60% of what your system has. You may want to see what removing some applets will do, it may be something strange going on with one of them. Have you added any new applets to it lately?

Cheers,
 
1 members found this post helpful.
Old 03-02-2011, 01:02 AM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Awatto View Post
Hi windstory,
.......
Gnome-panel is using 291 megs of memory. This is way too much, and almost 60% of what your system has. You may want to see what removing some applets will do, it may be something strange going on with one of them. Have you added any new applets to it lately?
Cheers,
Please understand I'm not expert of Linux, and this is thepicture of remote server.

I wonder if I close Gnom the remote server will shut down.
 
Old 03-02-2011, 01:17 AM   #4
Awatto
Member
 
Registered: Aug 2003
Location: Halifax, NS
Distribution: Debian, Gentoo, Ubuntu, Fedora
Posts: 128

Rep: Reputation: 30
If you're not worried about the x-server (graphical interface) on the "physical" side of the machine shutting down, run

Code:
/etc/init.d/gdm stop
as root to shut down gnome. This should not cause any problems with remote SSH if that is what you're concerned with (unless CentOS does something weird I'm not aware of).

In any case, if you're not worried about the x-server, you can always kill gnome-panel.

However, keep in mind neither of these solutions tell you exactly what the problem is. If it fixes things, try starting gnome up again and see if the problem automagically disappears?

Code:
/etc/init.d/gdm start
It's rather difficult for me to imagine what the problem is without looking at things myself (I'm not even sure what to ask for). Perhaps someone else will have some better insight if this doesn't fix your problem.
 
1 members found this post helpful.
Old 03-02-2011, 01:41 AM   #5
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Awatto/

About the command "/etc/init.d/gdm stop", it shows this message;

Quote:
There is not such file or directory.
And "gdm stop" or "/usr/sbin/gdm stop" also shows;

Quote:
GDM is already running, cancel!
Is there another way?
 
Old 03-02-2011, 01:54 AM   #6
Awatto
Member
 
Registered: Aug 2003
Location: Halifax, NS
Distribution: Debian, Gentoo, Ubuntu, Fedora
Posts: 128

Rep: Reputation: 30
Hmm, sorry, perhaps CentOS uses XDM?

try

Code:
/etc/init.d/xdm stop
If that still doesn't work, CentOS may even use the same system as Debian (I didn't think it did, but perhaps).. try

Code:
service gdm stop
 
1 members found this post helpful.
Old 03-02-2011, 02:16 AM   #7
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Code:
/etc/init.d/xdm stop
The message is "There is not such file or directory. "

Code:
service gdm stop
the message is "GDM: unknown service."

So I tried "telinit 3", then I make a picture as attached, please see and give me your opinion.
Attached Thumbnails
Click image for larger version

Name:	20110302top2.jpg
Views:	2
Size:	170.4 KB
ID:	6278  
 
Old 03-02-2011, 02:49 AM   #8
Awatto
Member
 
Registered: Aug 2003
Location: Halifax, NS
Distribution: Debian, Gentoo, Ubuntu, Fedora
Posts: 128

Rep: Reputation: 30
gnome-panel is still running, and is now consuming even more memory. It is likely an applet you are using has a memory leak or something is just plain configured incorrectly.

Sorry the previous suggestions haven't worked and for the late replies (I'm at work right now so I'm a little delayed, checking in between operations).

Try just straight up killing the gnome-panel process.

Code:
kill 4499
This will cause some weird side effects on the graphical end (when you eventually do log into the physical box) but should at least stop the memory leak for now.
 
1 members found this post helpful.
Old 03-02-2011, 04:15 AM   #9
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Thanks. It worked.
 
  


Reply


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
[SOLVED] My Centos is terribly slow Galled Linux - Server 18 12-07-2010 11:16 AM
Graphics Problem with CentOS 5 - Very Slow Tsus86 Red Hat 5 04-29-2010 05:20 AM
CentOS slow when network is enabled, otherwise fast Xcalable Linux - Newbie 11 12-29-2009 02:17 PM
CentOS 5 boots very slow after RAM upgrade cooljai Linux - General 5 04-24-2008 02:01 AM
Performance of CentOS 5.1 is slow...very slow! 90% mem used!! Why? Jazzmaster777 Linux - Server 5 04-13-2008 06:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration