Hi there
We collect user statistics and run "SELECT * FROM INFORMATION_SCHEMA.USER_STATISTICS; FLUSH USER_STATISTICS" every 5 minutes and then put received values to rrd databases. We noticed that after some uptime CPU_TIME counter goes mad and starts to show incredibly high usage values. After restarting MariaDB process it goes back to normal for some time. Please see attached graphs as examples. One can notice a huge drop down of CPU_TIME counter on both graphs. These are graphs for a random customer from two different MariaDB servers.
Platform used: Debian Squeeze amd64, MariaDB 5.2.12-MariaDB-mariadb115~squeeze-log from official package.
{"report":{"fcp":1573.4000000953674,"ttfb":325.5,"pageVisibility":"visible","entityId":20163,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"1c7e5c51-1882-4e37-a8e0-a01deb664b6a","navigationType":0,"readyForUser":1734.7999997138977,"redirectCount":0,"resourceLoadedEnd":1796.7999997138977,"resourceLoadedStart":330.2999997138977,"resourceTiming":[{"duration":705.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":330.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":330.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1035.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":705.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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","startTime":330.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":330.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1036.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":720.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":330.7999997138977,"connectEnd":330.7999997138977,"connectStart":330.7999997138977,"domainLookupEnd":330.7999997138977,"domainLookupStart":330.7999997138977,"fetchStart":330.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":330.7999997138977,"responseEnd":1051,"responseStart":1051,"secureConnectionStart":330.7999997138977},{"duration":790.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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","startTime":331,"connectEnd":331,"connectStart":331,"domainLookupEnd":331,"domainLookupStart":331,"fetchStart":331,"redirectEnd":0,"redirectStart":0,"requestStart":331,"responseEnd":1121.7999997138977,"responseStart":1121.7999997138977,"secureConnectionStart":331},{"duration":794.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":331.09999990463257,"connectEnd":331.09999990463257,"connectStart":331.09999990463257,"domainLookupEnd":331.09999990463257,"domainLookupStart":331.09999990463257,"fetchStart":331.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":331.09999990463257,"responseEnd":1125.7999997138977,"responseStart":1125.7999997138977,"secureConnectionStart":331.09999990463257},{"duration":794.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":331.2999997138977,"connectEnd":331.2999997138977,"connectStart":331.2999997138977,"domainLookupEnd":331.2999997138977,"domainLookupStart":331.2999997138977,"fetchStart":331.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":331.2999997138977,"responseEnd":1126.1999998092651,"responseStart":1126.1999998092651,"secureConnectionStart":331.2999997138977},{"duration":795.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":331.40000009536743,"connectEnd":331.40000009536743,"connectStart":331.40000009536743,"domainLookupEnd":331.40000009536743,"domainLookupStart":331.40000009536743,"fetchStart":331.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":331.40000009536743,"responseEnd":1126.5,"responseStart":1126.5,"secureConnectionStart":331.40000009536743},{"duration":888.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":331.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1220.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":795.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":331.69999980926514,"connectEnd":331.69999980926514,"connectStart":331.69999980926514,"domainLookupEnd":331.69999980926514,"domainLookupStart":331.69999980926514,"fetchStart":331.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":331.69999980926514,"responseEnd":1127,"responseStart":1127,"secureConnectionStart":331.69999980926514},{"duration":888.3999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":331.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1220.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":795.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":332.09999990463257,"connectEnd":332.09999990463257,"connectStart":332.09999990463257,"domainLookupEnd":332.09999990463257,"domainLookupStart":332.09999990463257,"fetchStart":332.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":332.09999990463257,"responseEnd":1127.5999999046326,"responseStart":1127.5999999046326,"secureConnectionStart":332.09999990463257},{"duration":1441.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":348.7999997138977,"connectEnd":348.7999997138977,"connectStart":348.7999997138977,"domainLookupEnd":348.7999997138977,"domainLookupStart":348.7999997138977,"fetchStart":348.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":348.7999997138977,"responseEnd":1790.4000000953674,"responseStart":1790.4000000953674,"secureConnectionStart":348.7999997138977},{"duration":1447.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":348.90000009536743,"connectEnd":348.90000009536743,"connectStart":348.90000009536743,"domainLookupEnd":348.90000009536743,"domainLookupStart":348.90000009536743,"fetchStart":348.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":348.90000009536743,"responseEnd":1796.7999997138977,"responseStart":1796.7999997138977,"secureConnectionStart":348.90000009536743},{"duration":268.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1252.9000000953674,"connectEnd":1252.9000000953674,"connectStart":1252.9000000953674,"domainLookupEnd":1252.9000000953674,"domainLookupStart":1252.9000000953674,"fetchStart":1252.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1252.9000000953674,"responseEnd":1521,"responseStart":1521,"secureConnectionStart":1252.9000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":159,"responseStart":325,"responseEnd":331,"domLoading":329,"domInteractive":1839,"domContentLoadedEventStart":1839,"domContentLoadedEventEnd":1917,"domComplete":2406,"loadEventStart":2406,"loadEventEnd":2406,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1809.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1809.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1810.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1811.9000000953674},{"name":"activityTabFullyLoaded","time":1938.2999997138977}],"measures":[],"correlationId":"a3bf50654e0958","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Re: CPU_TIME counter from USER_STATISTICS gets wrong after some uptime
Hi Anton,
Just to clarify, it started showing the same wrong values for all clients simultaneously, right?