guriandoro
b775701551
Merge branch '3.0' into pt-stalk-collect-prepared-statements-LP1642750
...
Conflicts:
bin/pt-stalk
lib/bash/collect.sh
2017-06-10 11:45:33 -04:00
guriandoro
437d28837b
Changes for LP1510809. ps -eaF is captured now.
...
Modified f argument, for F. From man pages:
" -F Extra full format. See the -f option, which -F implies."
The following columns have been added to the output, due to this
change:
SZ size in physical pages of the core image of the process.
This includes text, data, and stack space. Device mappings
are currently excluded; this is subject to change.
RSS resident set size, the non-swapped physical memory that a
task has used (inkiloBytes).
PSR processor that process is currently assigned to.
2017-04-11 19:15:14 -04:00
Carlos Salguero
fac4be64b4
Merge branch '3.0' into issue-1642754
2017-03-28 14:08:51 -03:00
Carlos Salguero
1926bd60b4
PT-111 Collect MySQL variables
2017-03-28 14:03:40 -03:00
Carlos Salguero
be971eeee5
PT-80 Collect replication slave information
2017-03-27 17:30:06 -03:00
Carlos Salguero
ad73055a5b
Changed how we invoke MySQL from pt-stalk
2017-03-22 19:38:09 -03:00
guriandoro
0e5a08342d
Merge branch '3.0' into pt-stalk-collect-prepared-statements-LP1642750
2017-03-22 16:34:34 -04:00
Carlos Salguero
759ee9196e
Updated collect.sh because of a syntax error
2017-03-22 17:32:14 -03:00
guriandoro
32745039b5
Merge branch '3.0' into pt-stalk-collect-prepared-statements-LP1642750
2017-03-22 16:19:19 -04:00
Carlos Salguero
a117e63e89
Added MySQL version check to stalk ps queries
2017-03-22 12:38:11 -03:00
guriandoro
e8ad42955d
PT-90 Adding collect for LP:1642750
...
pt-stalk will now also collect from P_S.prepared_statements_instances
2017-03-22 10:53:34 -04:00
Carlos Salguero
91ec593da5
Merge pull request #174 from percona/PT-89
...
PT-89 Now top runs using -bn${OPT_RUN_TIME}
2017-03-21 19:25:30 +02:00
Carlos Salguero
4a056cf3b0
PT-81 Collect information about locks and transactions using P_S
2017-03-21 13:45:59 -03:00
Carlos Salguero
076864c79e
PT-89 Now top runs using -bn${OPT_RUN_TIME}
2017-03-01 13:30:09 -03:00
Carlos Salguero
90e1e9cf1e
PT-81 Moved functions to the collect module
2017-02-25 10:41:07 -03:00
frank-cizmich
c3f4705b67
pt-stalk sort transactions - lp1537416
2016-06-09 14:31:19 -03:00
frank-cizmich
377b50144b
new var binlog_error_action caused bug in collect module
2016-02-11 17:44:20 -03:00
Frank Cizmich
1e2e7b5a18
pt-stalk now collects 1 minute of dmesg output preceding trigger event - 1349086
2014-10-22 16:16:13 -02:00
Daniel Nichter
69586fdf50
Revert r587: *do* sync on clock ticks. Fix pt-stalk.t (127.1 no longer works?). Enhance --sleep-collect docs.
2013-12-13 20:19:51 -08:00
Daniel Nichter
5035de3fbb
Calc cnt for iostat, vmstat, mpstat, and mysqladmin -c as --run-time/--sleep-collect.
2013-07-24 13:29:23 -07:00
Daniel Nichter
47ef093a58
Calc collect loop run time based on start ts - curr ts so arbitrary --sleep-collect work. Do not sync on clock ticks.
2013-07-24 12:49:28 -07:00
Daniel Nichter
86a949253d
Allow string interpol in collect sleep calc so --sleep-collect works.
2013-07-24 12:08:01 -07:00
Daniel Nichter
50301e51d5
Add --sleep-collect, default 1.
2013-07-24 11:53:08 -07:00
Daniel Nichter
5a5fe75130
Merge pt-stalk-1019648.
2013-03-12 15:23:02 -06:00
Daniel Nichter
7f728acddd
Move code to get InnoDB status into its own sub.
2013-03-12 15:08:25 -06:00
Daniel Nichter
f7f63555ee
Add lib/bash/subshell.sh and use in pt-stalk to fix/improve subprocess waiting.
2013-03-04 17:47:02 -07:00
Fernando Ipar
177c2aaef7
Changed collect so that innodb status is read from tmp file if the original output is truncated
2013-03-04 17:40:41 -02:00
Brian Fraser fraserb@gmail.com
22ec559b38
Fix for 986847: Allow setting which commands (and extra options) pt-stalk uses through env vars
2012-11-12 11:26:01 -03:00
Daniel Nichter
d04529a64b
Wait --run-time more for collector procs to finish, then kill them, then remove empty files.
2012-10-13 12:21:52 -06:00
Daniel Nichter
e1bd108aa4
Collect INNODB_TRX, INNODB_LOCKS, and INNODB_LOCK_WAITS. Fix update-module so it works again with Bash tools.
2012-08-30 15:40:09 -06:00
Daniel Nichter
b5ba79bb6d
Collect df -k instead of df -h. Set log_error with abs path to fix failing t/lib/bash/collect.t test.
2012-08-14 09:11:41 -06:00
Daniel Nichter
94d9483d03
Make vmstat, iostat, and mpstat run for --run-time not --interval.
2012-03-30 11:35:32 -06:00
Daniel Nichter
0ac6c35211
Fix _pidof() calls in collect.sh. Update Bash libs in pt-ioprofile.
2012-02-03 10:49:27 -07:00
Daniel Nichter
7be99c5140
Add _which() to alt_cmds.sh and update pt-stalk.
2012-02-02 12:04:28 -07:00
Daniel Nichter
c40e5db1bf
Fix lib tests for MySQL 5.0.
2012-02-02 10:56:55 -07:00
Daniel Nichter
d1a684b55b
Use _pidof() and _lsof() from Percona Monitoring Plugins. Use "" and "yes" exclusively in collect(). Don't exec cmds that need mysqld_pid unless mysqld_pid is defined. Use log() instead of echo.
2012-01-30 08:59:19 -07:00
Daniel Nichter
e954505dd2
Don't print errors in data files; let the general -output file catch them. Print TS lines before data. Try to find sysctl manually. Add _pidof() to alt_cmds.sh.
2012-01-27 17:37:59 -07:00
Daniel Nichter
05ac0be136
Change --disk-byte-limit to --disk-bytes-free and --disk-pct-limit to --disk-pct-free.
2012-01-26 12:45:44 -07:00
Daniel Nichter
c2fd3f54c2
Use "yes" for true, "" for false. Use $PO_DIR instead of $TMP_DIR/po. Add and test Baron's code for 'Options and values after processing arguments'. Make --help exit 0 unless there were errors.
2012-01-24 12:49:18 -07:00
Daniel Nichter
2412e01aa0
Use which to get programs. Don't create file unless the program or file exists.
2012-01-19 10:46:48 -07:00
Daniel Nichter
cfce6e6eb2
More quoting and tweaking re Baron's review.
2012-01-13 10:02:17 -07:00
Daniel Nichter
90fbfaf41f
Don't quote $EXT_ARGV so multiple opts work.
2011-12-08 14:25:35 -07:00
Daniel Nichter
36e88c8e40
Fix typo.
2011-12-08 13:49:44 -07:00
Daniel Nichter
9ec71db008
Collect INFORMATION_SCHEMA.INNODB_LOCK_WAITS data.
2011-12-08 13:33:50 -07:00
Daniel Nichter
1c495936c8
Get Open_tables if <= 1000.
2011-12-08 12:05:20 -07:00
Daniel Nichter
0cfef9134c
Collect proclist in loop.
2011-12-08 11:45:16 -07:00
Daniel Nichter
f624220b40
Fix typo.
2011-12-06 13:36:45 -07:00
Daniel Nichter
f6306c9ec0
Test collect.sh. Use --run-time instead of --interval for collect loop. Fix and require per-test test names in util/test-bash-functions. Fix OPT_ERR in parse_options.sh.
2011-12-06 13:23:47 -07:00
Daniel Nichter
c804079c0d
Add Bash libs collect.sh (pt-collect internals), safeguards.sh, and alt_cmds.sh.
2011-12-05 13:48:54 -07:00