寻觅生命中的那一片浅草......

文章带标签 Linux

查看httpd进程数(即prefork模式下Apache能够处理的并发请求数)

查看httpd进程数(即prefork模式下Apache能够处理的并发请求数)

Linux命令:
ps -ef | grep httpd | wc -l

查看Apache的并发请求数及其TCP连接状态:

Linux命令:
netstat -n | awk ‘/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}’

返回结果示例:
LAST_ACK 5
SYN_RECV 30
ESTABLISHED 1597
FIN_WAIT1 51
FIN_WAIT2 504
TIME_WAIT 1057

说明:
SYN_RECV表示正在等待处理的请求数;
ESTABLISHED表示正常数据传输状态;
TIME_WAIT表示处理完毕,等待超时结束的请求数

转载自:查看httpd进程数

linux服务器每秒并发处理数的计算方法

1、利用网络处理量计算。

计算参考公式:

并发 = connection established / min(server keepalive, server timeout)

翻译一下:

并发 = 服务器传输链接数 除以 服务器软件的keepalive设置和服务器软件的超时设置之间的最小值

这个公式算出来的数字是keepalive时间段内的平均值,比真实平均值要小一点,如果想找最大值就要设定keepalive为0或1,然后多探测几次。

阅读全文»

Cacti可以监控的东西

Cacti可以监控的东西,下面看看,可多啦

Handy Repopulate Poller Cache Script

Download and Documentation

http://forums.cacti.net/about10292.html

New Advanced Ping Template Version

Download and Documentation

http://forums.cacti.net/about10049.html

Powerware 9120 UPS via SNMP

Download and Documentation

http://forums.cacti.net/about5427.html

Smoke Ping Like

Download and Documentation

http://forums.cacti.net/about8503.html

Apache stats Template

Download and Documentation

http://forums.cacti.net/about9861.html

Dell PowerEdge(1750,2650,2800,6650)/PowerVault Templates – Temperature
PowerEdge 2650 template also works with a PowerVault 775N

Download and Documentation

http://forums.cacti.net/about15451.html

ZXTM load balancer product from Zeus templates

Downloads and Documents

http://forums.cacti.net/about15287.html

Cisco SAN MDS9020 Switch Port statistics

Download and Documentation

http://forums.cacti.net/about15797.html

阅读全文»

CentOS5.0上用yum方式安装Cacti0.8.7d

上次安装不成功,最终放弃,总是不甘心,这次重来,这次安装还算顺利!发现有些事情,放一放,重新来,就会有新的思路,也会发现新的方法,但所有的事情都经得起等待吗?

1、首先,激活额外的yum源

# yum install yum-priorities
# wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
# rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
# rpm -K rpmforge-release-0.3.6-1.el5.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

阅读全文»

使用find命令

find最简单的应用,是搜索当前目录及其子目录下的文件。

$ find .
./tp1301.txt
./up1301.txt
./tp1302.txt
./up1302.txt
./Up1303.txt
./misc/uploads
./misc/uploads/patch12_13.diff

像往常一样,那个点(.)代表当前目录。在以上例子里,find列出了当前目录及其子目录下的所有文件。

如果只想搜索up开头的文件名,使用’-name’参数。

也就是如下命令:
阅读全文»

2025年七月
« 5月    
 123456
78910111213
14151617181920
21222324252627
28293031