Linux process memory usage sorting command

Source: Internet
Author: User
The linux process memory usage sorting command checks the linux server today. to view the usage of each process, use [qhkf @ 116share ~]. $ Toppiduserprni1_resshrs % CPU % MEMTIME + COMMAND29613build150158m713... run the linux process memory usage sorting command to view the linux server today. to view the usage of each process, use [qhkf @ 116 share ~]. $ Top pid user pr ni virt res shr s % CPU % mem time + COMMAND29613 build 15 0 158 m 7136 3720 S 2.0 0.1 0: 00. 27 svn29609 build 15 0 158 m 7132 3720 S 2.3 0: 00. 70 svn29601 qhkf 15 0 12868 1260 820 R 0.3 0.0 0: 00. 09 top29598 oracle 15 0 1935 m 15 m 13 m S 0.0 0: 00. 00 oracle29596 oracle 15 0 1936 m 27 m 24 m S 0.0 0: 00. 03 oracle29582 qhkf 15 0 102 m 3420 2252 S 0.0 0: 00. 04 vim29506 build 15 0 158 m 7252 3724 S 2.3 0: 03. 76 svn, but it is not sorted by memory. after checking, shift + f will show the sorted column Current Sort Field: N for window 1: DefSelect sort field via field letter, type any other key to return a: PID = Process Id shown due to screen width or your B: PPID = Parent Process Pid field order, the '<' and '> 'Keys c: RUSER = Real user name will be unavailable until a field d: UID = User Id within viewable range is chosen. e: USER = User Name f: GROUP = Group Name Note2: g: TTY = Controlling Tty Field sorting uses internal values, h: PR = Priority not those in column display. thus, I: NI = Nice value the TTY & WCHAN fields will violate j: P = Last used cpu (SMP) strict ASCII collating sequence. k: % CPU = CPU usage (shame on you if WCHAN is chosen) l: TIME = CPU Time m: TIME + = CPU Time, hundredths * N: % MEM = Memory usage (RES) o: VIRT = Virtual Image (kb) p: SWAP = Swapped size (kb) q: RES = Resident size (kb) r: CODE = Code size (kb) s: DATA = Data + Stack size (kb) t: SHR = Shared Mem size (kb) u: nFLT = Page Fault count v: ndrc t = Dirty Pages count w: S = Process Status x: COMMAND = Command name/line y: WCHAN = Sleeping in Function z: Flags = Task Flags Then you can select the sorting method you like. for example, select N to check whether the memory occupied by the processes is large, next we can analyze the pid user pr ni virt res shr s % CPU % mem time + COMMAND14101 oracle 15 0 1941 m 613 m 608 m S 0.0 7.7. 78 oracle14095 oracle 15 0 1987 m 521 m 477 m S 0.0. 58 oracle20477 oracle 15 0 1945 m 483 m 478 m S 0.0 0: 24. 79 oracle14522 oracle 15 0 1941 m 427 m 420 m S 0.0. 59 oracle14105 oracle 15 0 1941 m 268 m 262 m S 0.0 3.4. 04 oracle
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.