You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Bao <sy...@yahoo.cn> on 2010/01/13 07:37:53 UTC
modify the source code to measure the time of processing a request
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
Re: modify the source code to measure the time of processing a request
Posted by Bill Barker <bi...@verizon.net>.
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" <sy...@yahoo.cn> 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
Re: modify the source code to measure the time of processing a request
Posted by Bao <sy...@yahoo.cn>.
Thanks!
could you tell me under the what content?
--- 10年1月13日,周三, Pid <pi...@pidster.com> 写道:
> 发件人: Pid <pi...@pidster.com>
> 主题: Re: modify the source code to measure the time of processing a request
> 收件人: dev@tomcat.apache.org
> 日期: 2010年1月13日,周三,下午5:14
> On 13/01/2010 06:37, Bao wrote:
> > 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!
>
> Look at the code for the AccessLogValve. The SVN
> repository is listed
> on tomcat.apache.org.
>
>
> p
>
> >
> ___________________________________________________________
> >
> 好玩贺卡等你发,邮箱贺卡全新上线!
> > 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
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
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
Re: modify the source code to measure the time of processing a request
Posted by Pid <pi...@pidster.com>.
On 13/01/2010 06:37, Bao wrote:
> 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!
Look at the code for the AccessLogValve. The SVN repository is listed
on tomcat.apache.org.
p
> ___________________________________________________________
> 好玩贺卡等你发,邮箱贺卡全新上线!
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org