LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What command (https://www.linuxquestions.org/questions/linux-newbie-8/what-command-894609/)

awww 07-30-2011 03:50 AM

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:Pengy:

i have centos 5

Arcane 07-30-2011 03:56 AM

If you have Gnome you can use System Monitor feature for this task. I guess other DE will have similar tools.

awww 07-30-2011 03:58 AM

oh this system is command line no graphically interface

colucix 07-30-2011 04:10 AM

You can try
Code:

ps -e -o %mem=,comm= | sort -k1n

awww 07-30-2011 04:16 AM

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


frankbell 07-30-2011 08:44 PM

Try top or htop.

Wim Sturkenboom 07-31-2011 12:37 AM

Quote:

Originally Posted by awww (Post 4429149)
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:Pengy:

i have centos 5

Quote:

Originally Posted by awww (Post 4429162)
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.

Mr. Alex 07-31-2011 05:01 AM

Quote:

Originally Posted by frankbell (Post 4429628)
Try top or htop.

htop app is really cool.

chrism01 07-31-2011 06:45 PM

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.


All times are GMT -5. The time now is 12:24 AM.