共 21 篇文章 |
|
apache性能测试工具ab使用详解。ab非常实用,它不仅可以对apache服务器进行网站访问压力测试,也可以对或其它类型的服务器进行压力测试。apache安装完毕后ab命令存放在apache安装目录的bin目录下。注意:如果不想安装apache但是又想使用ab命令的话,我们可以直接安装apache的工具包httpd-tools。如果ab安装成功,通过ab –V命令则会显示ab的相... 阅285 转2 评0 公众公开 15-11-04 17:25 |
如何查看apache的请求进程数| 『服务器技术专区』| →『系统应用区』apache服务器的fin_wait1过多time_wait过多问题解决1、fin_wait1状态过多。net.ipv4.tcp_tw_reuse = 1net.ipv4.tcp_tw_recycle = 1.#sysctl -a | grep time | grep waitnet.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait = 120net.ipv4.netfilter.ip_conntrack_tcp_tim... 阅2249 转5 评0 公众公开 14-06-13 08:46 |
合理设置apache httpd的最大连接数.在/usr/local/etc/apache22/httpd.conf中加载MPM配置(去掉前面的注释):# Server-pool management (MPM specific)Include etc/apache22/extra/httpd-mpm.conf.可见的MPM配置在/usr/local/etc/apache22/extra/httpd-mpm.conf,但里面根据httpd的工作模式分了很多块,哪一部才是当前httpd的工作模式呢?实时... 阅21 转0 评0 公众公开 14-06-06 22:52 |
详解awstats和tomcat配置指南Include "common.conf" LogFile="C:/apache-tomcat-5.5.28/logs/localhost_access_log.%yyyy-%mm-%dd.log" SiteDomain="localhost" HostAliases="localhost 127.0.0.1" DefaultFile="index.jsp" #在cgi-bin建立data文件夹 DirData="dat... 阅38 转0 评0 公众公开 14-06-06 09:20 |
[root@AY140604150429544532Z tools]# [root@AY140604150429544532Z tools]# mkdir /var/lib/awstats[root@AY140604150429544532Z tools]# chmod 755 /etc/awstats/awstats.115.28.107.46.conf [root@AY140604150429544532Z tools]# chmod 755 /var/lib/awstats/[root@AY140604150429544532Z tools]# /usr/local/awstats/tools/awstats_updatea... 阅43 转0 评0 公众公开 14-06-05 22:27 |
GNU/Linux:tar zxf awstats-version.tgzawstats 的脚本和静态文件缺省都在 wwwroot 目录下: 将 cgi-bin 目录下的文件都部署 awstats.pl 程序到/home/apache/cgi-bin/awstats/ 下mv awstats-version/wwwroot/cgi-bin /path/to/apache/cgi-bin/awstats#把图标等文件目录复制到WEB的HTML文件发布目录下:/home/apache/htdocs/ 下发布更多的批量... 阅86 转0 评0 公众公开 14-06-01 22:47 |
Apache并发连接数优化设置[zt]Apache并发连接数优化设置[zt]Apache优化步骤:2 修改apache 的httpd-mpm.conf 配置。打开 /usr/local/apache2/conf/extra/httpd-mpm.conf ,每个机器可能httpd-mpm.conf 可能不同,这里可以通过find 命令查询。如果当前空闲子进程数小于MinSpareServers,那么Apache将以最大美妙一个的速度产生新的子进程。如果当... 阅2 转自python_di... 公众公开 14-06-01 09:58 |
apache高负载性能调优先阅读apache配置优化建议如下,再对相关参数进行调整,观察服务器状况.Apache配置优化建议:进入/usr/local/apache2/conf/extra 目录下Apache优化,经过上述操作后,Apache已经能够正常运行。但是,对于访问量稍大的站点,Apache的这些默认配置是无法满足需求的,我们仍需调整Apache的一些参数,使Apache能够在大访问量环境... 阅50 转0 评0 公众公开 14-06-01 09:42 |
apache反向代理,如何获取用户真实IP.很多时候项目都需要获取用户的真实IP进行一些分析或者权限过滤,一般情况下通过request.getRemoteAddr()就可取得客户端的IP地址,但是在通过了Apache,Squid等反向代理软件就不能获取到客户端的真实IP地址了。 阅5485 转8 评0 公众公开 14-05-31 17:59 |
cat access_log | grep "20/Oct/2008:00" | grep "122.102.7.212" | awk ''{print $8}'' | sort | uniq -c | sort -nr | head -n 10.tcpdump -i eth0 -tnn dst port 80 -c 1000 | awk -F"." ''{print $1"."$2"."$3"."$4}'' | sort | uniq -c | s... 阅79 转0 评0 公众公开 14-05-31 17:37 |