lowercases / tcprstat Goto Github PK
View Code? Open in Web Editor NEWPassive TCP response time analysis tool
License: GNU General Public License v3.0
Passive TCP response time analysis tool
License: GNU General Public License v3.0
~ tcprstat ~ tcprstat is a pcap-based tool that extracts information about TCP response times. It works by sniffing for TCP "requests" (inbound packets) and measures the time that it takes for sending a "response" (next outbound packet). While this approach might seem too simple, it works for simple protocols that are based in such request/response system, like HTTP and the MySQL protocol. In the future, we may write more complex protocol decoding. tcprstat sniffs for a while, and then shows some stats about the sniffed packets, similar to the way top(1) works. tcprstat uses libpcap to capture TCP. Due to many distros not shipping libpcap >= 1.0.0, tcprstat ships libpcap 1.1.1 and uses it if it can't find a suitable version The build process delivers a static version, tcprstat-static, with no external linking (some castration is needed at libpcap) so it can be copied directly to a server with no need for compilation tools. tcprstat is released under the GPL, version 2 or 3. ################################################################################ # # # tcprstat -- Extract stats about TCP response times # # Copyright (C) 2010 Ignacio Nin # # # # This program is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation; either version 2 of the License, or # # (at your option) any later version. # # # # This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with this program; if not, write to the Free Software # # Foundation, Inc., # # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # # # ################################################################################
I want to see headers every once in a while. It also seems odd to me to have two separate options for headers. I would suggest to have a single option that specifies how many iterations should pass before headers reprint: 0 means they never reprint, 1 means they print only once, and means every N iterations. It should default to 1.
I just noticed that the headers say 90_avg, 90_max, etc. Unless that is a typo we should change it to 95th and 99th percentile... 90th percentile isn't really that meaningful.
I'm seeing spikes, like this:
[root@db1 percona]# rtime -p 3306 -t 1 -n 0 timestamp count sum max min avg med stddev 90_max 90_avg 90_std 99_max 99_avg 99_std 1275532020 1390 1001093 116098 6 720 60 4765 377 83 78 19496 338 1646 1275532021 1857 1093877 62758 1 589 63 3688 378 85 77 13154 263 1143 1275532022 1600 971538 18446744073709551615 1 607 66 3717 377 88 78 16207 322 1414 1275532023 1829 1047450 73746 6 572 65 3735 356 82 74 13291 256 1056 1275532024 1514 883978 79794 5 583 66 3951 322 84 73 13065 229 1050 1275532025 1680 615411 77581 0 366 65 2909 307 78 65 5452 127 289 1275532026 1741 751224 88968 2 431 65 3460 330 81 69 10474 151 492 1275532027 1900 1092936 87621 1 575 67 3714 347 86 75 13787 273 1141
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.