Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 17010 invoked from network); 10 Jul 2007 16:43:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2007 16:43:20 -0000 Received: (qmail 4942 invoked by uid 500); 10 Jul 2007 16:43:12 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 4914 invoked by uid 500); 10 Jul 2007 16:43:12 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 4899 invoked by uid 99); 10 Jul 2007 16:43:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 09:43:12 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 09:43:06 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1I8InW-00056h-60 for user@struts.apache.org; Tue, 10 Jul 2007 09:42:46 -0700 Message-ID: <11524619.post@talk.nabble.com> Date: Tue, 10 Jul 2007 09:42:46 -0700 (PDT) From: cilquirm To: user@struts.apache.org Subject: Re: Struts 2 performance In-Reply-To: <3e7716cd0707091908y76e024acu98b88e02b428df58@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: aadi.deshpande@gmail.com References: <3e7716cd0707091908y76e024acu98b88e02b428df58@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I've found that static html pages are blazing fast, especially those that don't involve stylesheets, images, or javascript includes. :-) Seriously, though, I don't think there's any disagreement that ognl ( or any runtime expression language ) adds a certain amount of overhead, but I've never seen any of my servers pinned that high, and I've been working with WW2/S2 for probably around 3 years now. At the end of the day, I can argue to my company that we'll get faster performance by switching to servlets and straight jsp, but I don't want to be the one debugging that when it all goes to pot. I'm all for the minor tradeoff on performance for the incredibly superior gains in productivity and general developer happiness that S2 affords me. my2c, -a P.S. One thing you can do, if you're so inclined once you've tried out the other performance tips, is to give ognl 2.7 a go. You can get it via the Tapestry libs download. It's a straightforward replacement, just drop in ognl.jar and javassist.jar and start up. I've done it here and it hasn't really changed my perception of my webapp but YMMV climbingrose wrote: > > Hi all, > > I've been developing Struts 2 webapp for nearly a year now and have a > great > deal of experience with it. Personally, the architecture of Struts 2 is > much > cleaner than its predecessor. However, recently I converted one of my > Struts > 2 pages into Servlet + JSP solution and it turns out that Struts 2 > performance is much worse than Servlet + JSP. In Servlet + JSP solution, > the > server CPU is barely over 3-4% while with Struts 2, it's around 70% most > of > the time. The JSP page is around 300 lines of code. I don't have a chance > to > do any profiling to find out where is the bottleneck but I suspect it > might > be OGNL which hinders the performance. I think, we already have a pretty > good feature set so we can start thinking about optimising Struts 2. That > will probably speed up its adoption in the industry. > > > > The other thing I want to comment on is the use of Dojo as Ajax theme. I > don't have much experience with Dojo apart from a few hours playing around > with it. However, even with the latest version (0.9), Dojo just seems to > be > to heavy weight for most purposes. I mean if you only want a bloody > calendar > in your webapp, you don't want to load up a 100kb of javascript. Plus, it > might be my experience only, Dojo seems to have the tendency to hang my > browser everytime I open a Dojo-based app. > > -- > Regards, > > Cuong Hoang > > -- View this message in context: http://www.nabble.com/Struts-2-performance-tf4053401.html#a11524619 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org