Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 25178 invoked from network); 12 Feb 2011 22:24:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2011 22:24:11 -0000 Received: (qmail 81388 invoked by uid 500); 12 Feb 2011 22:24:08 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 81216 invoked by uid 500); 12 Feb 2011 22:24:07 -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 81207 invoked by uid 99); 12 Feb 2011 22:24:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Feb 2011 22:24:07 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.167.74] (HELO web113614.mail.gq1.yahoo.com) (98.136.167.74) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 12 Feb 2011 22:23:58 +0000 Received: (qmail 70132 invoked by uid 60001); 12 Feb 2011 22:23:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1297549417; bh=INmXgwnXMFOCfpALlqE/Kr6LOQ0IneBW/5GEyQOiKI0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=dee5vIF30I9qGFSm2U8jy7FRmTF5G9hhgWJq+UrDnfFBaCDMWXrf0afum/U/uLLBNY4ZXaRW0lw9bLeVmhvhMUX+uKHxmQTbg+Q95plQnvHlxdzkaM2J99JKaU49JsTjhi6uRJJr2k+vnzjprIlRUU4AmHSN9kOMvJgKavXo1c0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=XS0Zjhu4VXN1fOZn9AxH4vBrGlTdaKsWAPBxGGAUJNiQ3h7ElPZ9NI7rj34AyHO0+ViocW5/wRuTw0NF5H0AzZwZcyAHotWZuWzR/rZ8W0/8ANRqWwRZA0kLfR6m95MF9PP0JZFO7Ip5VwW9zmYSqaF1YjbneW4t2o1BW6gysFY=; Message-ID: <219892.63404.qm@web113614.mail.gq1.yahoo.com> X-YMail-OSG: gkL7mDMVM1khyG7fVjMmsts2CSpqoP8xq2wEs7_Jm6D3X.9 E6E8wZ8lfsxtnDSj1oZVEPHMNSC5ydaXbkIGlzVzQPDmrFtPdaZQw7YDpBtg W7hllklp_Z.zB1ieUuR8whOlnRwrEh0eHUs2HaKNRpciTD9KzsSZLIFOsRNy 3WJNL.utiTPed0jrxDp6chGw8ZwfapbOPPgueYfwV0t_HTO8eHdgEOAF9.NW vJRAhRCSWFscFcY4qEdNNJ9yM1oo4r7f1Pitj8tByNz15KVLCcrfjCO9cjtT UVXDKvgQn5l.ZYI7834LXbim_EBsna6bzLPpHgggGFRxdaDUW1i0DI8QP8.D Nu.kwUTkQA_676z20PFIYKc6aYGFMmnOUAgHH3tUcCa1xi2BzWo0Eq6KhW1X jtcqiSlCRqjS1 Received: from [204.228.207.218] by web113614.mail.gq1.yahoo.com via HTTP; Sat, 12 Feb 2011 14:23:36 PST X-Mailer: YahooMailRC/555 YahooMailWebService/0.8.108.291010 References: <821350.70020.qm@web113603.mail.gq1.yahoo.com> <4D56CEEA.5090802@apache.org> <572496.5606.qm@web113607.mail.gq1.yahoo.com> <4D56D549.7010009@apache.org> Date: Sat, 12 Feb 2011 14:23:36 -0800 (PST) From: Tony Anecito Subject: Re: Performance Tuning Tomcat 7... To: Tomcat Users List Cc: users@jersey.java.net In-Reply-To: <4D56D549.7010009@apache.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1653298839-1297549416=:63404" --0-1653298839-1297549416=:63404 Content-Type: text/plain; charset=us-ascii Yep visualvm showed me where the issue is. It is in the jersey servlet it makes so many calls it all adds up. And that is before it calls my class which only takes 5-6 microseconds to execute. I am not sure what I can do about this unless there is some advice from the Jersey team about how to short-circuit some of these calls. I attached the screenshot of visualvm showing what I mean. Thanks, -Tony ----- Original Message ---- From: Mark Thomas To: Tomcat Users List Sent: Sat, February 12, 2011 11:45:29 AM Subject: Re: Performance Tuning Tomcat 7... On 12/02/2011 18:27, Tony Anecito wrote: > Right now for most of my transactions I get less than 5 microseconds and around > > 1.2msec is spent on getting to and out of Tomcat and out of to/out of the >client > > call. > > So people were saying look at better parsers or replacing whatever does the > parsing. > > I am measuring round trip time at the client (before and after the jersey call) > > and getting to 1.47msec. At Tomcat it is less than 5microseconds at the > beginning of the method the GET goes to the end of the method so the code is > very fast. > > So I am thinking whatever parses the cmd and puts together the html response > after the end of the method is where I should focus. Testing Tomcat on localhost with a simple servlet using my 3 year old laptop I can process around 20,000 requests a second on a single connection which is around 50 microseconds per request. That includes server and client processing. Looking at all these numbers suggests that there is a lot of additional overhead somewhere in your system. Based on past experience, guessing where that overhead might be is a waste of time. You need to use a profiler to track it down. I usually use Yourkit since they give free copies to the Tomcat committers for use with Tomcat development. Other profilers are available. Pick the one that works best for you. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html --0-1653298839-1297549416=:63404 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --0-1653298839-1297549416=:63404--