A query with a large IN () section will be stuck in statistics and use up all RAM. Multiple such queries will crash the server regardless of memory limitations specified in my.cnf
I noticed this in 10.2.35. Downgrading to 10.2.34 fixes the problem
An example is the WordPress "select post_id,meta_value from wp_postmeta where meta_id in (1,2,3 etc ...)" query.
I have same issue. Server was had to be upgraded to 32G RAM with 10.2.35 on Debian 9 (Stretch). RAM wildly fluctuates. The server was killed by the kernel OOM killer.
Any quick fix?
Javier Carvajal
added a comment - - edited I have same issue. Server was had to be upgraded to 32G RAM with 10.2.35 on Debian 9 (Stretch). RAM wildly fluctuates. The server was killed by the kernel OOM killer.
Any quick fix?
I'd recommend to downgrade to 10.2.34 and apt-mark hold it until there is a fix available. We've seen servers downgraded to 10.2.34 to return to normal RAM usage.
Ferdi van der Werf
added a comment - I'd recommend to downgrade to 10.2.34 and apt-mark hold it until there is a fix available. We've seen servers downgraded to 10.2.34 to return to normal RAM usage.
A set of release is about to be made (10.2.36, 10.3.27, 10.4.17, 10.5.8) which will contain the fix for this.
(EDIT: fix version#)
Sergei Petrunia
added a comment - - edited Hello,
A set of release is about to be made (10.2.36, 10.3.27, 10.4.17, 10.5.8) which will contain the fix for this.
(EDIT: fix version#)
Sergei Petrunia
added a comment - The commits that fix this are (all 3 were made in a row):
https://github.com/MariaDB/server/commit/f81eef62e7742806e5e74b5f37f35b7cd2f82291
https://github.com/MariaDB/server/commit/1404f3bea796c8479cf401cb36d518658600ddca
https://github.com/MariaDB/server/commit/bea84aefb0563a10a310ea81d46c372919345c10
Daniel Black
added a comment - For all those watching patiently, there have been packages released https://mariadb.org/mariadb-10-5-8-10-4-17-10-3-27-and-10-2-36-now-available/
People
Sergei Petrunia
Geza Lucz
Votes:
11Vote for this issue
Watchers:
18Start 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":1575.5999999046326,"ttfb":368,"pageVisibility":"visible","entityId":93497,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"c3156c19-dbd7-48ff-8ed3-bb58d074c80c","navigationType":0,"readyForUser":1678.5,"redirectCount":0,"resourceLoadedEnd":2420.7999997138977,"resourceLoadedStart":381.19999980926514,"resourceTiming":[{"duration":511.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":381.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":381.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":892.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":511,"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":381.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":381.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":892.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":518.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":381.8999996185303,"connectEnd":381.8999996185303,"connectStart":381.8999996185303,"domainLookupEnd":381.8999996185303,"domainLookupStart":381.8999996185303,"fetchStart":381.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":381.8999996185303,"responseEnd":900.7999997138977,"responseStart":900.7999997138977,"secureConnectionStart":381.8999996185303},{"duration":802.7999997138977,"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":383,"connectEnd":383,"connectStart":383,"domainLookupEnd":383,"domainLookupStart":383,"fetchStart":383,"redirectEnd":0,"redirectStart":0,"requestStart":383,"responseEnd":1185.7999997138977,"responseStart":1185.7999997138977,"secureConnectionStart":383},{"duration":808.9000000953674,"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":383.19999980926514,"connectEnd":383.19999980926514,"connectStart":383.19999980926514,"domainLookupEnd":383.19999980926514,"domainLookupStart":383.19999980926514,"fetchStart":383.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":383.19999980926514,"responseEnd":1192.0999999046326,"responseStart":1192.0999999046326,"secureConnectionStart":383.19999980926514},{"duration":809.3000001907349,"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":383.2999997138977,"connectEnd":383.2999997138977,"connectStart":383.2999997138977,"domainLookupEnd":383.2999997138977,"domainLookupStart":383.2999997138977,"fetchStart":383.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":383.2999997138977,"responseEnd":1192.5999999046326,"responseStart":1192.5999999046326,"secureConnectionStart":383.2999997138977},{"duration":809.4000000953674,"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":383.59999990463257,"connectEnd":383.59999990463257,"connectStart":383.59999990463257,"domainLookupEnd":383.59999990463257,"domainLookupStart":383.59999990463257,"fetchStart":383.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":383.59999990463257,"responseEnd":1193,"responseStart":1193,"secureConnectionStart":383.59999990463257},{"duration":810.1999998092651,"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":383.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":383.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1193.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":809.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":384,"connectEnd":384,"connectStart":384,"domainLookupEnd":384,"domainLookupStart":384,"fetchStart":384,"redirectEnd":0,"redirectStart":0,"requestStart":384,"responseEnd":1193.5999999046326,"responseStart":1193.5999999046326,"secureConnectionStart":384},{"duration":812.5,"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":384.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":384.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1196.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":809.9000000953674,"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":384.2999997138977,"connectEnd":384.2999997138977,"connectStart":384.2999997138977,"domainLookupEnd":384.2999997138977,"domainLookupStart":384.2999997138977,"fetchStart":384.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":384.2999997138977,"responseEnd":1194.1999998092651,"responseStart":1194.1999998092651,"secureConnectionStart":384.2999997138977},{"duration":2016,"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":385.7999997138977,"connectEnd":385.7999997138977,"connectStart":385.7999997138977,"domainLookupEnd":385.7999997138977,"domainLookupStart":385.7999997138977,"fetchStart":385.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":385.7999997138977,"responseEnd":2401.7999997138977,"responseStart":2401.7999997138977,"secureConnectionStart":385.7999997138977},{"duration":2019.0999999046326,"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":386.7999997138977,"connectEnd":386.7999997138977,"connectStart":386.7999997138977,"domainLookupEnd":386.7999997138977,"domainLookupStart":386.7999997138977,"fetchStart":386.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":386.7999997138977,"responseEnd":2405.8999996185303,"responseStart":2405.8999996185303,"secureConnectionStart":386.7999997138977},{"duration":137.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1064.0999999046326,"connectEnd":1064.0999999046326,"connectStart":1064.0999999046326,"domainLookupEnd":1064.0999999046326,"domainLookupStart":1064.0999999046326,"fetchStart":1064.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1064.0999999046326,"responseEnd":1201.7999997138977,"responseStart":1201.7999997138977,"secureConnectionStart":1064.0999999046326},{"duration":1214,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1206.7999997138977,"connectEnd":1206.7999997138977,"connectStart":1206.7999997138977,"domainLookupEnd":1206.7999997138977,"domainLookupStart":1206.7999997138977,"fetchStart":1206.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1206.7999997138977,"responseEnd":2420.7999997138977,"responseStart":2420.7999997138977,"secureConnectionStart":1206.7999997138977},{"duration":874,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1568.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1568.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2442.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":99,"responseStart":368,"responseEnd":383,"domLoading":371,"domInteractive":2443,"domContentLoadedEventStart":2443,"domContentLoadedEventEnd":2499,"domComplete":3244,"loadEventStart":3244,"loadEventEnd":3244,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2407.7999997138977},{"name":"bigPipe.sidebar-id.end","time":2408.699999809265},{"name":"bigPipe.activity-panel-pipe-id.start","time":2408.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":2410.3999996185303},{"name":"activityTabFullyLoaded","time":2519.0999999046326}],"measures":[],"correlationId":"d08344d0139df6","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":16,"dbConnsTimeInMs":32,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I have same issue. Server was had to be upgraded to 32G RAM with 10.2.35 on Debian 9 (Stretch). RAM wildly fluctuates. The server was killed by the kernel OOM killer.
Any quick fix?