Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 65569 invoked from network); 21 Aug 2007 17:46:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 17:46:31 -0000 Received: (qmail 61969 invoked by uid 500); 21 Aug 2007 17:46:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 61703 invoked by uid 500); 21 Aug 2007 17:46:17 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 61692 invoked by uid 99); 21 Aug 2007 17:46:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 10:46:17 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=DNS_FROM_DOB,RCVD_IN_DOB,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ben@souther.us designates 69.59.22.27 as permitted sender) Received: from [69.59.22.27] (HELO earth.assortedinternet.com) (69.59.22.27) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 17:46:13 +0000 Received: from 67.107.119.66.ptr.us.xo.net ([67.107.119.66] helo=[192.168.0.20]) by earth.assortedinternet.com with esmtpa (Exim 4.66) (envelope-from ) id 1INXnU-0002qi-Hp for users@tomcat.apache.org; Tue, 21 Aug 2007 13:45:44 -0400 Subject: Re: 20 Tips for Using Tomcat in Production From: Ben Souther Reply-To: ben@souther.us To: Tomcat Users List In-Reply-To: <153af7a10708210757kab87079i85bfcc60811a0c81@mail.gmail.com> References: <153af7a10708210510x3bb38014t5c743f7732a2b184@mail.gmail.com> <46CADA07.9070402@oma.be> <153af7a10708210757kab87079i85bfcc60811a0c81@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Message-Id: <1187718347.15212.2.camel@bsouther> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 21 Aug 2007 13:45:47 -0400 Content-Transfer-Encoding: quoted-printable X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - earth.assortedinternet.com X-AntiAbuse: Original Domain - tomcat.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - souther.us X-Virus-Checked: Checked by ClamAV on apache.org Tip #8: You tell the users about the tomcat-users.xml file for adding the role info but never tell them where to enter the RemoteAddrValve in order to restrict IPs. On Tue, 2007-08-21 at 10:57, Shane Witbeck wrote: > David, >=20 > Thanks for your comments. I've added them to the blog post for > everyone's benefit. >=20 > Shane >=20 > On 8/21/07, David Delbecq wrote: > > Very nice. May i suggest 2 comments perhaps?: > > > > 6... If you're loading several applications with several of the same > > library dependencies, consider moving them from the applications' > > |WEB-INF/lib| directory to Tomcat's shared library > > |{catalina.home}/shared/lib|. This will reduce the memory used by each > > application and result in smaller WAR files. > > > > You should make a remark that this change the behaviour of webapp: > > a) Shared classloader is searched in last ressort when looking for > > classes, according to > > http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html. > > b) Because the classes are shared, they share config & singletons and > > if they store objects statically they will prevent webapp unloading > > > > > > 7...Consider JDK 1.5 or even better JDK 1.6 to take advantage of > > performance improvements. > > > > Note that you can gain even more performance if you recompile your > > "string concatenation hungry" (d=3D"aaaa"+b+"ccc") support libaries for > > jdk 5+ on a multi CPU system. This is because jdk5 uses the > > non-synchronized stringbuilder instead of the jdk 4- synchronized > > StringBuffer. And synchronization over multiple cpu takes a few more > > cycles than on single CPU machines. > > > > > > > > En l'instant pr=C3=A9cis du 21/08/07 14:10, Shane Witbeck s'exprimait e= n ces > > termes: > > > I thought my latest blog post would be of interest to the people on t= his list: > > > > > > http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-= production/ > > > > > > --------------------------------------------------------------------- > > > To start a new topic, e-mail: users@tomcat.apache.org > > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > > > > > > -- > > http://www.noooxml.org/ > > > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org