Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Installation : (Category) Unix :
Is DSO significant better than static linking?
----------
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
[Append to This Answer]
Previous: (Answer) DSO on AIX 4.2.1, Apache 1.3.6 and JServ 104b
Next: (Answer) make: Fatal error in reader: Makefile, line 174: Unexpected end of line seen
This document is: http://java.apache.org/faq/?file=184
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.