LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-29-2012, 01:16 AM   #1
K_L
LQ Newbie
 
Registered: Feb 2010
Posts: 11

Rep: Reputation: 0
Question Memory usage measurement tips needed


I keep checking my free memory with free -t -m, and it keeps telling me that all my memory is gone. Now I read the article you have here about not to trust what for example ps tells me about the memory usage. Swap is also looking empty, so it doesn't look like memory shortage.

So how do I tell if ans when I need to go to hardware store and get more memory?

free output
total used free shared buffers cached
Mem: 16047 15814 232 0 278 13350
-/+ buffers/cache: 2185 13861
Swap: 10047 0 10047
Total: 26095 15815 10280

I checked the 3 java apps I'm running with pmap.
mapped: 1099512K writeable/private: 737864K shared: 4212K
mapped: 2641068K writeable/private: 1768912K shared: 3144K
mapped: 1071588K writeable/private: 823668K shared: 3188K

It's not that much usage. I have two more similar applications coming to this computer and this is why I'm worried.

So solutions... new way to check free mem or adding more memory?


- n00b for life
 
Old 05-29-2012, 07:21 AM   #2
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
Please try see the memory usage using vmstat command

vmstat 5 5

Also, with top command, you can list down high to low memory usage of services

1. Hit top command
2. The press shift + > (Greater than Symbol)
 
Old 05-29-2012, 06:45 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,533

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Quote:
Originally Posted by K_L View Post
-/+ buffers/cache: 2185 13861
Keep an eye on this line - it shows actual (application) usage/free. And use [code] tags in future so we can all read it.

Have a read of linuxatemyram for a light-hearted take on your concerns.
 
1 members found this post helpful.
Old 05-30-2012, 12:29 AM   #4
K_L
LQ Newbie
 
Registered: Feb 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Have a read of linuxatemyram for a light-hearted take on your concerns.
Wow thanks, that was very simply put.
 
  


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
Quick measurement of free system memory from within C program sgulf Programming 1 07-21-2010 04:30 AM
LXer: Tips to reduce memory usage on Firefox | Linux LXer Syndicated Linux News 0 01-24-2010 03:01 PM
X hangs after prolonged usage ... memory usage goes upto 195MB duryodhan Slackware 18 05-10-2007 06:16 PM
CPU Usage measurement in Linux bassi Linux From Scratch 1 07-20-2005 04:11 AM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM


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