Set up performance monitoring Spotlight in Centos

Source: Internet
Author: User

Set up performance monitoring Spotlight in Centos

The company wants to perform a stress test with a Linux server and Centos6.5. To intuitively display the system performance and better analyze the server, we need to build a monitoring system. Let's go straight to the topic.

First, a Linux Server: Centos6.5

Second, install the monitoring software client on my laptop

Software link:

Link: http://pan.baidu.com/s/14Vwlw password: tmw4

Configure spotlight login users. Note that by default, spotlight cannot be connected by the root user. You must create a user with the root permission. For details about how to create an account and assign permissions, refer to Baidu. Here we will focus on setting up performance monitoring in Centos linux Spotlight on Unix.

(1) useradd spotlight

(2) passwd spotlight;

(3) vim/etc/passwd

(4) change the UID and GID of spotlight to 0: 0.

Next, we start to install sysstat on the server.

Use iostat, mpstat, and sar

Yum install sysstat-y

Sysstat installation package is: sysstat-9.0.4-20.el6.x86_64.rpm, after installation there will be iostat, mpstat, sar, sa Function
Start sysstat
/Etc/init. d/sysstat start
Set sysstat to start automatically
Chkconfigsysstat on

---------------------

The main command provided by the sysstat Toolkit: iostat mpstat sar

Mpstat is short for Multiprocessor Statistics and is a real-time system monitoring tool. Its report and CPU statistics are stored in the/proc/stat file. In a multi-CPUs system, it can not only view the average status information of all CPUs, but also view the information of specific CPUs. The following describes only the CPU-related parameters of mpstat. The mpstat syntax is as follows:

Mpstat [-P {| ALL}] [internal [count]

Mpstat-P 0 1 5

Mpstat-p all 1 5

How to view network card Traffic

Sar-n DEV 1 5

The value 1 4 after the command indicates that the value is obtained once every second and 5 times. IFACE: LAN interface
Rxpck/s: packets received per second
Txpck/s: Packets sent per second
Rxbyt/s: number of bytes received per second
Txbyt/s: number of bytes sent per second
Rxcmp/s: compressed data packets received per second
Txcmp/s: compressed data packets sent per second
Rxmcst/s: multicast packet received per second

  1. 16: 35 minutes 25 seconds IFACErxpck/stxpck/srxbyt/stxbyt/srxcmp/stxcmp/srxmcst/s

  2. 16: 35 minutes 26 seconds lo0.000.000.000.000.000.000.000.00

  3. 16: 35 minutes 26 seconds eth03.002.00258.00284.000.000.000.00

  4. 16: 35 minutes 26 seconds eth151.0089.005680.00122874.000.000.000.00

  5. 16: 35 minutes 26 seconds sit00.000.000.000.000.000.000.000.00

  6. 16: 35 minutes 26 seconds IFACErxpck/stxpck/srxbyt/stxbyt/srxcmp/stxcmp/srxmcst/s

  7. 16: 35 minutes 27 seconds lo0.000.000.000.000.000.000.000.00

  8. 16: 35 minutes 27 seconds eth04.003.00274.00834.000.000.000.00

  9. 16: 35 minutes 27 seconds eth181.00106.0011816.00138982.000.000.000.00

  10. 16: 35 minutes 27 seconds sit00.000.000.000.000.000.000.000.00

  11. 16: 35 minutes 27 seconds IFACErxpck/stxpck/srxbyt/stxbyt/srxcmp/stxcmp/srxmcst/s

  12. 16: 35 minutes 28 seconds lo4.004.00422.00422.000.000.000.00

  13. 16: 35 minutes 28 seconds eth01.001.0070.00598.000.000.000.00

  14. 16: 35 minutes 28 seconds eth19.000000001811.0025787.000.000.000.00

  15. 16: 35 minutes 28 seconds sit00.000.000.000.000.000.000.000.00

  16. 16: 35 minutes 28 seconds IFACErxpck/stxpck/srxbyt/stxbyt/srxcmp/stxcmp/srxmcst/s

  17. 16: 35 minutes 29 seconds lo0.000.000.000.000.000.000.000.00

  18. 16: 35 minutes 29 seconds eth08.917.92629.707144.550.000.000.00

  19. 16: 35 minutes 29 seconds eth120.7922.771927.7232144.550.000.000.00

  20. 16: 35 minutes 29 seconds sit00.000.000.000.000.000.000.000.00

  21. 16: 35 minutes 29 seconds IFACErxpck/stxpck/srxbyt/stxbyt/srxcmp/stxcmp/srxmcst/s

  22. 16: 35 minutes 30 seconds lo8.088.08607.07607.070.000.000.00

  23. 16: 35 minutes 30 seconds eth06.065.05418.181969.700.000.000.00

  24. 16: 35 minutes 30 seconds eth12.022.02153.54177.780.000.000.00

  25. 16: 35 minutes 30 seconds sit00.000.000.000.000.000.000.000.00

  26. Average: IFACErxpck/stxpck/srxbyt/stxbyt/srxcmp/stxcmp/srxmcst/s

  27. Average: lo2.402.40204.60204.600.000.000.00

  28. Average: eth04.603.80330.402176.400.000.000.00

  29. Average: eth132.8048.004281.2064057.000.000.000.00

  30. Average: sit00.000.000.000.000.000.000.000.00

Iostat 1 2

  1. [Root @ localhosthome] # iostat12

  2. Linux2.6.32-358. el6.x86 _ 64 (localhost. localdomain) February _ x86_64 _ (1 CPU)

  3. Avg-cpu: % user % nice % system % iowait % steal % idle

  4. 0.070.000.120.070.0099.74

  5. Device: tpsBlk_read/sBlk_wrtn/sBlk_readBlk_wrtn

  6. Stc00.000.000.002880

  7. Sda0.232.585.69168800372132

  8. Dm-00.792.445.69159410372080

  9. Dm-10.000.040.0023760

  10. Avg-cpu: % user % nice % system % iowait % steal % idle

  11. 0.000.000.000.000.000.00100.00

  12. Device: tpsBlk_read/sBlk_wrtn/sBlk_readBlk_wrtn

  13. Sp_00.000.000.0000

  14. Sda0.000.000.0000

  15. Dm-00.000.000.0000

  16. Dm-10.000.000.0000


Note: After the installation is successful, you must set automatic service startup.

Second,

Install spotlightonunix_70.exe locally

This is the next step for installation.

Configure your database environment in the software.

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.