Production environment configuration:
Operating system: CentOS 6.6
#并发连接程序从网上以下载好 and then upload to the server
1. Configure concurrent connector scripts and templates
[Email protected] tools]# RZ
RZ waiting to receive.
Zmodem Trl+c Transferring Get_netstat_conn.zip ...
[Email protected] tools]# Unzip Get_netstat_conn.zip
# copy the script to /cacti/scripts under
[Email protected] get_netstat_conn]# MV Get_netstat_tcp.pl/var/www/html/cacti/scripts
[Email protected] scripts]# chmod 755get_netstat_tcp.pl
[[email protected] scripts]# perlget_netstat_tcp.pl 127.0.0.1 2c public 161 500
Established:1 listen:0 timewait:7timeclose:0 finwait1:0 finwait2:0 synsent:0 synrecv:0 closewait:0
in the Cacti Interface Import Templates item in the import Cacti_graph_template_snmp_get_netstat_connection.xml Template Files
next can be in Device created in the device:
* Create Graphs forthis Host #创建主机图象
* DataSource List #数据源列表
* graphlist #图列表
webbench use of test tools
Production environment configuration:
Operating system: CentOS 6.6
Test tool: Webbench
Task: Webbench simulates the load capacity of a Web site with n concurrent connections.
1. Install the configuration process:
[[email protected] tools] #wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz# Telecom Network download no problem, mobile network cannot download
[Email protected]]# tar zxfv webbench-1.5.tar.gz
[1. Installation configuration process:
[[email protected] tools] #wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz# Telecom Network download no problem, mobile network cannot download
[Email protected]]# tar zxfv webbench-1.5.tar.gz
[[Email protected]]# CD webbench-1.5
[[Email protected]]#
[[Email protected]]# make && make install
The following error occurred:
Error 1 :
[[Email protected]]# make && make install
Ctags *.c
/bin/sh:ctags:command not found
Make: [tags] Error 127 (ignored)
How to resolve:
[[email protected]] #yum install Ctags
Error 2 :
[[Email protected]]# make && make install
Cc-wall-ggdb-w-o-c-o webbench.o webbench.c
webbench.c: in the function ' Alarm_handler ' Medium :
webbench.c:77: WARNING: Unused parameters ' Signal '
Cc-wall-ggdb-w-o-o Webbench WEBBENCH.O
Ctags *.c
[email protected]]# cd webbench-1.5
[[Email protected]]#
[[Email protected]]# make && make install
The following error occurred:
Error 1 :
[[Email protected]]# make && make install
Ctags *.c
/bin/sh:ctags:command not found
Make: [tags] Error 127 (ignored)
How to resolve:
[[email protected]] #yum install Ctags
Error 2 :
[[Email protected]]# make && make install
Cc-wall-ggdb-w-o-c-o webbench.o webbench.c
webbench.c: in the function ' Alarm_handler ' Medium :
webbench.c:77: WARNING: Unused parameters ' Signal '
Cc-wall-ggdb-w-o-o Webbench WEBBENCH.O
Ctags *.c
How to resolve:
[[email protected] webbench-1.5]# rm-f *.owebbench *~ core *.core tags # clear files left during installation
[Email protected] webbench-1.5]# Ldconfig
[Email protected] webbench-1.5]# Mkdir/usr/local/man
[[email protected] webbench-1.5]# make && make install
Install-s Webbench/usr/local/bin
Install-m 644 Webbench.1/usr/local/man/man1
Install-d/usr/local/share/doc/webbench
Install-m 644 Debian/copyright/usr/local/share/doc/webbench
Install-m 644 Debian/changelog/usr/local/share/doc/webbench
2.webbech Test and operation result: #Linux服务端测试
[Email protected] webbench-1.5]# webbench-c 100-t http://117.40.239.9/bbs/index.php
Webbench-simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open sourcesoftware.
Benchmarking:get http://117.40.239.9/bbs/index.php
Clients, running Sec.
speed=8115 pages/min, 28184 bytes/sec.
requests:2705 susceed, 0 failed.
test Result: Through Webbech pressure test, cacti monitor netstat different network state concurrent connection number. When the Linux client tests the Client Connection server, it accesses the address in a period of a second and the server responds very slowly in an instant.
[Email protected] webbench-1.5]# webbench-c 500-t http://bbs.jxatei.net/bbs/forum.php
Webbench-simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open sourcesoftware.
Benchmarking:get http://bbs.jxatei.net/bbs/forum.php
Clients, running-Sec.
speed=1016 pages/min, 1001878 bytes/sec.
requests:463 Susceed, failed.
as follows:
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/75/F0/wKioL1ZFfYryutgmAANoneKjvRU209.jpg "title=" BV. JPG "alt=" Wkiol1zffyryutgmaanonekjvru209.jpg "/>
This article is from the "Linux~dba~mba~eie" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1712461
Monitor netstat the number of concurrent connections in different network states through cacti