trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Peach <jamespe...@me.com>
Subject Re: clear stats doesn't work
Date Thu, 20 Dec 2012 17:03:57 GMT
On Dec 20, 2012, at 6:28 AM, "Kopel, Yakov" <ykopel@websense.com> wrote:

> I craeted a new Jira with a Patch for this:
> https://issues.apache.org/jira/browse/TS-1631

Great, thanks Yakov. I'll try to take a look and get this committed in the next few days.

> 
> 
> -----Original Message-----
> From: Kopel, Yakov 
> Sent: יום ד 19 דצמבר 2012 13:33
> To: dev@trafficserver.apache.org
> Subject: clear stats doesn't work
> 
> The problem:
>  Clear stats using traffic_line -c/-C doesn't realy work. After several seconds the old
value comes back.
> 
> The reason:
>  For example - http_total_client_connections_ipv4_stat
>  1. This stat is used in proxy/http/HttpClientSession.cc
>  2. The macro HTTP_INCREMENT_DYN_STAT using the RecIncrRawStat func to increament the
stat value.
>  3. The RecIncrRawStat increament the sum counter on the specific net thread.
>  4. RecRawStatSyncCount is called in a loop and summarize all the stats in the net thread
to one global value.
>  5. RecRegisterRawStatSyncCb is called to update the global value in the  records table.
> 
> When traffic_line -c/-C is called - it clear the records table but not the records table.
> In the next time the RecRawStatSyncCount func will be called it will override the "zero"
value in the records table.
> 
> Solution ???
> 
> 
> Regards,
> Yakov Kopel.
> 
> 
> 
> Protected by Websense Hosted Email Security -- www.websense.com 


Mime
View raw message