Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How can I check actual memory usage each Process? Post 302997546 by tom8254 on Tuesday 16th of May 2017 08:24:24 AM
Old 05-16-2017
How can I check actual memory usage each Process?

I can't check actual memory usage in the Redhat 5.5...

The used memory is 14214 Mb of Total 15919 by Free -m command.

I sum the RSS value on PS aux command result and the value is 5428.66Mb.

Yes It's quite different actual usage memory and RSS value.

So I added Shared memory value (4882.22Mb) by ipcs command but It's still quite different even though I added shared memory value to RSS value

Please help me.... now our one of servers reach the memory over 90%.

I can't check which process is taking many memory now..

Code:
[root@ ~]# ipcs -m | awk 'BEGIN { TOTAL = 0 }{ TOTAL = TOTAL +$5}END{print TOTAL}'
4999377

Code:
[root@ ~]# ps aux | awk 'BEGIN { TOTAL = 0 }{ TOTAL = TOTAL +$6}END{print TOTAL}'
5567792

Code:
[root@ ~]# free -m
             total       used       free     shared    buffers     cached
Mem:         15919      15669        250          0        629        823
-/+ buffers/cache:      14215       1704
Swap:        10236       1073       9163

 

10 More Discussions You Might Find Interesting

1. Programming

how to use ioctl to check out memory usage

Hi all, I tried to output memory usage information while the process is executing at a particular time. I found out some people suggesting calling the ioctl. I followed it and wrote a test example: #include <unistd.h> #include <stdlib.h> #include <iostream.h> #include <fcntl.h> #include... (2 Replies)
Discussion started by: lanchen
2 Replies

2. UNIX for Advanced & Expert Users

how to restrict memory usage by a process

we are running red hat ES4 and i would like to know if there is anyway of restrcting the maximum amount of memory that a process can get? I have a single preocess that is taking >13GB. Thanks, Frank (4 Replies)
Discussion started by: frankkahle
4 Replies

3. Shell Programming and Scripting

Memory usage of a process

hi all, i want to write a script that checks the memory usage of processes and send a mail with the name of the process witch is using more then 300mb RAM. dose anybody have a sample script or an idea how i can make it ? PROCCESSES="snmpd sendmail" for myVar in $PROCCESSES do ... (7 Replies)
Discussion started by: tafil
7 Replies

4. HP-UX

how could I get a process Memory Usage

I use pstat API to get Process Infomation I would like to get a process 1.process owner 2.how many physical memory and virtual memory and total memory used(KB) and usage(%) 3.a process excution file create time 4.a process excution file access time I do't know which attribute it i need ... (3 Replies)
Discussion started by: alert0919
3 Replies

5. UNIX for Advanced & Expert Users

collecting memory usage by a process

Hi Guys, I work on a AIX environment and I'm trying to write a script where I can collect all the memory used by a process. Basically I'm executing the command 'ps -fu userid' to get all the process ids and then executing the 'ps v PID' to get all the memory allocated by PPID. My question is... (2 Replies)
Discussion started by: arizah
2 Replies

6. Linux

how to check memory usage ?

hello, I have purchased VPS from one webhosting company. VPS comes with Virtuozzo power panel. It has 512MB gurranted RAM and dynamic RAM 2048 MB. I have hosted single domain with 50MB database and wordpress installation. But I am getting resource alerts. It goes sometime in yellow... (8 Replies)
Discussion started by: mrugesh78
8 Replies

7. AIX

Problem with nmon, actual CPU usage per process

Hi all, I am currently having trouble to get nmon to print me the actual CPU usage for an interval for a process. According to the manual, something like # time nmon -t -C cron -s 5 -c 2 -F outfile real 0m0.98s user 0m0.03s sys 0m0.04s should print out at least the process... (15 Replies)
Discussion started by: zaxxon
15 Replies

8. Solaris

Memory Usage check

Hello Friends, I need to check memory usage & availability before I could run a program if there is enough memory is left or not, so how could i achieve this? Which command output i should rely on? I have diplayed outputs of SAR, VMstat and PRstat commands below, But how could i check memory... (8 Replies)
Discussion started by: EAGL€
8 Replies

9. Solaris

Process memory usage

hi all gurus: I want to find out Solaris process memory usage, but got a bit confused, see if any one can provide me some guidance. i tend to use prstat -a to get total memory consumption by user (I know prstat likely have a bug that simply sum up the memory, regardless if the memory being... (5 Replies)
Discussion started by: oakville
5 Replies

10. Solaris

Find memory usage for a process

I have multiple oracle databases on one server. All the database are running from the same user i.e. oraent. The process for each database can be distinguished by the ps -ef command Eg : ps -ef | grep oraentThe Output : oraent 5361 1 0 20:58:05 ? 0:00 oracledb1... (11 Replies)
Discussion started by: yashreads
11 Replies
Clamdtop(1)							  Clam AntiVirus						       Clamdtop(1)

NAME
clamdtop - monitor the Clam AntiVirus Daemon SYNOPSIS
clamdtop [options] [clamdspec ...] DESCRIPTION
clamdtop is a tool to monitor one or multiple clamd(s). It has a (color) ncurses interface, that shows the jobs in clamd's queue, memory usage, and information about the loaded signature database. You can specify on the command-line to which clamd(s) it should connect to. By default it will attempt to connect to the local clamd as defined in clamd.conf. OPTIONS
-h, --help Display help information and exit. -V, --version Print version number and exit. --config-file=FILE Read clamd settings from FILE, to determine how to connect to it. clamdspec Specifies the clamd to connect to: either a path to the local (unix domain) socket of clamd, or an IP address and an port number (that defaults to 3310) to connect to a local or remote clamd using TCP/IP. OVERVIEW
KEYS: H Displays a short helpscreen, describing the meaning of various elements on the display. Q Quits clamdtop R Resets the maximum values. up arrow, down arrow If you are monitoring multiple clamds then clamdtop will show an overview screen by default. You can use the up arrow and down arrow keys to cycle through each clamd individually, and the overview screen. A blue bar will highlight the clamd that is currently shown in detail. On the overview screen none of the clamds is selected (hence no blue bar), and you can see the items from the queue of all clamds. The top bar Shows the version of clamdtop and the current time. Clamdtop updates the display once every 2 seconds. The list of clamds Shows the clamds that clamdtop is connected to, and statistics about them. NO Unique clamd number CONNTIME How long clamdtop has been connected (reset upon a reconnect) LIV Total number of live threads IDL Total number of idle threads QUEUE Number of items in queue MAXQ Maximum number of items observed in the queue MEM Total memory usage (if available) HOST Which clamd, local means unix socket ENGINE Engine version DBVER Database version DBTIME Database publish time Clamd detailed view Primary threads live The number of threads that are executing commands or scanning. Primary threads idle The number of threads that are idle, waiting for commands. They will exit after IdleTimeout (30 seconds). Primary threads max The maximum number of threads configured. Queue items The number of items (scanjobs) in clamd's queue that are waiting for a free thread to be processed. Queue max The maximum number of items observed in clamd's queue. The memory usage view If available, it will show details on clamd's memory usage: Mem heap The amount of memory used by libc from the heap in MegaBytes. Mem mmap The amount of memory used by libc from mmap-allocated memory in MegaBytes. Mem unused The amount of memory that can be reclaimed by libc. Libc used The amount of useful memory allocated by libc. Libc free The amount of memory allocated by libc, that can't be freed due to fragmentation. Libc total The amount of memory allocated by libc from the system in total. Pool count The number of mmap regions allocated by clamd' memory pool allocator (for the signature database). Pool used The amount of memory used by clamd's memory pool allocator (for the signature database). Total The total amount of memory allocated by clamd's memory pool allocator. The clamd job queue COMMAND Kind of command being executed, STATS is clamdtop, SCAN/CONTSCAN/FILDES/MULTISCAN is scan of a file/directory, MULTISCANFILE is scan of one item by a MULTISCAN job. QUEUEDSINCE The time since the command got queued, until now. FILE The name of the file being processed (if applicable). EXAMPLES
(1) To connect to the clamd configured in the default clamd.conf: clamdtop (2) To connect to the clamd configured in another clamd.conf: clamdtop --config-file=/path/to/clamd.conf (3) To connect to a clamd running on another machine (192.168.0.3) on the LAN: clamdtop 192.168.0.3 (4) To connect to a clamd running on another machine (192.168.0.3) on a non-default port (3410): clamdtop 192.168.0.3:3410 (5) To monitor the local clamd and 2 other remote clamds over TCP/IP: clamdtop localhost 192.168.0.3 192.168.0.4 NOTES
clamdtop uses colors if the terminal is capable of colors. If you know your terminal is capable of colors, yet you aren't seeing any, then check that your TERM environment variable is set correctly. For example try setting it to TERM=xterm-color if you are in an xterm-like environment. IPv6 support has been added. If specifying an IPv6 address, please use the normal IPv6 addressing rules. If specifying both an IPv6 address and a port combination, encapsulate the IPv6 address in square brakets (e.g. [::1]:3410). RETURN CODES
0 : Normal terminator >0: Error occured. CREDITS
Please check the full documentation for credits. AUTHOR
Torok Edvin <edwin@clamav.net> SEE ALSO
clamd(8), clamd.conf(5) ClamAV 0.98.4 February 22, 2009 Clamdtop(1)
All times are GMT -4. The time now is 08:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy