Gary Lawrence Murphy wrote:
>
> >>>>> "X" == Xiangzhou Wang <[EMAIL PROTECTED]> writes:
>
> X> Can anyone tell me the advantages to use servlet instead of
> X> FastCGI for performance issue with Apache+Jserv. Someone said
> X> they both have heavy-weigh context switch.
>
> Servlets are an initial memory footprint hit to allocate the JVM and
> heapspace; FastCGI is similar in that (I believe) it avoids the
> multiple invocations of Perl you get with normal CGI. Since both Perl
> and Java are about the same size of engine (more or less), before you
> get any visitors, the two methods are about equal.
>
> Once traffic arrives, FastCGI spawns new, independent application
> spaces for each and every invocation whereas Servlets are
> multithreaded, can share objects between sessions, and need only
> expand to accomodate the current heapspace demands of the session
> context. For large, complex or high-traffic problems, Servlets are
> much less strain on your system.
[...]
No flames, just going to point out that comparing FastCGI to Servlets is
akin to comparing a Ford Mustang to a Ferrari 355. If you want a fair
comparison, judge Servlets against mod_perl (which, is still somewhat
contrived).
Moreover, before doing *any* comparison, be sure to outline exactly what
you're comparing .. Servlets are better for somethings and others are
better handled by mod_perl or even C. Besides, we don't have multiple
languages just to have Holy Wars .. it's because one langauge can't to
everything well. (IMNSHO: The WiseMan(tm) knows when to use one over
the other, the FoolishMan(tm) sticks with only one because he feels he'd
rather make a point than progress)
--
Regards,
Dave
P: [EMAIL PROTECTED] W: [EMAIL PROTECTED]
Ubergeek - AnglersWeb, Inc / W3Works, LLC
Data Monger - Gestalt Technology, LLC
#include std/disclaimer.h
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]