trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kopel, Yakov" <>
Subject RE: clear stats doesn't work
Date Thu, 20 Dec 2012 14:28:40 GMT
I craeted a new Jira with a Patch for this:

-----Original Message-----
From: Kopel, Yakov 
Sent: יום ד 19 דצמבר 2012 13:33
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/
  2. The macro HTTP_INCREMENT_DYN_STAT using the RecIncrRawStat func to increament the stat
  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 ???

Yakov Kopel.

 Protected by Websense Hosted Email Security -- 

View raw message