Forum Captain'sLog Crewlist CrewWanted BoatForsale Classifieds Boat Sailor

ALL Boards
News And
Cruising &
Building &
& Gear
7knots FAQ
& General
Bug Reports
Misc & Other
Test Posts
ID: 26 Title: mod_perl Is Not Installed In Our New Apache 2.0 Server Replis: 0 Read: 1080 Author: 1
Name: Tom Yang  Posts: 110    Vancouver Time: 2003-1-30_4:21:25 Quote    Reply
The entire 7k cgi is written in perl. When a member clicks, his brower sends the request to Apache at 7knots. Apache then passes the order to the underline perl script. Perl launches itself and does the work. Then, it sends the results to Apache and exits. Then, Apache sends the results to the browser for display. Upon the next click, the cycle starts again.... As a result, perl launches and exits more than 20,000 times a week! Big chunk of the overhead is on connecting and disconnecting to MySQL backend 20,000 times. Think about it! How long does it take for you to launch and close your Internet Explorer 10 times?

This is ridiculous. It'll be much faster if perl can stay in the memory with Apache the whole time without exit, and MySQL stays persistantly open. Yes, this has been done by the perl module "mod_perl".

However, it seems to me that Apache development guys did not talk to mod_perl dudes before they launched the brand new Apache 2.0. Well, they couldn't care for less, I guess, considering perl is only one of the cgi choices among php, Java, Python, ASP... and god knows what else. Until today, mod_perl hasn't released a version (1.99 is a joke) to work with the new Apache yet.

Tough. Use Apache 1.3 then, you say. Well,you think for two years between 1.3 and 2.0, these Apache guys were standing still? I'm going to wait for mod_perl 2.0. However, when it comes to the time of installation, it can be very hair-standing. From my previous experience, Apache and mod_perl should be compiled together. With Apache 2.0 compiled alone by Red Hat, it'll be very scary to "add" mod_perl into it. You are warned.