Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 69212 invoked from network); 1 Jun 2009 12:09:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jun 2009 12:09:22 -0000 Received: (qmail 15390 invoked by uid 500); 1 Jun 2009 12:09:31 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15322 invoked by uid 500); 1 Jun 2009 12:09:30 -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 15311 invoked by uid 99); 1 Jun 2009 12:09:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2009 12:09:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rosenberg.leon@googlemail.com designates 72.14.220.156 as permitted sender) Received: from [72.14.220.156] (HELO fg-out-1718.google.com) (72.14.220.156) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2009 12:09:19 +0000 Received: by fg-out-1718.google.com with SMTP id d23so552543fga.17 for ; Mon, 01 Jun 2009 05:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=onPsH/nZzxbJPiQsxoaup6BJc0DJTcozpMVvXkmKqEE=; b=oW6b/sRNorTSE49XBlXyfQRkhfsEtdNnd1CDO/nsH3j/8OrSTTQgt+eNsPQxaIye30 OgHFx0CJoLvVCZnwKgpzozMB1RVnuBgtoe/pD50zL0fLyNWZ29S53MfvAQdAU4maSfkY xWIV/yUeupRs02uyNCw4dZkHOrvGkz8ZkACDA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=d48oquxdVTKfBbG6efNKQN/7fawn4t28J2N+kJ0REoZpziT3ml6zVkZs8HjWZj0fTZ j3FgCcgBfPBKG/IfqA2qPF92pyse5jSzTQnMYxGy9nezh0rzQdE/msI35DLmCEVkn8UZ knLqiQ5bcRprm9dGNHgdKWRDXu/8WClFHRgCA= MIME-Version: 1.0 Received: by 10.86.65.18 with SMTP id n18mr6489303fga.25.1243858137830; Mon, 01 Jun 2009 05:08:57 -0700 (PDT) In-Reply-To: <9EA1296A-7D53-47D7-B2A0-1F5C1C5D0342@koberg.com> References: <4A23B7AB.4060608@joedog.org> <9EA1296A-7D53-47D7-B2A0-1F5C1C5D0342@koberg.com> Date: Mon, 1 Jun 2009 14:08:57 +0200 Message-ID: <327858f40906010508x48d04b26tae2c88175b135ad6@mail.gmail.com> Subject: Re: Caching rendered page - reducing hits to the backend? From: Leon Rosenberg To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Jun 1, 2009 at 1:37 PM, Robert Koberg wrote: > > On Jun 1, 2009, at 7:12 AM, Tim Funk wrote: >> The key is making sure you have the ability to log how long differnt >> things take. (And the ability to turn them on or off) =A0Otherwise you a= re >> flying blind. > > I think you can generally say that the less you have to do on the server, > the better. If you can generate out a page *as much as possible* so that > only the really necessary dynamic components are created at runtime, then= it > is better. > > We use XSL/XML to pregenerate a JSP bringing all known page > content/components. > > I don't see why you would be flying blind. Seems like a no-brainer. Funny :-) I remember removing xml/xsl generation from the chain and replacing it with jsps a while ago. Brought about factor 10 performance (from 50 ms rendering time to 5). So I second TIm's statement: measure first and measure after. And compare :-) Leon --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org