Read the comments to follow the new revisions additions (such as subquery cache, binary log cache, TokuDB stats, returned rows stats, threadpool usage stats and many small fixes/improvements).
—
I've made a patch for mysqlreport so it can report actual AriaDB page cache stats like the key buffer cache usage for MyISAM.
Patch is pretty trivial and based on how mysqlreport reports the MyISAM key cache informations.
I would strongly advise to verify if the returned values are correct and if possible, implement a better verification for the presence of AriaDB than checking the version string for "-MariaDB-".
Tested on MySQL 5.1 (no AriaDB infos shown) and on Maria 5.5.27 (shows informations without any error).
Here is an example of the produced output :
__ Aria Pagecache ______________________________________________________
Buffer used 124.95M of 128.00M %Used: 97.61
Current 128.00M %Usage: 100.00
Write hit 53.16%
Read hit 86.87%
ps: there is a warning when launching mysqlreport :
Use of uninitialized value in formline at mysqlreport line 1300
Its an upstream bug (same error encountered on Debian 6 with non MariaDB mysqlreport and MySQL 5.1) as mysqlreport reads "Innodb_buffer_pool_read_ahead_seq" value but it seems that this value has been replaced by "Innodb_buffer_pool_read_ahead" on MySQL/MariaDB for a long time, correcting this could also be a good idea.
Example of the output :
Flushes 49.65M 15.4/s
LRU 2.54M 0.8/s %Flush: 5.12
Jean Weisbuch
added a comment - Today's revision adds the XtraDB flushes LRU stats : https://github.com/jb-boin/mariadb/commit/a9922df1095d2b87d8541c1cce623df4b0f82656
Example of the output :
Flushes 49.65M 15.4/s
LRU 2.54M 0.8/s %Flush: 5.12
MariaDB detection has been cleaned : was just checking that the Aria engine was enabled, now verify that the version string has -MariaDB on it
Thread pool stats should now be shown on Percona Server as well
The uptime format was "DAYS H:M:S", now "DAYS+H:M:S" for a better readability
%Flush is now shown as %LRU to be consistent with the other stats output
Deletion of the temporary file is now done with the Perl "unlink" function instead of executing the system "rm" or "del" command
Jean Weisbuch
added a comment - New revision : https://github.com/jb-boin/mariadb/commit/7598e45acb42b89a9de29600f46066350cf5494d#diff-7552e4de9944e68ad76cc2faaba80034
MariaDB detection has been cleaned : was just checking that the Aria engine was enabled, now verify that the version string has -MariaDB on it
Thread pool stats should now be shown on Percona Server as well
The uptime format was "DAYS H:M:S", now "DAYS+H:M:S" for a better readability
%Flush is now shown as %LRU to be consistent with the other stats output
Deletion of the temporary file is now done with the Perl "unlink" function instead of executing the system "rm" or "del" command
TokuDB variables case changed from 5.5 to 10.0 (eg. Tokudb_CACHETABLE_SIZE_CURRENT => Tokudb_cachetable_size_current) : the $stats array indexes are now forced to have the first char uppercase and the rest lowercase to avoid issues when this kind of changes happens and to keep compat with both versions.
(upstream bug) Test to show is the slow query log is enabled was relying on the log_slow_queries deprecated variable that has been replaced by slow_query_log for versions >= 5.1.29 and removed on MariaDB 10.0.
Tested without any errors/warnings issued on MySQL 5.1.72, MariaDB 5.5.40 and MariaDB 10.0.14 with TokuDB and tested both with XtraDB and Innodb plugin.
Jean Weisbuch
added a comment - This new revision (3.5-maria15 : https://github.com/jb-boin/mariadb/commit/a612dac0f4e3c7db358db10f740ca0cfd3b5121f ) adds support for MariaDB 10.0 :
TokuDB variables case changed from 5.5 to 10.0 (eg. Tokudb_CACHETABLE_SIZE_CURRENT => Tokudb_cachetable_size_current) : the $stats array indexes are now forced to have the first char uppercase and the rest lowercase to avoid issues when this kind of changes happens and to keep compat with both versions.
(upstream bug) Test to show is the slow query log is enabled was relying on the log_slow_queries deprecated variable that has been replaced by slow_query_log for versions >= 5.1.29 and removed on MariaDB 10.0.
Tested without any errors/warnings issued on MySQL 5.1.72, MariaDB 5.5.40 and MariaDB 10.0.14 with TokuDB and tested both with XtraDB and Innodb plugin.
The query cache section is not shown anymore when have_query_cache=ON, query_cache_size>0 and query_cache_type=OFF.
Jean Weisbuch
added a comment - New revision (3.5-maria16 : https://github.com/jb-boin/mariadb/commit/bbd68f13b1cf90279e4713fc163bafc787df32ff ) :
The query cache section is not shown anymore when have_query_cache=ON , query_cache_size>0 and query_cache_type=OFF .
Compatibility with MySQL versions anterior to 5.0 has been restored : Checks relying on the information_schema are now skipped on versions older than 5.0.0.
Jean Weisbuch
added a comment - New revision (4.0 : https://github.com/jb-boin/mariadb/blob/0e765c8cdf70cbfc85fbe42c4c6a08f379b6a1a2/debian/additions/mysqlreport ) :
Compatibility with MySQL versions anterior to 5.0 has been restored : Checks relying on the information_schema are now skipped on versions older than 5.0.0.
People
Sergey Vojtovich
Jean Weisbuch
Votes:
0Vote for this issue
Watchers:
5Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":768,"ttfb":179.40000009536743,"pageVisibility":"visible","entityId":21316,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"66643b0e-da7c-4b95-bd11-ea0f90a4fb4c","navigationType":0,"readyForUser":832.1000001430511,"redirectCount":0,"resourceLoadedEnd":1011.4000000953674,"resourceLoadedStart":184.60000014305115,"resourceTiming":[{"duration":13.199999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":184.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":184.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":197.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":13.399999856948853,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":184.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":184.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":198.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":73.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":185.10000014305115,"connectEnd":185.10000014305115,"connectStart":185.10000014305115,"domainLookupEnd":185.10000014305115,"domainLookupStart":185.10000014305115,"fetchStart":185.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":185.10000014305115,"responseEnd":258.5,"responseStart":258.40000009536743,"secureConnectionStart":185.10000014305115},{"duration":184,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":185.29999995231628,"connectEnd":185.29999995231628,"connectStart":185.29999995231628,"domainLookupEnd":185.29999995231628,"domainLookupStart":185.29999995231628,"fetchStart":185.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":185.29999995231628,"responseEnd":369.2999999523163,"responseStart":369.2000000476837,"secureConnectionStart":185.29999995231628},{"duration":187.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":185.5,"connectEnd":185.5,"connectStart":185.5,"domainLookupEnd":185.5,"domainLookupStart":185.5,"fetchStart":185.5,"redirectEnd":0,"redirectStart":0,"requestStart":185.5,"responseEnd":373.10000014305115,"responseStart":373,"secureConnectionStart":185.5},{"duration":187.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":185.70000004768372,"connectEnd":185.70000004768372,"connectStart":185.70000004768372,"domainLookupEnd":185.70000004768372,"domainLookupStart":185.70000004768372,"fetchStart":185.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":185.70000004768372,"responseEnd":373.5,"responseStart":373.5,"secureConnectionStart":185.70000004768372},{"duration":187.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":185.90000009536743,"connectEnd":185.90000009536743,"connectStart":185.90000009536743,"domainLookupEnd":185.90000009536743,"domainLookupStart":185.90000009536743,"fetchStart":185.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":185.90000009536743,"responseEnd":373.7000000476837,"responseStart":373.7000000476837,"secureConnectionStart":185.90000009536743},{"duration":216.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":402.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":188.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":186.10000014305115,"connectEnd":186.10000014305115,"connectStart":186.10000014305115,"domainLookupEnd":186.10000014305115,"domainLookupStart":186.10000014305115,"fetchStart":186.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":186.10000014305115,"responseEnd":374.2000000476837,"responseStart":374.2000000476837,"secureConnectionStart":186.10000014305115},{"duration":216.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":186.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":402.5,"responseStart":0,"secureConnectionStart":0},{"duration":188.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":186.40000009536743,"connectEnd":186.40000009536743,"connectStart":186.40000009536743,"domainLookupEnd":186.40000009536743,"domainLookupStart":186.40000009536743,"fetchStart":186.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":186.40000009536743,"responseEnd":374.7999999523163,"responseStart":374.7999999523163,"secureConnectionStart":186.40000009536743},{"duration":295.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":187.10000014305115,"connectEnd":187.10000014305115,"connectStart":187.10000014305115,"domainLookupEnd":187.10000014305115,"domainLookupStart":187.10000014305115,"fetchStart":187.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":187.10000014305115,"responseEnd":482.7999999523163,"responseStart":482.7999999523163,"secureConnectionStart":187.10000014305115},{"duration":797,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":191.29999995231628,"connectEnd":191.29999995231628,"connectStart":191.29999995231628,"domainLookupEnd":191.29999995231628,"domainLookupStart":191.29999995231628,"fetchStart":191.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":191.29999995231628,"responseEnd":988.2999999523163,"responseStart":988.2000000476837,"secureConnectionStart":191.29999995231628},{"duration":70.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":414.7999999523163,"connectEnd":414.7999999523163,"connectStart":414.7999999523163,"domainLookupEnd":414.7999999523163,"domainLookupStart":414.7999999523163,"fetchStart":414.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":414.7999999523163,"responseEnd":485.7000000476837,"responseStart":485.7000000476837,"secureConnectionStart":414.7999999523163},{"duration":324.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":687.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":687.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1011.4000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":35,"responseStart":180,"responseEnd":184,"domLoading":183,"domInteractive":1012,"domContentLoadedEventStart":1012,"domContentLoadedEventEnd":1051,"domComplete":1387,"loadEventStart":1387,"loadEventEnd":1388,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":990},{"name":"bigPipe.sidebar-id.end","time":990.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":991},{"name":"bigPipe.activity-panel-pipe-id.end","time":992.6000001430511},{"name":"activityTabFullyLoaded","time":1066.7000000476837}],"measures":[],"correlationId":"6700cf7e32c38f","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":93,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Today's revision adds the XtraDB flushes LRU stats : https://github.com/jb-boin/mariadb/commit/a9922df1095d2b87d8541c1cce623df4b0f82656
Example of the output :
Flushes 49.65M 15.4/s
LRU 2.54M 0.8/s %Flush: 5.12