Introduction to using Sar under Linux

Source: Internet
Author: User

Introduction to using Sar under Linux
    SubmitMy message
      Load in

      have left a message

      Introduction

      The Sar was first implemented in the Salaris UNIX system and later migrated to most of the other UNIX systems (such as AIX,HP-UX, etc.). Linux also has a French-written sysstat that implements the functionality of this tool.

      Its principle is to use cron to schedule a program regularly, collect the current system performance indicators, stored in the binary file.

      Installation

      You can download the source code, compile your own installation, or install a binary package. RHEL system is installed by default.

      Key Features

      Support Features:

        • Almost all of the system performance data can be collected.
        • You can configure the retention time for historical data.
        • Collection performance data can be exported from binary files into different format files (CSV, XML, JSON, etc.).
        • Performance data can be plotted, and there are a number of third-party tools that bring their own isag.
      Configuration

      Modify historical Data Retention time:

      vi /etc/sysconfig/sysstat # redhatvi /etc/default/sysstat   # debianHISTORY=90 # 表示保留90天的历史数据

      Modify the performance data collection frequency (that is, modify cron schedule frequency), the default is 10 minutes once:

      vi /etc/cron.d/sysstat
      Export

      Supports performance data export in various formats:

      sdaf -d # CSVsadf -x # XMLsadf -j # JSON
      Drawing

      The drawing can use ISAG. It has a graphical interface and is very easy to use. Although the drawing is rather ugly, it is enough.

      Other drawing programs that use SYSSTAT data:

        • Sysstatgraph uses PHP and HTML5 Canvas technology.

      Read ComplaintsFeatured Message

      Follow the public number to participate in the message

      Write a message

        Follow the public number to participate in the message

        Write a message

        Load inThe above message is screened by the public number and displayed

        Learn more about message features

        Sweep
        Follow the public number



        From for notes (Wiz)

        Introduction to using Sar under Linux

        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.