Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does AIX see how users and processes use memory

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "AIX how to view users and processes using memory", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "AIX how to view users and processes using memory" bar!

Problem description: found through topas that% comp memory has been used 98%

Problem analysis:

1, arranging 10 memory utilization processes from large to small

Ps aux | head-1; ps aux | sort-rn + 3 | head-10

For example, check the process in detail: ps-ealf | head-1; ps-ealf | sort-rn + 9 | head-10

# ps aux | head-1; ps aux | sort-rn + 3 | head-10

USER PID CPU MEM SZ RSS TTY STAT STIME TIME COMMAND

Root 6553834 0.1 3.0 115064 115080-A Feb 20 86:08 / var/opt/tivoli

Root 5701730 0.01.0 17480 21956-A Mar 05 1:17 / opt/BESClient/

Pconsole 4456680 0.0 1.0 42456 42464-A Feb 20 3:11 / usr/java5/bin/

Root 6750376 0.0 0.0 796 824 pts/0 A 11:29:26 0:00 ps aux

Root 6488234 0.00.0 260 268-A Mar 13 0:02 auditbin

Root 6357208 0.00.0 236 248 pts/0 A 11:29:26 0:00 sort-rn + 3

Root 5963962 0.0 1768 1804-A Feb 20 0:00 / usr/sbin/rsct/

Root 5832798 0.00.0 836 856-A 11:29:12 0:00 telnetd-a

Root 5570748 0.0 2128 2096-A Feb 20 0:00 / usr/sbin/rsct/

Root 5308652 0.0 7328 7436-A Feb 20 1:01 / usr/sbin/rsct/

2. View memory usage based on a command or process name

# ps aux | head-1; ps aux | grep topas

For more information, please see:

USER PID CPU MEM SZ RSS TTY STAT STIME TIME COMMAND

Root 2359426 0.0 1440 1272-A Feb 20 1:08 / usr/bin/topasr

Root 6160578 0.0 0.0 252 264 pts/0 A 11:36:45 0:00 grep topas

But sometimes ps aux does not show the full utilization of the process in great detail.

3. Memory usage can be analyzed by root users and svmon users.

# svmon-G

Size inuse free pin virtual mmode

Memory 1048576 1037487 11089 229668 378796 Ded

Pg space 2097152 2360

Work pers clnt other

Pin 196952 0 0 32716

In use 378796 0 658691

PageSize PoolSize inuse pgsp pin virtual

S 4 KB-793327 2360 49188 134636

M 64 KB-15260 0 11280 15260

Inuse: physical memory usage, which is measured in 4K, so 103748740964249546752 (424m)

Virtual: virtual memory usage, here is 4K, so 37879640961551548416 (155m)

4, showing the three processes that use the most physical memory:

# svmon-uP-t 3 | grep-p Pid | grep'^. * [0-9]'

6553834 java 51279 8917 0 50938 N Y N

4456680 java 34626 8874 0 34608 N Y N

5701730 BESClient 29564 8882 0 25689 Y Y N

The format order of the output is Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd

It can be calculated that the real memory used by the X program is 51279 × 4096mm 210038784, which is about 210MB.

Thank you for reading, the above is the content of "AIX how to view users and processes using memory". After the study of this article, I believe you have a deeper understanding of how AIX views users and processes using memory, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report