TRAFFIC_TOP(1)
๐ TRAFFIC_TOP(1) โ Apache Traffic Server ๐
okay so bestie, this is the manual for traffic_top, and it's literally here to make your Traffic Server stats look cute in the terminal. no cap. ๐
โจ NAME โจ
traffic_top โ Display Traffic Server statistics. it's giving "top but for ATS", fr fr. ๐ซถ
๐ DESCRIPTION ๐
The traffic_top program provides a simple CLI view of your Traffic Server statistics, reminiscent of programs like top(1) and nmon(1) for system processes and statistics. lowkey iconic. โจ
๐ OPTIONS ๐
-s COUNTโ Number of seconds in between each polling of the Traffic Server statistics API. The default is 5 seconds. โฑ๏ธURL|hostname|hostname:portโ Location at which the JSON output of Traffic Server statistics are accessible. ๐
๐ธ REQUIREMENTS ๐ธ
The traffic_top program requires that your Traffic Server nodes are running the Stats Over HTTP plugin and that the machine from which you run traffic_top is able to access the HTTP(S) end point for the plugin.
If, for example, you have the following entry in your plugin.config to enable the plugin:
stats_over_http.so statistics
And your Traffic Server node is accessible using the hostname ats.example.tld (listening on port 80), then you would run traffic_top as follows:
traffic_top http://ats.example.tld/statistics
The hostname, port, and path to the Stats Over HTTP plugin JSON output should be adjusted as necessary to match your environment.
IMPORTANT: The statistics provided by Traffic Server (through traffic_ctl and Stats Over HTTP Plugin) expose quite a bit about the inner workings of your Traffic Server cache. While consumers of the JSON statistics endpoint won't be able to see or modify the raw contents of your cache, it is still very strongly advised to limit access to this URL. ๐
๐ฆ INTERFACE ๐ฆ
Upon startup (and successful connection to the Stats Over HTTP Plugin endpoint), you will be presented with a curses interface that looks like:
[image: Main interface for the traffic_top command line program.]
[image] Main interface for the traffic_top command line program..UNINDENT
Each area of the main interface is explained in the following sections.
๐ Cache Information ๐
๐พ Disk Used
The amount of disk space currently in use by the Traffic Server cache. This number will never exceed Disk Total. bestie, it's capped. no cap. ๐
Statistic: proxy.process.cache.bytes_used.
๐พ Disk Total
Total disk space allocated for Traffic Server cache. the whole bag. ๐
Statistic: proxy.process.cache.bytes_total.
๐ง Ram Used
Current amount of RAM Cache occupied by objects. Objects located and served from the Traffic Server RAM Cache avoid the much slower disk I/O necessary to serve from spinning rust. slay, no disk trauma. โจ
Statistic: proxy.process.cache.ram_cache.bytes_used
๐ง Ram Total
Total space allocated for used by the Traffic Server RAM Cache. yes, "for used by" is literally in the original, iykyk. ๐ซถ
Statistic: proxy.process.cache.ram_cache.total_bytes
๐ Lookups
Total cache object lookups performed, including disk and RAM caches. the search party. ๐
Statistic: proxy.process.http.cache_lookups
โ๏ธ Writes
Total number of object writes to the Traffic Server cache. putting things in the vault. ๐
Statistic: proxy.process.http.cache_writes.
๐ Updates
Total number of existing cache objects which have been updated with new content from the origin server (i.e. existing cache object was stale, so Traffic Server revalidated against the origin and received a new object). glow-up for cache objects. โจ
Statistic: proxy.process.http.cache_updates.
๐๏ธ Deletes
Total number of Traffic Server cache objects which have been deleted (generally through a PURGE request). bye bye. ๐
Statistic: proxy.process.http.cache_deletes.
๐ Read Active
Current number of active cache reads. reading era. ๐
Statistic: proxy.process.cache.read.active.
โ๏ธ Writes Act
Current number of active cache writes. writing era. โ๏ธ
Statistic: proxy.process.cache.write.active.
๐ Update Act
Current number of active cache updates. updating era. ๐
Statistic: proxy.process.cache.update.active.
๐ Entries
The current number of cache directory entries in use. the roster. ๐
Statistic: proxy.process.cache.direntries.used.
๐ Avg Size
The average size of current in the cache directory. This is calculated by dividing Entries into Disk Used. math but make it cache. ๐งฎ
Statistics: proxy.process.cache.bytes_used, proxy.process.cache.direntries.used.
๐ DNS Lookup
Total number of DNS lookups performed by Traffic Server, regardless of whether they were full DNS queries or were satisfied by entries in the HostDB cache. If you are not operating a forward proxy and if none of your origin servers are mapped by hostnames, then it is normal for your HostDB cache to be empty. no cap, empty is fine. ๐ซถ
Statistic: proxy.process.hostdb.total_lookups.
๐ฏ DNS Hits
Total number of DNS lookups which were successfully served from the HostDB cache. hit different. ๐
Statistic: proxy.process.hostdb.total_hits.
๐ฐ๏ธ DNS Serve Stale
Total number of DNS lookups which were successfully served from the HostDB cache while the HostDB cache entry was stale. See proxy.config.hostdb.serve_stale_for for how this feature is configured. serving stale but make it intentional. โจ
Statistic: proxy.process.hostdb.total_serve_stale.
๐ง Ram Hit
The percentage of cache lookups which were served successfully from the RAM Cache (thus avoiding slower I/O from the disk cache, or even slower network I/O to the origin server). This is calculated as a ratio from the two RAM Cache statistics for hits and misses. fast girl energy. โก
Statistics: proxy.process.cache.ram_cache.hits, proxy.process.cache.ram_cache.misses.
๐ Fresh
The percentage of cache lookups which located a fresh cache object (i.e. an object not in need of any revalidation). These transactions are served directly from the cache to the client without any need to contact origin servers or spend time updating the cache. An effective Traffic Server cache will have a very high Fresh percentage, as these are the fastest responses to clients. periodt. ๐
Statistic: proxy.process.http.transaction_counts.hit_fresh.
๐ Revalidate
The percentage of cache lookups which located a stale cache object, but for which the origin server did not return new data when Traffic Server revalidated the object. Revalidated objects don't incur cache update performance hits, but they do still lead to (what ends up being unnecessary) network traffic with origin servers.
A high percentage of revalidated cache lookups may indicate that Traffic Server is being too aggressive with its object staleness heuristics. lowkey shady. ๐ญ
Statistic: proxy.process.http.transaction_counts.hit_revalidated.
๐ฅถ Cold
The percentage of cache lookups which located an expired cache object. These were requests which located a matching object in the cache, but it had already been expired fully and a new copy was retrieved from the origin server. Unfortunately, the new copy from the origin server ended up being the unchanged from what had been marked expired in the cache.
A high percentage of cold misses indicates that your origin servers are setting expirations on their responses which are too short, as compared to the actual lifetime of the content in those responses. not the vibe. ๐
Statistic: proxy.process.http.transaction_counts.miss_cold.
๐ฆ Changed
The percentage of cache lookups which located an expired cache object and which resulted in new data being retrieved from the origin server. glow-up via origin. โจ
Statistic: proxy.process.http.transaction_counts.miss_changed.
๐ซ Not Cache
The percentage of requests for which the requested object was marked not cacheable by the origin server. A high percentage of uncacheable objects may indicate that either your origin servers simply contain a large amount of dynamic, uncacheable data, or that they are not properly setting cache control headers in their responses. no cache for you. ๐
Statistic: proxy.process.http.transaction_counts.miss_not_cacheable.
๐ No Cache
The percentage of requests for which the client indicated that the cache should not be used (e.g. a Cache-Control: no-cache request header was present).
A high percentage of these requests may indicate possible client-side abuse of your proxy, in which a disproportionate number of client connections are attempting to force their way past your Traffic Server cache. not the main character energy we want. ๐
Statistic: proxy.process.http.transaction_counts.miss_client_no_cache.
โฑ๏ธ Fresh (ms)
The average amount of time per lookup (in milliseconds) spent serving requests which were served by fresh cache lookups. Note that the underlying statistic is the total amount of time Traffic Server has spent serving these requests since startup, whereas traffic_top is displaying the number averaged by the total Fresh requests. speed demon. โก
Statistic: proxy.process.http.transaction_totaltime.hit_fresh.
โฑ๏ธ Reval (ms)
The average amount of time per lookup (in milliseconds) spent serving requests which involved revalidating a stale object for which the origin server did not return new data. Note that the underlying statistic is the total amount of time Traffic Server has spent serving these requests since startup, whereas traffic_top is displaying the number averaged by the total Revalidate requests. reval but make it timed. โณ
Statistic: proxy.process.http.transaction_totaltime.hit_revalidated.
โฑ๏ธ Cold (ms)
The average amount of time per lookup (in milliseconds) spent serving requests which involved expired cache objects. Note that the underlying statistic is the total amount of time Traffic Server has spent serving these requests since startup, whereas traffic_top is displaying the number averaged by the total Cold requests. cold but timed. ๐ฅถ
Statistic: proxy.process.http.transaction_totaltime.miss_cold.
โฑ๏ธ Chang (ms)
The average amount of time per lookup (in milliseconds) spent serving requests which were served by Traffic Server with new data obtained from an origin server. Note that the underlying statistic is the total amount of time Traffic Server has spent serving these requests since startup, whereas traffic_top is displaying the number averaged by the total Changed requests. chang but timed. ๐
Statistic: proxy.process.http.transaction_totaltime.miss_changed.
โฑ๏ธ Not (ms)
The average amount of time per lookup (in milliseconds) spent serving requests which were served from the origin server because it had marked the object as uncacheable. Note that the underlying statistic is the total amount of time Traffic Server has spent serving these requests since startup, whereas traffic_top is displaying the number averaged by the total Not Cache requests. not cache but timed. ๐ซ
Statistic: proxy.process.http.transaction_totaltime.miss_not_cacheable.
โฑ๏ธ No (ms)
The average amount of time per lookup (in milliseconds) spent serving requests which were served by the origin server because the client had requested that the Traffic Server cache be bypassed. Note that the underlying statistic is the total amount of time Traffic Server has spent serving these requests since startup, whereas traffic_top is displaying the number averaged by the total No Cache requests. no cache but timed. ๐
Statistic: proxy.process.http.transaction_totaltime.miss_client_no_cache.
๐ฏ DNS Hit
The percentage of DNS lookups which were served from the HostDB cache, rather than requiring full DNS queries. hit different, DNS edition. ๐
Statistics: proxy.process.hostdb.total_hits, proxy.process.hostdb.total_lookups.
๐ฆ DNS Entry ๐ฆ
okay so this is the total number of entries in the HostDB lookup cache. and listen โ if you are not operating a forward proxy, and none of your origin servers are mapped by hostnames, then it is totally normal for your HostDB cache to be empty. like, empty is the vibe. don't come for me. ๐
Statistic: proxy.process.hostdb.cache.current_items
๐ Client Request & Response ๐
๐ฅ GET, HEAD, POST
each one of these bad boys shows the percentage of total requests by clients to Traffic Server that used that specific HTTP method. so like, how much of your traffic is GET-ing vs HEAD-ing vs POST-ing. slay. โจ
Statistics: proxy.process.http.get_requests, proxy.process.http.head_requests, proxy.process.http.post_requests
๐ 2xx
the percentage of all requests made to Traffic Server that ended up sending back an HTTP response code somewhere between 200 and 299 (inclusive) to the client. and 2xx codes are all giving successful transaction with content delivered โ everything worked, content went out, we love to see it. ๐
Statistic: proxy.process.http.2xx_responses
๐ 3xx
the percentage of all requests made to Traffic Server that ended up sending back an HTTP response code between 300 and 399 (inclusive) to the client. 3xx codes are non-error conditions, bestie โ most commonly redirects, or IMS not-modified responses that didn't deliver content (because they literally did not need to).
Statistic: proxy.process.http.3xx_responses
๐ญ 4xx
the percentage of all requests made to Traffic Server that ended up sending back an HTTP response code between 400 and 499 (inclusive) to the client. 4xx codes are for requests that included a client-side error. most frequently these responses are for invalid URLs (e.g. 404 Not Found), but they also cover authentication failures (e.g. 403 Forbidden). in short: Traffic Server refused to fulfill the request because the client sent invalid or incorrect information. not us, it's giving client problem energy. ๐
Statistic: proxy.process.http.4xx_responses
๐ฅ 5xx
the percentage of all requests made to Traffic Server that ended up sending back an HTTP response code between 500 and 599 (inclusive) to the client. 5xx codes indicate a server-side error. for a caching proxy like Traffic Server, these are likely to be most often returned for gateway errors; e.g. 502 Bad Gateway (the origin server address was invalid, or a connection could not be established at all due to system or network failures) and 504 Gateway Timeout (the origin server was contacted, but did not return data in the time allowed). tragic fr fr. ๐
Statistic: proxy.process.http.5xx_responses
๐ Conn Fail
the total number of connections to Traffic Server which failed to connect properly. that's it, that's the stat.
Statistic: proxy.process.http.transaction_counts.errors.connect_failed
๐ซ Other Err
the total number of Traffic Server transactions which experienced an error that isn't covered by Conn Fail and Abort. the leftovers, the misc, the "we don't have a bucket for this" of it all.
Statistic: proxy.process.http.transaction_counts.errors.other
โ๏ธ Abort
the total number of Traffic Server transactions which were prematurely ended (connection was closed before all data had been received and/or sent). it's giving ghosted mid-conversation. ๐ญ
Statistic: proxy.process.http.transaction_counts.errors.aborts
๐ 200, 206, 301, 302, 304, 404, 502
the percentage of total Traffic Server transactions which resulted in the specified HTTP response code. for the details on what each individual status code means, please refer to HTTP Status Codes.
Statistics: proxy.process.http.200_responses, proxy.process.http.206_responses, proxy.process.http.301_responses, proxy.process.http.302_responses, proxy.process.http.304_responses, proxy.process.http.404_responses, proxy.process.http.502_responses
NOTE: Traffic Server also provides statistics for every other response code. the keen observer will have hopefully already recognized the pattern in the statistic names. iykyk. ๐ง
๐ฆ 100 B, 1 KB, 3 KB, 5 KB, 10 KB, 1 MB, > 1 MB
each of these fields indicates the percentage of responses from Traffic Server which fell within a particular size (document body size, excluding response headers). the individual fields are the upper bounds of exclusive buckets โ meaning that a response with a document body of 4,500 bytes will be counted in the 5 KB field, but not in any of the smaller sizes. so read the buckets carefully, bestie, no cap.
Statistics: proxy.process.http.response_document_size_100, proxy.process.http.response_document_size_1K, proxy.process.http.response_document_size_3K, proxy.process.http.response_document_size_5K, proxy.process.http.response_document_size_10K, proxy.process.http.response_document_size_1M, proxy.process.http.response_document_size_inf
๐ซถ Client ๐ซถ
๐จ Requests
the total number of client requests serviced by Traffic Server. this includes both successful content-bearing responses as well as errors, redirects, and not-modified IMS responses. additionally, this number includes requests which were serviced from the Traffic Server cache as well as through proxied origin connections. everyone's invited to this party. ๐
Statistic: proxy.process.http.incoming_requests
๐ Req/Conn
the average number of requests made per client connection. when Keep-Alive support is enabled in Traffic Server and clients actually make use of it, they are able to submit multiple document requests over a single connection in some situations. this number is calculated from the total number of client requests divided by the total number of new connections that have been created. math! โจ
Statistics: proxy.process.http.incoming_requests, proxy.process.http.total_client_connections
๐ฑ New Conn
the total number of new HTTP connections from clients which have been created over the lifetime of the Traffic Server process.
Statistic: proxy.process.http.total_client_connections
๐ Curr Conn
the number of currently-open HTTP connections from clients with Traffic Server. like, right now, at this very moment.
Statistic: proxy.process.http.current_client_connections
โก Active Con
the number of currently active client connection threads (requests in the process of being fulfilled when the statistics snapshot was taken). main character energy, actively being served. ๐
Statistic: proxy.process.http.current_active_client_connections
๐ฎ Dynamic KA
ngl the page just hands you the stats here, no extra lore. here they are:
Statistics: proxy.process.net.dynamic_keep_alive_timeout_in_total, proxy.process.net.dynamic_keep_alive_timeout_in_count
๐ Head Bytes
the total bytes consumed by outgoing server response headers from Traffic Server to clients.
Statistic: proxy.process.http.user_agent_response_header_total_size
๐ Body Bytes
the total bytes consumed by outgoing document bodies in responses from Traffic Server to clients.
Statistic: proxy.process.http.user_agent_response_document_total_size
๐ Avg Size
the average size in bytes of the combined headers and document bodies for Traffic Server responses to clients.
Statistics: proxy.process.http.user_agent_response_header_total_size, proxy.process.http.user_agent_response_document_total_size, proxy.process.http.incoming_requests
๐ฐ๏ธ Net (bits)
the summed bits (not bytes!!) of all Traffic Server responses to clients, whether served from the Traffic Server or through a proxied connection to an origin server.
Statistics: proxy.process.http.user_agent_response_header_total_size, proxy.process.http.user_agent_response_document_total_size
โฑ๏ธ Resp (ms)
the average response time by Traffic Server across all client requests. response time is measured from the moment a client connection is established, until the moment the last byte of the response is delivered. this field is simply the result of dividing the total time spent by Traffic Server servicing client requests by the total number of those requests.
Statistics: proxy.process.http.total_transactions_time, proxy.process.http.incoming_requests
๐ฐ Origin Server ๐ฐ
๐ฌ Requests
the total number of requests made by Traffic Server to origin servers, because client requests could not be fulfilled by the Traffic Server cache (for any reason โ whether it wasn't present in the cache, was stale or expired, or just wasn't cacheable). go ask the origin, we guess. ๐
Statistic: proxy.process.http.outgoing_requests
๐ Req/Conn
the average number of requests made to origin servers by Traffic Server per connection. this field is simply the result of dividing the total number of requests made by the total number of connections that have ever been opened.
Statistics: proxy.process.http.outgoing_requests, proxy.process.http.total_server_connections
๐ฑ New Conn
the total number of new HTTP connections from Traffic Server to origin servers that have been created during the lifetime of the Traffic Server process.
Statistic: proxy.process.http.total_server_connections
๐ Curr Conn
the number of HTTP connections currently open from Traffic Server to origin servers. quick heads up though: Traffic Server maintains a configurable number of origin server connections open at all times, whether there are requests being proxied or not, when it's configured as a reverse proxy to a known list of origin servers. this is not the case for forward proxy configurations, however, since Traffic Server has no foreknowledge of the servers to which clients may try to connect. it literally cannot pre-open connections to servers it doesn't know about, bestie. ๐
Statistic: proxy.process.http.current_server_connections
๐ Head Bytes
the total bytes delivered as headers in responses from origin servers to Traffic Server.
Statistic: proxy.process.http.origin_server_response_header_total_size
๐ Body Bytes
the total bytes delivered as document bodies in responses from origin servers to Traffic Server.
Statistic: proxy.process.http.origin_server_response_document_total_size
๐ Avg Size
the average size of the combined header and document body responses from origin servers to Traffic Server.
Statistics: proxy.process.http.origin_server_response_header_total_size, proxy.process.http.origin_server_response_document_total_size, proxy.process.http.outgoing_requests
๐ฐ๏ธ Net (bits)
the total bits (not bytes) transferred from origin servers to Traffic Server for proxied requests that were not fulfilled by the Traffic Server cache.
Statistics: proxy.process.http.origin_server_response_header_total_size, proxy.process.http.origin_server_response_document_total_size
๐ COPYRIGHT ๐
2026, dev@trafficserver.apache.org
and that's the whole page, bestie!! ๐ this was version 9.2 of TRAFFIC_TOP(1), dated Feb 12, 2026 โ you've officially read the entire thing, no skimming, no scrolling past the boring bits. we ate. periodt. ๐
โจ๐ฆ
๐ฆ where this page comes from
- ubuntu noble: trafficserver 9.2.3+ds-1+deb12u1ubuntu0.1 ยท Apache-2.0
- ubuntu questing: trafficserver 9.2.5+ds-1ubuntu2.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms