www.sanotes.net
2010年03月11日

现在位置: 首页 > 所有 2007年11月 文章

FreeBSD 下的truss、strace和ltrace

2007年11月30日 添加评论 1135次浏览

truss是FreeBSD下默认的trace工具。
truss -o logfile command
truss -o logfile -p pid
truss -f command 同时跟踪子进程
strace
cd /usr/ports/devel/strace
make install
然后使用
还有一个l...

分类:FreeBSD | 阅读全文

Apache Cache System

2007年11月30日 添加评论 1139次浏览

modules/cache下面有很多的.c文件,大致用途如:
mod_cache.c 编译得到mod_cache.so 主要用来控制整个apache的cache功能。
mod_file_cache.c,mod_mem_cache.c,mod_disk_cache.c这个三个文件编译后得到各自的ca...

分类:Apache | 阅读全文

Apache DBD API

2007年11月30日 添加评论 1121次浏览

Apache DBD API
The Proposed Apache DBD Framework serves to enable database applications to work efficiently within Apache 2.1 and higher. It eases development and provides optimised cross-database, cross-MPM support for free.

Database-ind...

分类:Apache | 阅读全文

Apache2.2 认证模块

2007年11月29日 添加评论 1144次浏览

认证和授权涉及到三组模块。通常,你需要从每一组中选择至少一个模块。

认证类型模块(参见AuthType指令)

mod_auth_basic
mod_auth_digest

认证支持模块

mod_authn_alias
m...

分类:Apache | 阅读全文

iozone

2007年11月29日 添加评论 1121次浏览

iozone的确是一款不错的文件系统性能测试工具,可以就文件系统的很多方面作自动测试。地址:www.iozone.org
用法:
在希望进行测试的文件系统上运行:
iozone -a
即可进行全...

分类:Benchmark | 阅读全文

httperf usage

2007年11月29日 添加评论 1112次浏览

2 An Example of Using httperf
To convey a concrete feeling of how httperf is used, this section presents a brief example of how to measure the request throughput of a web server. The simplest way to achieve this is to send requests to the server...

分类:Apache | 阅读全文

使用Bonnie/Bonnie++进行系统IO性能测试

2007年11月29日 添加评论 1118次浏览

http://www.eygle.com/archives/2004/10/use_bonnie_plus2_test_iospeed.html
http://www.eygle.com/unix/Use.Bonnie.To.Test.IO.speed.htm

收藏、分享这篇文章!

...
分类:Benchmark | 阅读全文

取消php的keepalive的设置。

2007年11月29日 添加评论 1111次浏览

取消php的keepalive的设置。
在apache的vhost中配置,或者你自己放到需要的地方

代码:
SetEnvIfNoCase Request_URI \ \.(?:php|php2)$ nokeepalive

Request_URI 的解释

引用:

Request_URI - th... 在apache的vhost中配置,或者你自己放到需要的地方

代码:

SetEnvIfNoCase Request_URI \ \.(?:php|php2)$ nokeepalive

Request_URI 的解释

引用:

Request_URI - the resource requested on the HTTP request line -- generally the portion of the URL following the scheme and host portion without the query string


通过httpdwatch,可以看到的确是没有keepalive了:)

但是非动态内容,通过httpd.conf的设置可以打开keepalive,针对所有非动态的内容,同时keepalive timeout设置成10,这样一个比较小的数值。

如要在首页显示图片可以用此替换上句-->
分类:Apache | 阅读全文

Streaming Media — gnump3d

2007年11月29日 添加评论 1119次浏览

cd /usr/ports/audio/gnump3d
make install clean
修改/usr/local/etc/gnump3d/gnump3d.conf
然后运行gnump3d,就可以用http://youipadd:8888来访问了。
支持:Mp3,Ogg,wma
NetJuke
wget http://freshmeat.net/r...

Siege:压力模拟/测试工具

2007年11月29日 添加评论 1124次浏览

microsoft的application center test (ACT)工具用起来就比较麻烦。不过那个是用来测试动态web程序的,着眼点不一样。作为开源软件,ms就没啥好比了。大家各取所需吧。
Siege(英文意思是围攻...