[O & M personnel? Why? 03: 20 built-in monitoring tools for Linux: w and ps

Source: Internet
Author: User
[O & M personnel? Why? 03: 20 built-in monitoring tools for Linux: w and ps? Communications Administration? Song? Too many ?? Why? What is the problem? Song ?? Mechanical purple wake up Yellow? Rescue ?.. Information & nbsp; | & nb [O & M personnel? Why? 03: 20 built-in monitoring tools for Linux: w and ps? Communications Administration? Song? Too many ?? Why? What is the problem? Song ?? Mechanical downgrading? /Div> If you are interested in chatting and talking about theme, refer to Article 1? Why? 01] 20 built-in monitoring tools for Linux: top 2: [O & M personnel? Why? 02] 20 built-in monitoring tools for Linux: vmstat and netstat (4) w who commands, but what about the eight troughs of w? Do you remember wood? The old habit is to show you a piece of output: [plain] [root @ MPEG-4 ~] # W 16:57:10 up 2 days, 5 users, load average: 0.08, 0.03, 0.00 user tty from login @ idle jcpu pcpu what root pts/0: 1.0 Thu11 2 days 0.00 s 0.00 s bash root pts/1 129.38.54.166 33 0.00 s 0.01 s 0.00 s w root pts/2: 2.0 Thu11 2 days 0.00 s 0.00 s bash root pts/3 166.35.34.113 20.00 s 0.02 s 0.02 s top root pts/8: 3.0 3: 20 m 0.01 s 0.01 s bash obviously, w output can be divided into two parts as part 1st, very familiar .... ah, yo ~ The world is really small, and it hits the top bird ~~~ In order to take care of the aforementioned "best practices", for section 2, Rocky thinks that if you pay attention to WHAT, WHAT is a magic horse ~~~ WHAT: Who is the currently running command, and who is talking about you? 166.35.34.113. I am currently running top, maybe I am too short? Haha, and ⑸ ps are important. it's a great man, a great God, and a legend of life that makes us welcome ps birds in tears. what? Ps, isn't that the goddess's strongest cosmetics? Let's take a look at it, and change the way it is, and let the best practices be stranded for the moment, Rocky thinks, ps is often used, simply come to "best use habits ": "ps-ef | grep oo" "ps aux | grep xx" weak Q: Is there a "-" in front of the aux? Yes, no! Ah, ah, bright and blind the aluminum alloy dog eye of laoxi. Rocky is going to talk about the best use habit of "ps aux". First, let's look at the output of ps aux [plain] [root @ Xilinx. ~] # Ps aux user pid % CPU % mem vsz rss tty stat start time command root 1 0.0 0.0 10348 692? Ss Mar28 init [5] root 2 0.0 0.0 0 0? S <Mar28 [migration/0] root 3 0.0 0.0 0 0? SN Mar28 [ksoftirqd/0] ***** N output rows are omitted here ********* oracle 32260 0.0 0.6 671488? Ss ora_j000_cdio2010 root 32275 0.0 0.0 65580 pts/3 R + ps aux for this output, I have talked about it earlier. here we talk about table: ① STAT: the current status and main status of the process are: I R (Running): The process is Running, Ⅱ S (Sleep): The process is currently in Sleep status (idle), but can be awakened Ⅲ D (Defunct): The Sleep state that cannot be awakened, usually this process may be waiting for I/O IV T (stop ): stop status, which may be in work control or debugging status v z (zombie ): botnets, programs that have been terminated, but still occupy resources, but do not know "there is a kind of love to let go" ② START: the TIME when the process is triggered ③ TIME: actual CPU consumption time ④ COMMAND: What is the sacred COMMAND that triggers the process?
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.