Find the answer to your Linux question:
Results 1 to 4 of 4
Memory of my Linux database servce is all used up. I first noted that this morning and rebooted the box. 5 hours later, it saw used up again. I want ...
  1. #1
    glu
    glu is offline
    Just Joined!
    Join Date
    Feb 2010
    Posts
    1

    How to get memory usage info?

    Memory of my Linux database servce is all used up. I first noted that this morning and rebooted the box. 5 hours later, it saw used up again. I want to find out which process is responsible for using most of the memories. What Redhat Linux utility can list processes sorting by their memory usage, like the Windows task manager?

    I looked into some tools but they are not much help
    free and vmstat - summary but not for each process
    top appears to be infomative, but sum of non-zero %MEM never add upp to 100.

    What is the best tool to used here?

    Thanks

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Hello and Welcome.
    You could install htop, it's a nice little command line program very much like top command but with a few extras. It should be available in your system repos.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2
    Quote Originally Posted by glu View Post
    Memory of my Linux database servce is all used up. I first noted that this morning and rebooted the box. 5 hours later, it saw used up again. I want to find out which process is responsible for using most of the memories. What Redhat Linux utility can list processes sorting by their memory usage, like the Windows task manager?

    I looked into some tools but they are not much help
    free and vmstat - summary but not for each process
    top appears to be infomative, but sum of non-zero %MEM never add upp to 100.

    What is the best tool to used here?

    Thanks
    for memory

    # free

    or
    # cat /proc/swaps

    for hdd space left ....

    # hwbrowser

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    memory management under linux is different to windows XP/2003 and older, by default it uses all extra memory for cache and freeing up as needed

    are you running into problems? use free -m command to see free memory, pay attention to second line
    Code:
    -/+ buffers/cache:       1080       2186
    first number is actual used memory, second is actual free memory

    when looking at process memory with top or htop you need to look at RES (resident) memory column

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...