281 lines
4.1 KiB
HTML
281 lines
4.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>System Monitoring</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="Linux System Administrators Guide"
|
|
HREF="index.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="The buffer cache"
|
|
HREF="buffer-cache.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="System Resources"
|
|
HREF="system-resources.html"></HEAD
|
|
><BODY
|
|
CLASS="CHAPTER"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Linux System Administrators Guide: </TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="buffer-cache.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="system-resources.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="CHAPTER"
|
|
><H1
|
|
><A
|
|
NAME="SYSTEM-MONITORING"
|
|
></A
|
|
>Chapter 7. System Monitoring</H1
|
|
><DIV
|
|
CLASS="TOC"
|
|
><DL
|
|
><DT
|
|
><B
|
|
>Table of Contents</B
|
|
></DT
|
|
><DT
|
|
>7.1. <A
|
|
HREF="system-resources.html"
|
|
>System Resources</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
>7.1.1. <A
|
|
HREF="system-resources.html#TOP"
|
|
>The <B
|
|
CLASS="COMMAND"
|
|
>top</B
|
|
> command.</A
|
|
></DT
|
|
><DT
|
|
>7.1.2. <A
|
|
HREF="system-resources.html#IOSTAT"
|
|
>The <B
|
|
CLASS="COMMAND"
|
|
>iostat</B
|
|
> command.</A
|
|
></DT
|
|
><DT
|
|
>7.1.3. <A
|
|
HREF="system-resources.html#PS"
|
|
>The <B
|
|
CLASS="COMMAND"
|
|
>ps</B
|
|
> command</A
|
|
></DT
|
|
><DT
|
|
>7.1.4. <A
|
|
HREF="system-resources.html#VMSTAT"
|
|
>The <B
|
|
CLASS="COMMAND"
|
|
>vmstat</B
|
|
> command</A
|
|
></DT
|
|
><DT
|
|
>7.1.5. <A
|
|
HREF="system-resources.html#LSOF"
|
|
>The <B
|
|
CLASS="COMMAND"
|
|
>lsof</B
|
|
> command</A
|
|
></DT
|
|
><DT
|
|
>7.1.6. <A
|
|
HREF="system-resources.html#MORE-UTILS"
|
|
>Finding More Utilities</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>7.2. <A
|
|
HREF="fs-usage.html"
|
|
>Filesystem Usage</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
>7.2.1. <A
|
|
HREF="fs-usage.html#DF"
|
|
>The df command</A
|
|
></DT
|
|
><DT
|
|
>7.2.2. <A
|
|
HREF="fs-usage.html#DU"
|
|
>The du command</A
|
|
></DT
|
|
><DT
|
|
>7.2.3. <A
|
|
HREF="fs-usage.html#QUOTAS"
|
|
>Quotas</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>7.3. <A
|
|
HREF="monitoring-users.html"
|
|
>Monitoring Users</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
>7.3.1. <A
|
|
HREF="monitoring-users.html#WHO"
|
|
>The who command</A
|
|
></DT
|
|
><DT
|
|
>7.3.2. <A
|
|
HREF="monitoring-users.html#PS-U"
|
|
>The ps command -again!</A
|
|
></DT
|
|
><DT
|
|
>7.3.3. <A
|
|
HREF="monitoring-users.html#W"
|
|
>The w command</A
|
|
></DT
|
|
><DT
|
|
>7.3.4. <A
|
|
HREF="monitoring-users.html#SKILL"
|
|
>The skill command</A
|
|
></DT
|
|
><DT
|
|
>7.3.5. <A
|
|
HREF="monitoring-users.html#NICE"
|
|
>nice and renice</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
><A
|
|
NAME="AEN3453"
|
|
></A
|
|
><BLOCKQUOTE
|
|
CLASS="BLOCKQUOTE"
|
|
><P
|
|
><SPAN
|
|
CLASS="QUOTE"
|
|
>"That's Hall Monitor to you!"</SPAN
|
|
>Spongebob
|
|
Squarepants</P
|
|
></BLOCKQUOTE
|
|
><P
|
|
>One of the most important responsibilities a system administrator
|
|
has, is monitoring their systems. As a system administrator you'll need
|
|
the ability to find out what is happening on your system at any given
|
|
time. Whether it's the percentage of system's resources currently used,
|
|
what commands are being run, or who is logged on. This chapter will cover
|
|
how to monitor your system, and in some cases, how to resolve problems
|
|
that may arise.</P
|
|
><P
|
|
>When a performance issue arises, there are 4 main areas to consider:
|
|
CPU, Memory, Disk I/O, and Network. The ability to determine where the
|
|
bottleneck is can save you a lot of time.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="buffer-cache.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="system-resources.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>The buffer cache</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>System Resources</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |