|
News,
Internal,
Projects,
Home Software, Support, Documentation |
대역제한을 위해 mod_throttle 을 모듈로 추가해주고 ab 툴로 체크해본결과
#ab -n 1000 -c 100 http://localhost/
프로세스수가 45개정도 뜬상태에서 다운되어버립니다.
물론 mod_throttle을 제거하면 2000개 이상 뜨고 다운도 안됩니다.
FreeBSD0-5.0_current + apache_1.3.27+php-4.2.3+modthrottle-3.1.2
apache :
./configure \
"--with-layout=Apache" \
"--prefix=/usr/local/apache" \
"--enable-module=all" \
"--enable-shared=max" \
"--activate-module=src/modules/php4/libphp4.a" \
php :
./configure --with-apache=/tmp/apache_1.3.27 --with-mysql=/usr/local/mysql \
--enable-force-cgi-redirect --enable-discard-path --enable-roxen-zts \
--disable-debug --with-config-file-path=/usr/local/apache/conf --enable-safe-mode \
--enable-sigchild --enable-magic-quotes --enable-libgcc --enable-php-streams \
--with-zlib --enable-bcmath --with-bz2 --enable-calendar --enable-ctype --enable-filepro \
--enable-ftp --with-gd=/usr/local --enable-gd-native-ttf --with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local --with-xpm-dir=/usr/local --with-freetype-dir=/usr/local \
--with-ttf=/usr/local --with-t1lib=/usr/local --with-gettext=/usr/local --with-gettext=/usr/local \
--with-gmp --with-hyperwave --enable-mbstring --with-pdflib=/usr/local \
--with-png-dir=/usr/local --with-tiff-dir=/usr/local --enable-trans-sid --enable-shmop \
--with-snmp --with-openssl=/usr/local --enable-ucd-snmp-hack --enable-sockets \
--with-regex=system --with-system-regex --enable-sysvsem --enable-sysvshm \
--enable-tokenizer --with-vpopmail=/usr/home/vpopmail
modthrottle :
make
make install
이렇게 빌드했습니다.
httpd.conf에 추가한내용.
<IfModule mod_throttle.c>
ThrottlePolicy none
<Location /throttle-status>
SetHandler throttle-status
</Location>
<Location /throttle-me>
SetHandler throttle-me
</Location>
<Location /~*/throttle-me>
SetHandler throttle-me
</Location>
</IfModule>>W슧hFv聯z뼨)Am$?y◀?$?R{.n+돴zwfj)mf"h+ 溫"㎠咽rz옽磨왞㎍86(~^숇,j
|
Copyright © 1998-2005 Korea FreeBSD Users Group. All rights reserved. webmaster at kr.FreeBSD.org $Date: 2003/05/31 23:01:05 $ |
|