LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-30-2011, 03:50 AM   #1
awww
Member
 
Registered: Nov 2010
Posts: 38

Rep: Reputation: Disabled
What command


I need to know what command to use to check whats using all of my ram on my server i use the top command but it doesn't show much information

i have centos 5
 
Old 07-30-2011, 03:56 AM   #2
Arcane
Member
 
Registered: May 2006
Location: Latvia, Europe
Distribution: random
Posts: 303

Rep: Reputation: 250Reputation: 250Reputation: 250
If you have Gnome you can use System Monitor feature for this task. I guess other DE will have similar tools.
 
Old 07-30-2011, 03:58 AM   #3
awww
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: Disabled
oh this system is command line no graphically interface
 
Old 07-30-2011, 04:10 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
You can try
Code:
ps -e -o %mem=,comm= | sort -k1n
 
Old 07-30-2011, 04:16 AM   #5
awww
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: Disabled
the problem im having is my server is running 7 gigs of ram i only have 8 i have 2 websites on this server i disabled one site to see if it was that one then both server still using 7gigs out of 8 gigs of ram

Code:
0.0 acpid
 0.0 aio/0
 0.0 aio/1
 0.0 aio/2
 0.0 aio/3
 0.0 aio/4
 0.0 aio/5
 0.0 aio/6
 0.0 aio/7
 0.0 ata/0
 0.0 ata/1
 0.0 ata/2
 0.0 ata/3
 0.0 ata/4
 0.0 ata/5
 0.0 ata/6
 0.0 ata/7
 0.0 ata_aux
 0.0 atd
 0.0 audispd
 0.0 auditd
 0.0 automount
 0.0 avahi-daemon
 0.0 avahi-daemon
 0.0 bash
 0.0 bash
 0.0 brcm_iscsiuio
 0.0 cleanup
 0.0 courierlogger
 0.0 courierlogger
 0.0 courierlogger
 0.0 courierlogger
 0.0 couriertcpd
 0.0 couriertcpd
 0.0 couriertcpd
 0.0 couriertcpd
 0.0 cqueue/0
 0.0 cqueue/1
 0.0 cqueue/2
 0.0 cqueue/3
 0.0 cqueue/4
 0.0 cqueue/5
 0.0 cqueue/6
 0.0 cqueue/7
 0.0 crond
 0.0 dbus-daemon
 0.0 events/0
 0.0 events/1
 0.0 events/2
 0.0 events/3
 0.0 events/4
 0.0 events/5
 0.0 events/6
 0.0 events/7
 0.0 gam_server
 0.0 hald
 0.0 hald-addon-acpi
 0.0 hald-addon-keyb
 0.0 hald-runner
 0.0 httpd
 0.0 httpd <defunct>
 0.0 httpd <defunct>
 0.0 ib_addr
 0.0 ib_cm/0
 0.0 ib_cm/1
 0.0 ib_cm/2
 0.0 ib_cm/3
 0.0 ib_cm/4
 0.0 ib_cm/5
 0.0 ib_cm/6
 0.0 ib_cm/7
 0.0 ib_inform
 0.0 ib_mcast
 0.0 init
 0.0 irqbalance
 0.0 iscsid
 0.0 iscsid
 0.0 iscsi_eh
 0.0 iw_cm_wq
 0.0 kacpid
 0.0 kauditd
 0.0 kblockd/0
 0.0 kblockd/1
 0.0 kblockd/2
 0.0 kblockd/3
 0.0 kblockd/4
 0.0 kblockd/5
 0.0 kblockd/6
 0.0 kblockd/7
 0.0 khelper
 0.0 khubd
 0.0 khungtaskd
 0.0 kjournald
 0.0 kjournald
 0.0 kjournald
 0.0 kjournald
 0.0 klogd
 0.0 kmpathd/0
 0.0 kmpathd/1
 0.0 kmpathd/2
 0.0 kmpathd/3
 0.0 kmpathd/4
 0.0 kmpathd/5
 0.0 kmpathd/6
 0.0 kmpathd/7
 0.0 kmpath_handlerd
 0.0 kpsmoused
 0.0 kseriod
 0.0 ksnapd
 0.0 ksoftirqd/0
 0.0 ksoftirqd/1
 0.0 ksoftirqd/2
 0.0 ksoftirqd/3
 0.0 ksoftirqd/4
 0.0 ksoftirqd/5
 0.0 ksoftirqd/6
 0.0 ksoftirqd/7
 0.0 kstriped
 0.0 kswapd0
 0.0 kthread
 0.0 local_sa
 0.0 master
 0.0 migration/0
 0.0 migration/1
 0.0 migration/2
 0.0 migration/3
 0.0 migration/4
 0.0 migration/5
 0.0 migration/6
 0.0 migration/7
 0.0 mingetty
 0.0 mingetty
 0.0 mingetty
 0.0 mingetty
 0.0 mingetty
 0.0 mingetty
 0.0 mysqld_safe
 0.0 ntpd
 0.0 pdflush
 0.0 pdflush
 0.0 pickup
 0.0 portmap
 0.0 proxymap
 0.0 ps
 0.0 qmgr
 0.0 rdma_cm
 0.0 scsi_eh_0
 0.0 scsi_eh_1
 0.0 scsi_eh_2
 0.0 scsi_eh_3
 0.0 smtp
 0.0 smtpd
 0.0 spawn
 0.0 sshd
 0.0 sshd
 0.0 sw-cp-serverd
 0.0 syslogd
 0.0 tlsmgr
 0.0 trivial-rewrite
 0.0 udevd
 0.0 watchdog/0
 0.0 watchdog/1
 0.0 watchdog/2
 0.0 watchdog/3
 0.0 watchdog/4
 0.0 watchdog/5
 0.0 watchdog/6
 0.0 watchdog/7
 0.0 xfs
 0.0 xinetd
 0.1 httpd
 0.1 httpd
 0.1 httpd
 0.1 httpd
 0.1 httpd
 0.1 httpd
 0.1 httpd
 0.1 snmpd
 0.1 yum-updatesd
 0.2 httpd
 0.2 httpd
 0.2 httpd
 0.2 httpd
 0.5 spamd
 0.5 spamd
 0.5 spamd
 0.7 mysqld
 
Old 07-30-2011, 08:44 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,625
Blog Entries: 16

Rep: Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245
Try top or htop.
 
1 members found this post helpful.
Old 07-31-2011, 12:37 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by awww View Post
I need to know what command to use to check whats using all of my ram on my server i use the top command but it doesn't show much information

i have centos 5
Quote:
Originally Posted by awww View Post
the problem im having is my server is running 7 gigs of ram i only have 8 i have 2 websites on this server i disabled one site to see if it was that one then both server still using 7gigs out of 8 gigs of ram
It probably does not use 7GB. Somebody else can explain better / properly it but Linux pre-allocates buffers for caching and that is what you might encounter. The output of free should shed some light on it.
 
Old 07-31-2011, 05:01 AM   #8
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Try top or htop.
htop app is really cool.
 
Old 07-31-2011, 06:45 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,406

Rep: Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396
As per Wim Sturkenboom; its a common fallacy that Linux ate your RAM; I recommend reading this http://www.linuxatemyram.com/.
If you are still worried after that, post the output of eg top and the other cmds mentioned above.
 
  


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
Bash Command Line Editor, while typing run another command before executing current? gumaheru Linux - General 5 04-13-2010 11:21 AM
how to copy drive using dd and tee command parallely? source code of dd command mdfakkeer Linux - Software 1 02-10-2010 01:31 PM
URGENT! Is there any command to get a history command lines and time in SUSE Linux.? igsoper Linux - Software 5 06-25-2009 02:14 AM
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 06:30 PM
Turning a Ruby on Rails Ubuntu command into a Redhat command Mangalaiii Red Hat 1 12-02-2008 03:37 PM

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

All times are GMT -5. The time now is 05:29 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