-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rhodebump,

rhodebump wrote:
> I have 5 war files, each containing the springframework, hibernate jars,
> tapestry jars, lots of jars so that each war file is 30 megs.

How much space do you save if you move that stuff out of your WAR file?

Just because a JAR library is big doesn't mean that it will be loaded
entirely by the server. Most people probably use only 50% or any given
library (a wild-ass guess, so no one need bother asking about it).

If you have 5 webapps each loading, say, struts, you're only talking
about a small amount of memory being used by the class files themselves.
The sharing class files will be overwhelmingly eclipsed by the amount of
memory taken by instances of those classes.

I agree with Peter: bundle your webapps as self-contained entities. Your
deployment team will thank you.

> I understand how moving the stuff into /common/lib means everything uses the
> save version, but what is best for performance?

If you are concerned with memory use, then use more machines. Instead of
deploying 5 webapps on a single server, distribute them among more
servers. Any difference in CPU use is probably immeasurable because once
the classes are loaded, there should be no difference.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGaWlB9CaO5/Lv0PARAm3TAJ0a6B+w+wnOUMGN2PjWMzN/AxM5iACgjvML
pgIl+4RadJBOazEREHrdyE0=
=EoC2
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to