Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 58640 invoked from network); 30 Jan 2006 23:53:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jan 2006 23:53:29 -0000 Received: (qmail 54586 invoked by uid 500); 30 Jan 2006 23:53:15 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 54571 invoked by uid 500); 30 Jan 2006 23:53:15 -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 54554 invoked by uid 99); 30 Jan 2006 23:53:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2006 15:53:14 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.17.130.186] (HELO mail.mhsoftware.com) (216.17.130.186) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2006 15:53:13 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.mhsoftware.com (Postfix) with ESMTP id 94F8671995 for ; Mon, 30 Jan 2006 16:52:52 -0700 (MST) Received: from mail.mhsoftware.com ([127.0.0.1]) by localhost (hagrid [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12835-09 for ; Mon, 30 Jan 2006 16:52:52 -0700 (MST) Received: from emp00 (c-24-8-34-101.hsd1.co.comcast.net [24.8.34.101]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.mhsoftware.com (Postfix) with ESMTP id EBBA87197E for ; Mon, 30 Jan 2006 16:52:51 -0700 (MST) From: "George Sexton" To: "'Tomcat Users List'" Subject: RE: Tuning Tomcat , i need some advice Date: Mon, 30 Jan 2006 16:52:51 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <43DEA09B.7090302@gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcYl9LGw1mG2L8NjRuyfzVwMRHpaJAAA0gOA Message-Id: <20060130235251.EBBA87197E@mail.mhsoftware.com> X-Virus-Scanned: amavisd-new at mhsoftware.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm not familiar with Derby, so I'm not going to be able to offer any advice. The biggest killer will just be the number of db interactions. If you can create a view, or a stored procedure so that you're only doing one db interaction per page, then you'll see a huge difference. For example, if you have some complex code that queries different tables, and does a lot of processing to determine results, then a stored procedure will save a lot of time and effort. Other than that, my advice would be to benchmark the different queries ( using something like Jmeter) and fix what seems the slowest. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -----Original Message----- > From: Legolas Woodland [mailto:legolas.w@gmail.com] > Sent: Monday, January 30, 2006 4:26 PM > To: Tomcat Users List > Subject: Re: Tuning Tomcat , i need some advice > > Thank you for reply. > > George Sexton wrote: > > Database interaction is by far the major issue. In my > application, a page > > with no db interaction runs in something like 80ms, while a > page with DB > > interaction takes something like 350-400ms. There's no > silver bullet to > > tuning tomcat applications, and most of the advice you'll > get here won't > > make any difference (use this connector, instead of that). > So, my advice is: > > > Indeed some pages of my web application will cause more than > 4-5 select > statement over tables with more than 50,000 records. > will a dual processor server handle this loads ? I used derby > as database . > > 1) Using JDK 1.5. It can be up to 25% faster than 1.4 > > 2) Use the server JVM > > 3) Allocate sufficient memory > > 4) Start tuning your application. Look at query execution > times, and > > the number of DB Interactions per page. Reduce the number > of interactions by > > using Stored procedure, or views. > > > How i can tune the database code ? > i just once worked with db2 , it has some facilities that bring up a > plan (execution path and detailed information about each step) of > statement and allow user to tune the database operations base on its > step and time that each step consumed , now how i can find such > facilities for derby ? > > Thank you > > George Sexton > > MH Software, Inc. > > http://www.mhsoftware.com/ > > Voice: 303 438 9585 > > > > > > > >> -----Original Message----- > >> From: Legolas Woodland [mailto:legolas.w@gmail.com] > >> Sent: Monday, January 30, 2006 1:57 PM > >> To: Tomcat Users List > >> Subject: Tuning Tomcat , i need some advice > >> > >> Hi > >> Thank you for reading my post. > >> I have an application which will handle about 30 hit per > second with > >> Tomcat 5.5.* (* wil be one of 15 or 12) > >> Now i need some advice about tuning tomcat to perform the > best under > >> this condition > >> I read something so far , things like : > >> > >> use Java server mode > >> increase the heap > >> > >> Where i can find more reference and how to(s) or step by step > >> manual to > >> tune tomcat. > >> in condition that we have 30 hit/sec ,how much large > connection pool > >> should be ? > >> is there some refrences about tuning connection pool? > >> > >> Thank you > >> > >> > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > >> For additional commands, e-mail: users-help@tomcat.apache.org > >> > >> > >> > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org