tiny한 httpd (http://www.acme.com/software/thttpd/ ) 서버가 있다길래..
tiny한 웹서버에 아래와 같은... 찬사가..
"I got thttpd compiled and running on the web server at work in no time at all, or close enough for my purposes, and I really like it, and when I told the rest of the crew what the footprint was they almost coughed up their lunches."-- Martin Kelly
"Our load averages have dropped significantly since we moved our graphics to thttpd."-- Randy Cosby
"i just grabbed thttpd and set it up on my personal box to test it out, and i am amazed at how quick and easy that was. i'm a hardcore apache expert but this was just phenomenally simple. very refreshing."-- Jon Drukman
"I switched to thttpd on my underpowered server about 20 minutes after downloading it."-- Daniel Quinlan
"I just wanted to let you know that I installed thttpd and it works really great. The server is a P3/500 w/512 megs running FreeBSD 3.3 and when it was using apache it was at about 11 load average and kept throwing connections and errors. Now it runs dandy with thttpd and the load average is between 0.1 and 0.2. The thttpd process is at about 200 megs size and the system is usually 60% idle. The machine serves about 400 simultaneous connections (more on peak hours)."-- Petru Paler
"I just upgraded my htdocs development box from apache to thttpd. I was looking for a httpd that would use less memory - I found one that was faster and easier to use as well :)"-- David Brownlee
"We are using thttpd to serve all of our images. We are a huge traffic site. We moved about a month ago from a barebones apache. The load on our web servers dropped dramatically, as did the memory usage! woohoo!"-- Jeremy Brand
"Configuration: Athlon 700, 800MB RAM. Before: Apache, load=170, machine unusable, capped at 4Mbits, SWAPPING. After: thttpd, load=.09 (yes, that's point-zero-nine), happy at 8Mbits, only using ~300MB of RAM."-- Jon Oringer
간단히 성능 비교를 해보았습니다.
참 설치는 아래와 같이 .. ㅋ
머 반드시 그럴 필요는 없지만..
cd /usr/src/redhat/SOURCES wget http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz rpm -ta thttpd-2.25b.tar.gz
rpm -i /usr/src/redhat/RPMS/i386/thttpd-2.25b-1.i386.rpm
실행방법도 좀 복잡해염
/usr/local/sbin/thttpd -r -u webtizen -d /usr/local/www/root/ -h 211.189.0.131
본격적인 비교..
일반 인덱스 파일 요청 시 (1kbyte 미만)
|
|
Httpd |
thttpd |
|
총 응답 완료 수 |
6888 성공 |
9408 성공 |
|
총 전송 바이트 |
1921752 bytes |
2436931 bytes |
|
초당 응답 요청 완료 수 |
688.76 [#/sec] (mean) |
940.76 [#/sec] (mean) |
|
초당 전송 바이트 |
187.59 [Kbytes/sec] received |
237.89 [Kbytes/sec] received |
100kbyte의 jpg 파일을 요청
|
|
Httpd |
thttpd |
|
총 응답 완료 수 |
5606 성공 |
6550 성공 |
|
총 전송 바이트 |
566479455bytes |
658433842 bytes |
|
초당 응답 요청 완료 수 |
560.53 [#/sec] (mean) |
654.89 [#/sec] (mean) |
|
초당 전송 바이트 |
55313.55 [Kbytes/sec] received |
64289.41 [Kbytes/sec] received |
100kbyte의 jpg 파일을 요청
|
|
Httpd |
thttpd |
|
총 응답 완료 수 |
5079 성공 |
5156 성공 |
|
총 전송 바이트 |
511184627 bytes |
526554124 bytes |
|
초당 응답 요청 완료 수 |
507.70 [#/sec] (mean) |
515.57 [#/sec] (mean) |
|
초당 전송 바이트 |
49900.37 [Kbytes/sec] received |
51418.02 [Kbytes/sec] received |
음..
확실히 httpd 보다는 간단하고 동시 요청이 없을 경우에는 뛰어나나...
요청이 많고 , 요청된 파일의 용량이 클경우느는 불안불안 하네염..
thttpd가 무조건적으로 좋다라고 말씀드리긴 어려울꺼 같아요.
때에 따라 잘 쓰시길!!

