----------
From: "Craig R. McClanahan" cmcclanahan@MYTOWNNET.COM
To: SERVLET-INTEREST@JAVA.SUN.COM
Subject: Re: Is DSO significant better than static linking?
Date: Fri, May 21, 1999, 4:16 PM
Bing Zhang wrote:
> I am developing a three tiers system: applet ---> servlet (with JDBC)-->
> Oracle database. The servlets also uses some JNI for legacy code.
>
> I just finished testing my servlets with servletrunner on NT and am going
> to move it as a production on Solaris 2.6. So I downloaded Apache 1.3.6 and
> Jserv 1.05b. But I am wondering whether I should compile them as DSO in my
> case? I anticipate hundreds simultaneous hits when it is put in work.
>
> Thanks
>
> Bing
>
I have not benchmarked it myself, but my understanding is that calls to
DSO-loaded modules in Apache are somewhat slower than calls to statically
linked modules. Therefore, for maximum performance, you're better off linking
statically. This does not inhibit your flexibilty with regards to JServ in
any way -- it just means that you need to recompile/relink Apache when you
want to add other Apache modules.
Craig McClanahan |