Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 99567 invoked from network); 19 Sep 2008 06:16:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Sep 2008 06:16:19 -0000 Received: (qmail 66715 invoked by uid 500); 19 Sep 2008 06:16:06 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 66687 invoked by uid 500); 19 Sep 2008 06:16:06 -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 66676 invoked by uid 99); 19 Sep 2008 06:16:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 23:16:06 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.23.3.142] (HELO smarthost03.mail.zen.net.uk) (212.23.3.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2008 06:15:07 +0000 Received: from 82-70-203-134.dsl.in-addr.zen.co.uk ([82.70.203.134] helo=[127.0.0.1]) by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1KgZHE-0002B1-Lx for user@struts.apache.org; Fri, 19 Sep 2008 06:15:36 +0000 Message-ID: <48D34382.6020401@alsutton.com> Date: Fri, 19 Sep 2008 07:15:30 +0100 From: Al Sutton User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Performance and High CPU utilization References: <19559123.post@talk.nabble.com> <7270d7cd0809181235s738995b7u91c0f54a4506a05f@mail.gmail.com> <19560223.post@talk.nabble.com> <366601530809181247g5838c60dv565d04bec8287b67@mail.gmail.com> <19560372.post@talk.nabble.com> <48D2B37F.2050003@alsutton.com> <19560763.post@talk.nabble.com> <48D2BD00.3060505@alsutton.com> <19561442.post@talk.nabble.com> <19561468.post@talk.nabble.com> In-Reply-To: <19561468.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Smarthost03-IP: [82.70.203.134] X-Virus-Checked: Checked by ClamAV on apache.org Are you, by any chance, trying to display a big list all at once? Al. sajanv007 wrote: > sOME MORE TRACES > > CPU SAMPLES BEGIN (total = 8868) Sat Sep 6 12:29:17 2008 > rank self accum count trace method > 1 20.44% 20.44% 1813 303423 ognl.SimpleNode.evaluateGetValueBody > 2 12.55% 33.00% 1113 300397 java.net.PlainSocketImpl.socketAccept > 3 8.37% 41.36% 742 300856 java.net.SocketInputStream.socketRead0 > 4 7.81% 49.18% 693 303426 ognl.Ognl.getValue > 5 4.52% 53.70% 401 303853 ognl.ASTProperty.getValueBody > 6 4.18% 57.88% 371 302117 java.net.PlainDatagramSocketImpl.receive0 > 7 4.18% 62.07% 371 301880 java.net.SocketInputStream.socketRead0 > > sajanv007 wrote: > >> These are HProf results >> >> CPU SAMPLES BEGIN (total = 3267) Sat Sep 6 12:27:45 2008 >> rank self accum count trace method >> 1 15.70% 15.70% 513 300397 java.net.PlainSocketImpl.socketAccept >> 2 10.47% 26.17% 342 300856 java.net.SocketInputStream.socketRead0 >> 3 5.23% 31.40% 171 302117 >> java.net.PlainDatagramSocketImpl.receive0 >> 4 5.23% 36.64% 171 301880 java.net.SocketInputStream.socketRead0 >> 5 5.23% 41.87% 171 301035 >> weblogic.socket.DevPollSocketMuxer.doPoll >> 6 3.28% 45.15% 107 303426 ognl.Ognl.getValue >> 7 2.48% 47.63% 81 301738 sun.reflect.Reflection.getCallerClass >> 8 1.99% 49.62% 65 300923 java.lang.String.intern >> 9 1.87% 51.48% 61 303423 ognl.SimpleNode.evaluateGetValueBody >> 10 1.81% 53.29% 59 300505 java.util.zip.ZipFile.getEntry >> 11 1.56% 54.85% 51 301639 java.lang.Throwable.fillInStackTrace >> 12 1.41% 56.26% 46 303434 java.util.ResourceBundle.getObject >> 13 1.16% 57.42% 38 301739 java.lang.Object.clone >> 14 1.13% 58.56% 37 303267 ognl.OgnlRuntime.getHandler >> 15 1.01% 59.57% 33 301953 java.lang.Object.hashCode >> >> >> Al Sutton wrote: >> >>> Do the ideas listed at >>> >>> http://java.sun.com/developer/technicalArticles/Programming/HPROF.html >>> >>> shed any light on it? >>> >>> sajanv007 wrote: >>> >>>> I am using the latest Freemarker version 2.3.13 and Spring 2.5 OGNL >>>> 2.7.2 >>>> with Javaassist . >>>> >>>> Al Sutton wrote: >>>> >>>> >>>>> Replace your freemarker lib with 2.3.13 or later. Prior releases had a >>>>> concurrency performance issue. >>>>> >>>>> Al. >>>>> >>>>> sajanv007 wrote: >>>>> >>>>> >>>>>> It is a solaris box and has 16 GB memory and 4 CPU it is high end >>>>>> server >>>>>> class machine . Some how I suspect it is the OGNL or Freemarker >>>>>> rendering >>>>>> issue . >>>>>> >>>>>> Jim Kiley wrote: >>>>>> >>>>>> >>>>>> >>>>>>> What kind of server are you using here, how much memory, what CPU -- >>>>>>> when >>>>>>> we >>>>>>> are getting to CPU utilization, all of these issues are relevant. >>>>>>> >>>>>>> On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 >>>>>>> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> I have tried all the tuning parameters mentioned in the link somehow >>>>>>>> CPU >>>>>>>> utilization is always 80% ,I observed that it takes tags are >>>>>>>> rendered >>>>>>>> from >>>>>>>> free marker cache but still the cpu 80-90% . >>>>>>>> >>>>>>>> Regards >>>>>>>> >>>>>>>> Sajan >>>>>>>> >>>>>>>> >>>>>>>> Nils-Helge Garli wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> Maybe this can help: >>>>>>>>> http://struts.apache.org/2.0.11.2/docs/performance-tuning.html >>>>>>>>> >>>>>>>>> Nils-H >>>>>>>>> >>>>>>>>> On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> There is huge performance issue and CPU hogging with Struts2 tag , >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>> this >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> was >>>>>>>>>> observed while rendering JSP. These are some performance results >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>> obtained >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> Strut 2 Tag - With all performance tuning applied as per Struts 2 >>>>>>>>>> documentation - Freemarker caching etc... >>>>>>>>>> Load Runner Tool >>>>>>>>>> 40 users >>>>>>>>>> 900 hits per second >>>>>>>>>> 10 transaction per second >>>>>>>>>> >>>>>>>>>> Results >>>>>>>>>> CPU utilization 90% >>>>>>>>>> Response 3.5 sec >>>>>>>>>> >>>>>>>>>> Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label, >>>>>>>>>> s:text,s:textfield,s:hidden,s:param) >>>>>>>>>> 40 users >>>>>>>>>> 900 hits per second >>>>>>>>>> 15 transaction per second >>>>>>>>>> >>>>>>>>>> Results >>>>>>>>>> CPU utilization 70% >>>>>>>>>> Response 2.0 sec >>>>>>>>>> >>>>>>>>>> Some where down the line Struts 2 tag are very cpu hungry , to >>>>>>>>>> people >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>> to >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> adopt to strut2 framework cpu utilization should be optimized . >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Did anybody come across on how to over come this problem >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> View this message in context: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>> 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 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> --------------------------------------------------------------------- >>>>>>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>>>>>>>> For additional commands, e-mail: user-help@struts.apache.org >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> -- >>>>>>>> View this message in context: >>>>>>>> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560223.html >>>>>>>> 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 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> -- >>>>>>> Jim Kiley >>>>>>> Technical Consultant | Summa >>>>>>> [p] 412.258.3346 [m] 412.445.1729 >>>>>>> http://www.summa-tech.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>>>> For additional commands, e-mail: user-help@struts.apache.org >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>> For additional commands, e-mail: user-help@struts.apache.org >>> >>> >>> >>> >> > > -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org