After moving from 10.2.15 to 10.2.21 we began experiencing memory leaks. I have continued to upgrade and am currently on 10.2.27. The issue still exists. The best I can tell is that over time there is an incremental build-up of 64Mb memory allocations that are never reclaimed. Left unchecked, Maria grows until the OS terminates it. This server is the master in a master/slave set-up using mariabackup. On 10.2.15 it was using xtrabackup. After moving to 10.2.21 it was switched to mariabackup. I am not sure what other information to provide. This database server that holds 200K+ tables. Server resources were never a concern.
{"report":{"fcp":816,"ttfb":253.59999990463257,"pageVisibility":"visible","entityId":81916,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"4fba2c8c-d333-4c5f-a1ef-dc3b1e622ffc","navigationType":0,"readyForUser":879.6999999284744,"redirectCount":0,"resourceLoadedEnd":912.5999999046326,"resourceLoadedStart":259.6999999284744,"resourceTiming":[{"duration":9.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":259.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":259.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":269.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":10.399999976158142,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":260,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":260,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":270.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":72.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":260.09999990463257,"connectEnd":260.09999990463257,"connectStart":260.09999990463257,"domainLookupEnd":260.09999990463257,"domainLookupStart":260.09999990463257,"fetchStart":260.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":260.09999990463257,"responseEnd":332.5,"responseStart":332.5,"secureConnectionStart":260.09999990463257},{"duration":181.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":260.2999999523163,"connectEnd":260.2999999523163,"connectStart":260.2999999523163,"domainLookupEnd":260.2999999523163,"domainLookupStart":260.2999999523163,"fetchStart":260.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":260.2999999523163,"responseEnd":441.7999999523163,"responseStart":441.7999999523163,"secureConnectionStart":260.2999999523163},{"duration":185,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":260.59999990463257,"connectEnd":260.59999990463257,"connectStart":260.59999990463257,"domainLookupEnd":260.59999990463257,"domainLookupStart":260.59999990463257,"fetchStart":260.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":260.59999990463257,"responseEnd":445.59999990463257,"responseStart":445.59999990463257,"secureConnectionStart":260.59999990463257},{"duration":185.80000007152557,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":260.6999999284744,"connectEnd":260.6999999284744,"connectStart":260.6999999284744,"domainLookupEnd":260.6999999284744,"domainLookupStart":260.6999999284744,"fetchStart":260.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":260.6999999284744,"responseEnd":446.5,"responseStart":446.5,"secureConnectionStart":260.6999999284744},{"duration":186.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":260.7999999523163,"connectEnd":260.7999999523163,"connectStart":260.7999999523163,"domainLookupEnd":260.7999999523163,"domainLookupStart":260.7999999523163,"fetchStart":260.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":260.7999999523163,"responseEnd":447.2999999523163,"responseStart":447.2999999523163,"secureConnectionStart":260.7999999523163},{"duration":212.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":261,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":261,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":473.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":186.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":261.1999999284744,"connectEnd":261.1999999284744,"connectStart":261.1999999284744,"domainLookupEnd":261.1999999284744,"domainLookupStart":261.1999999284744,"fetchStart":261.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":261.1999999284744,"responseEnd":448.09999990463257,"responseStart":448.09999990463257,"secureConnectionStart":261.1999999284744},{"duration":212.69999992847443,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":261.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":261.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":474.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":187.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":261.5,"connectEnd":261.5,"connectStart":261.5,"domainLookupEnd":261.5,"domainLookupStart":261.5,"fetchStart":261.5,"redirectEnd":0,"redirectStart":0,"requestStart":261.5,"responseEnd":448.7999999523163,"responseStart":448.7999999523163,"secureConnectionStart":261.5},{"duration":261.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":262.2999999523163,"connectEnd":262.2999999523163,"connectStart":262.2999999523163,"domainLookupEnd":262.2999999523163,"domainLookupStart":262.2999999523163,"fetchStart":262.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":262.2999999523163,"responseEnd":523.6999999284744,"responseStart":523.6999999284744,"secureConnectionStart":262.2999999523163},{"duration":381,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":266.39999997615814,"connectEnd":266.39999997615814,"connectStart":266.39999997615814,"domainLookupEnd":266.39999997615814,"domainLookupStart":266.39999997615814,"fetchStart":266.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":266.39999997615814,"responseEnd":647.3999999761581,"responseStart":647.3999999761581,"secureConnectionStart":266.39999997615814},{"duration":39.800000071525574,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":485.09999990463257,"connectEnd":485.09999990463257,"connectStart":485.09999990463257,"domainLookupEnd":485.09999990463257,"domainLookupStart":485.09999990463257,"fetchStart":485.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":485.09999990463257,"responseEnd":524.8999999761581,"responseStart":524.8999999761581,"secureConnectionStart":485.09999990463257},{"duration":208.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":528.1999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":528.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":736.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":376.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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","startTime":529.0999999046326,"connectEnd":529.0999999046326,"connectStart":529.0999999046326,"domainLookupEnd":529.0999999046326,"domainLookupStart":529.0999999046326,"fetchStart":529.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":529.0999999046326,"responseEnd":905.2999999523163,"responseStart":905.2999999523163,"secureConnectionStart":529.0999999046326},{"duration":383.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/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.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":529.5,"connectEnd":529.5,"connectStart":529.5,"domainLookupEnd":529.5,"domainLookupStart":529.5,"fetchStart":529.5,"redirectEnd":0,"redirectStart":0,"requestStart":529.5,"responseEnd":912.5999999046326,"responseStart":912.5999999046326,"secureConnectionStart":529.5},{"duration":120,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":808,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":808,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":928,"responseStart":0,"secureConnectionStart":0},{"duration":99.39999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":815.2999999523163,"connectEnd":815.2999999523163,"connectStart":815.2999999523163,"domainLookupEnd":815.2999999523163,"domainLookupStart":815.2999999523163,"fetchStart":815.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":815.2999999523163,"responseEnd":914.6999999284744,"responseStart":914.6999999284744,"secureConnectionStart":815.2999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":78,"responseStart":253,"responseEnd":258,"domLoading":257,"domInteractive":936,"domContentLoadedEventStart":936,"domContentLoadedEventEnd":983,"domComplete":1134,"loadEventStart":1134,"loadEventEnd":1135,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":906.5999999046326},{"name":"bigPipe.sidebar-id.end","time":907.3999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":907.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":909.6999999284744},{"name":"activityTabFullyLoaded","time":1006.8999999761581}],"measures":[],"correlationId":"5f6f2c1519d2a3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":123,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Can you please try to post more details and try to identify the culprit of the leak (or memory fragmentation)?
One idea would be to use tcmalloc and https://gperftools.github.io/gperftools/heapprofile.html
You do not need to recompile anything for that, just setting LD_PRELOAD and a few other environment variables should be enough.
Another idea would be to compile the server cmake -DWITH_ASAN=ON -DWITH_SAFEMALLOC=OFF and to run a little bit of workload and then initiate shutdown. Does LeakSanitizer report anything? If not, then what you are experiencing could be memory fragmentation and not a genuine leak.