Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 37808 invoked from network); 13 Jan 2010 06:57:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 06:57:30 -0000 Received: (qmail 96139 invoked by uid 500); 13 Jan 2010 06:57:29 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 96058 invoked by uid 500); 13 Jan 2010 06:57:29 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 96047 invoked by uid 99); 13 Jan 2010 06:57:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 06:57:29 +0000 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 (athena.apache.org: domain of jak-tomcat-dev@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 06:57:21 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NUxA2-00018Q-1W for dev@tomcat.apache.org; Wed, 13 Jan 2010 07:56:58 +0100 Received: from pool-173-51-150-33.lsanca.dsl-w.verizon.net ([173.51.150.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jan 2010 07:56:58 +0100 Received: from billwbarker by pool-173-51-150-33.lsanca.dsl-w.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jan 2010 07:56:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@tomcat.apache.org From: "Bill Barker" Subject: Re: modify the source code to measure the time of processing a request Date: Tue, 12 Jan 2010 22:56:43 -0800 Lines: 26 Message-ID: References: <930702.47873.qm@web92411.mail.cnh.yahoo.com> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-51-150-33.lsanca.dsl-w.verizon.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-RFC2646: Format=Flowed; Original Sender: news This type of request belongs on the user mailing list, so please direct any follow up there. What you want can be done with a simple ServletRequestListener. There is no need to hack the Tomcat code. "Bao" wrote in message news:930702.47873.qm@web92411.mail.cnh.yahoo.com... Hi, Our company is using the apache tomcat 6.0.20 as our server. And now I plan to measure the time of every requet processed in the server without the help of any benchmark tool. I plan to modify the code to add a time stamp in a request when it comes into the server and add another time stamp when it go out of server. So with a simple subtraction I can get the time I need. However,I am not familiar with the archive of the source code.So anyone could give me some suggestion of doing this?Like where should I modify in the source code. Thanks! ___________________________________________________________ ����ؿ����㷢������ؿ�ȫ�����ߣ� http://card.mail.cn.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org