- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to see the memory usage for each process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 06:31 PM
08-23-2005 06:31 PM
How can see the mememory usage used by each process ...
The problem Iam facing here is
the memeory is been used completly by some process Though the useres who has holding the memory has been logged out.
And also though the memory is used 100 % the
swap memory usage is only 1%
How can I make use of this swap memory
OS version is Red hat LInux 9
Thanks
Binu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 06:45 PM
08-23-2005 06:45 PM
Re: How to see the memory usage for each process
Refer this link:
http://rimuhosting.com/howto/memory.jsp
It has useful info for "Troubleshooting Memory Usage"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 06:56 PM
08-23-2005 06:56 PM
Solutionyou can get the memory information through 'top' command or 'ps' command with proper options.
If a process is died the memory is not immediately cleared and set as free (for performance), instead it will be set as unclaimed and any new process requiring memory will be allocated from this junk. so as such the used and free memory available is not true reflection of memory consumed.
swap memory is used only incase RAM memory runs out and there is no RAM available for new process. using swap memory affects the system performance very badly, if a system does a lot of swapping then it means RAM is not enough and requires RAM upgrade. In your case you should be happy that swap is only 1% used which means you have enough RAM to run all process.
Hope this helps,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 07:21 PM
08-23-2005 07:21 PM
Re: How to see the memory usage for each process
The command to see the memory usage of each progress is "ps -aux"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 08:41 PM
08-23-2005 08:41 PM
Re: How to see the memory usage for each process
The below mentioned values are changing after the reboot...
Which are the file we should specify the
config other than /etc/sysctl
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 524288
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1
------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 2000
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767
------ Messages: Limits --------
max queues system wide = 1024
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384
Also ps -aux doesnt show much memory utilisation
But if we use free command to check the memory usage it ishowing the full memory is being used .
[root@wiplx15 root]# free
total used free shared buffers cached
Mem: 3476884 3465252 11632 0 113120 3034912
-/+ buffers/cache: 317220 3159664
Swap: 8393952 88196 8305756
How to flush the unused memory
Thanks
Binu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 12:04 AM
08-24-2005 12:04 AM
Re: How to see the memory usage for each process
/etc/sysctl.conf is the easy way to have the values permanent in proc filesystem.
There are different key values used for setting up each of your requirements (semaphore, sharedmemory). All these keys are available in /proc/sys/kernel directory.
For ex: shmmax refers to maximum shared memory available to kernel, to set this value permanent then add a line to /etc/sysctl.conf like:
kernel.shmmax=
Read kernel documentation to find key names for each of your requirement.
Another way is to directly updating proc file system from /etc/rc.local
eg:
echo
add the above line to /etc/rc.local file, this file get called everytime system boots up thus effectively modifying the values as required.
But word of warning, /etc/rc.local file is called only at the end of system start up (i.e. after all processes are started). if a process requires these updated values before they start, then make sure the process gets launched only from /etc/rc.local after all proc system modification is done. Hope I am clear in explaining this!
/etc/sysctl.conf is called during first phase of system startup before any process are started, so sysctl is the ideal place to put these values in.
Hope this helps,
Gopi