{"id":51808,"date":"2026-11-21T22:05:41","date_gmt":"2026-11-21T22:05:41","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=51808"},"modified":"2026-11-21T22:05:41","modified_gmt":"2026-11-21T22:05:41","slug":"linux-mysql-mariadb-whos-eating-cpu-ram","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/linux-mysql-mariadb-whos-eating-cpu-ram\/","title":{"rendered":"Linux + MySQL\/MariaDB: \u201cWho\u2019s eating CPU\/RAM?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When a Linux database server slows down, start with the OS to find the busy process, user or service. If that turns out to be <code>mysqld<\/code> or <code>mariadbd<\/code>, use processlist sampling, the slow query log and Performance Schema to find which database and query is responsible. The cheat sheet below gives the commands. The sections after it explain how to read the numbers, map a hot OS thread to a specific SQL statement, and fix several commands from the cheat sheet that fail or return nothing as written.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/1029d4c5e363a871d25411b0e223c098.js\"><\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">A triage order that works under pressure<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The cheat sheet above is a list of commands. During an incident it helps to run them in an order where each step narrows down the next one:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Confirm the resource. Use <code>vmstat 1 5<\/code> and <code>free -h<\/code>. A high <code>r<\/code> column means CPU pressure. Non-zero <code>si<\/code>\/<code>so<\/code> means the server is swapping. A high <code>wa<\/code> means it is waiting on disk I\/O, not CPU.<\/li>\n\n\n<li>Find the process with a live sampler such as <code>top<\/code>, <code>pidstat -u 1 5<\/code> or <code>systemd-cgtop<\/code>. Don&#039;t rely on <code>ps<\/code> alone (see the next section).<\/li>\n\n\n<li>If <code>php-fpm<\/code>, <code>httpd<\/code> or <code>apache2<\/code> is the top consumer, the database may only be a symptom. Find the hot pool or vhost first.<\/li>\n\n\n<li>If <code>mysqld<\/code>\/<code>mariadbd<\/code> is the top consumer, run the processlist sampling loop while the spike is happening, then check Performance Schema digests for cumulative cost.<\/li>\n\n\n<li>Map the hottest OS threads of the database process to SQL statements (shown below), then fix or kill that query.<\/li>\n\n\n<li>Turn on the slow query log so the next spike leaves evidence even if nobody is watching.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> <code>mpstat<\/code> and <code>pidstat<\/code> come from the <code>sysstat<\/code> package (<code>dnf install sysstat<\/code> or <code>apt install sysstat<\/code>). <code>pt-query-digest<\/code> comes from <code>percona-toolkit<\/code>. Neither is installed by default on most distributions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Reading the Linux numbers correctly<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>ps<\/code> %CPU is a lifetime average.<\/strong> It is total CPU time divided by the process&#039;s elapsed time, not current usage. A <code>mysqld<\/code> that has been idle for weeks can look quiet in <code>ps<\/code> while it uses 400% in <code>top<\/code> right now. Use <code>top -b -n1<\/code>, <code>pidstat<\/code> or <code>mpstat<\/code> to see what is happening now.<\/li>\n\n\n<li><strong>%MEM double-counts shared memory.<\/strong> Each PHP-FPM or Apache worker&#039;s RSS includes shared libraries and opcache, so the per-user and per-command totals in the example above can add up to more than 100%. Treat them as a ranking, not an exact figure. <code>smem<\/code> (if installed) reports PSS, which divides shared pages fairly.<\/li>\n\n\n<li><strong>CPU above 100% is normal<\/strong> in <code>top<\/code> and <code>ps<\/code> for multi-threaded processes. 100% equals one full core.<\/li>\n\n\n<li><strong>Long usernames get truncated.<\/strong> Use <code>ps -eo user:32,...<\/code> so names like <code>www-data<\/code> or cPanel account names are not cut off or replaced by a UID before the awk aggregation.<\/li>\n\n\n<li><strong>Process names vary by distribution.<\/strong> On Debian and Ubuntu, Apache is <code>apache2<\/code> and PHP-FPM is <code>php-fpm8.x<\/code>, so <code>-C httpd<\/code> or <code>-C php-fpm<\/code> returns nothing. Use <code>pgrep -a php-fpm<\/code> to see the real names. Recent MariaDB releases run as <code>mariadbd<\/code> instead of <code>mysqld<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Map a hot mysqld thread to the exact query<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The cheat sheet stops at database-level rankings. To find the specific statement burning a core, look at the server&#039;s threads in <code>top<\/code>, then look up those OS thread IDs in Performance Schema. This works on MySQL 5.7 and later and on recent MariaDB versions with <code>performance_schema=ON<\/code>.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># 1. Show per-thread CPU for the database server (H toggles thread view)<\/span>\ntop -H -b -n1 -p <span class=\"hljs-string\">\"$(pgrep -d, -x 'mysqld|mariadbd')\"<\/span> | head <span class=\"hljs-number\">-20<\/span>\n\n<span class=\"hljs-comment\"># 2. Take the PID column of the hottest thread (e.g. 23817) and look it up<\/span>\nmysql -e <span class=\"hljs-string\">\"\nSELECT THREAD_OS_ID, PROCESSLIST_ID, PROCESSLIST_USER, PROCESSLIST_DB,\n       PROCESSLIST_TIME, LEFT(PROCESSLIST_INFO, 300) AS query\nFROM performance_schema.threads\nWHERE THREAD_OS_ID = 23817\\G\"<\/span>\n\n<span class=\"hljs-comment\"># 3. If it is a runaway query, stop the statement but keep the connection<\/span>\nmysql -e <span class=\"hljs-string\">\"KILL QUERY 4512;\"<\/span>   <span class=\"hljs-comment\"># 4512 = PROCESSLIST_ID from step 2<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">If the hot thread has no <code>PROCESSLIST_ID<\/code>, it is a background thread such as InnoDB purge, page cleaner or replication. In that case, check <code>SHOW ENGINE INNODB STATUS\\G<\/code> for a long history list (purge lag) or heavy flushing rather than looking for a user query.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Performance Schema digest counters accumulate from server start. To measure only the current spike, reset them with <code>TRUNCATE TABLE performance_schema.events_statements_summary_by_digest;<\/code>, wait a few minutes, then run the top-digest query from the example above.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Corrected commands<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Several commands in the cheat sheet fail or silently return nothing. <strong>Database size.<\/strong> <code>DATABASE<\/code> is a reserved word, so <code>AS Database<\/code> causes ERROR 1064. Backticks would fix the SQL, but inside a double-quoted bash string they would trigger command substitution. A plain alias avoids both problems:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">mysql -e <span class=\"hljs-string\">\"\nSELECT table_schema AS db_name,\n       ROUND(SUM(data_length + index_length)\/1024\/1024, 2) AS size_mb\nFROM information_schema.tables\nGROUP BY table_schema\nORDER BY size_mb DESC;\"<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>MariaDB userstat.<\/strong> <code>information_schema.TABLE_STATISTICS<\/code> has no <code>db<\/code> column. The schema column is <code>TABLE_SCHEMA<\/code>. Also, <code>userstat<\/code> is a dynamic variable, so it can be enabled without a restart:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">mysql -e <span class=\"hljs-string\">\"SET GLOBAL userstat = 1;\"<\/span>\n<span class=\"hljs-comment\"># ...let traffic run, then:<\/span>\nmysql -e <span class=\"hljs-string\">\"\nSELECT TABLE_SCHEMA AS db,\n       SUM(ROWS_READ) AS rows_read,\n       SUM(ROWS_CHANGED) AS rows_changed,\n       SUM(ROWS_READ) + SUM(ROWS_CHANGED) AS activity\nFROM information_schema.TABLE_STATISTICS\nGROUP BY TABLE_SCHEMA\nORDER BY activity DESC\nLIMIT 10;\"<\/span>\n<span class=\"hljs-comment\"># Reset counters for a fresh window: FLUSH TABLE_STATISTICS;<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Slow queries per schema.<\/strong> MariaDB writes the schema on a line like <code># Thread_id: 8  Schema: shop  QC_hit: No<\/code>, so <code>grep &#039;^# Schema:&#039;<\/code> matches nothing. Match the field wherever it appears instead:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">grep -o <span class=\"hljs-string\">'Schema: &#91;^ ]*'<\/span> \/<span class=\"hljs-keyword\">var<\/span>\/log\/mariadb\/slow.log | awk <span class=\"hljs-string\">'{print $2}'<\/span> | sort | uniq -c | sort -nr<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Aggregations.<\/strong> Print the header separately so <code>sort<\/code> cannot move it to the bottom, and widen the user column:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">printf <span class=\"hljs-string\">\"%-25s %-10s %-10s\\n\"<\/span> COMMAND <span class=\"hljs-string\">\"CPU(%)\"<\/span> <span class=\"hljs-string\">\"MEM(%)\"<\/span>\nps -eo comm,%cpu,%mem --no-headers \\\n  | awk <span class=\"hljs-string\">'{cpu&#91;$1]+=$2; mem&#91;$1]+=$3} END {for (i in cpu) printf \"%-25s %-10.2f %-10.2f\\n\", i, cpu&#91;i], mem&#91;i]}'<\/span> \\\n  | sort -k2,<span class=\"hljs-number\">2n<\/span>r | head\n\nprintf <span class=\"hljs-string\">\"%-20s %-10s %-10s\\n\"<\/span> USER <span class=\"hljs-string\">\"CPU(%)\"<\/span> <span class=\"hljs-string\">\"MEM(%)\"<\/span>\nps -eo user:<span class=\"hljs-number\">32<\/span>,%cpu,%mem --no-headers \\\n  | awk <span class=\"hljs-string\">'{cpu&#91;$1]+=$2; mem&#91;$1]+=$3} END {for (i in cpu) printf \"%-20s %-10.2f %-10.2f\\n\", i, cpu&#91;i], mem&#91;i]}'<\/span> \\\n  | sort -k2,<span class=\"hljs-number\">2n<\/span>r<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>The sampling loop<\/strong> uses <code>{1..30}<\/code>, which is bash brace expansion. Under <code>\/bin\/sh<\/code> on Debian or Ubuntu (dash), it runs only once. Run it with <code>bash<\/code>, or use <code>for i in $(seq 1 30)<\/code>. Its <code>2&gt;\/dev\/null<\/code> also hides authentication errors, so test the inner <code>mysql<\/code> command once on its own first.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Keep passwords off the command line<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>-pYOURPASS<\/code> makes the password visible to other users through <code>ps<\/code>, and it stays in shell history. Put the credentials in an option file instead, so every command in this guide can drop <code>-u root -p<\/code>:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">cat &gt; ~\/.my.cnf &lt;&lt;<span class=\"hljs-string\">'EOF'<\/span>\n&#91;client]\nuser=root\npassword=YOURPASS\nEOF\nchmod <span class=\"hljs-number\">600<\/span> ~\/.my.cnf\n\nmysql -e <span class=\"hljs-string\">\"SELECT CURRENT_USER();\"<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">On many MariaDB installs, and on MySQL from Debian or Ubuntu packages, the local <code>root<\/code> account uses socket authentication, so <code>sudo mysql<\/code> works with no password at all. For monitoring, use a dedicated account with only the <code>PROCESS<\/code> privilege, plus <code>SELECT<\/code> on <code>performance_schema<\/code>. Without <code>PROCESS<\/code>, the processlist shows only that account&#039;s own threads.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">MySQL vs MariaDB differences that break the cheat sheet<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Item<\/th><th>MariaDB<\/th><th>MySQL<\/th><\/tr><\/thead><tbody><tr><td><code>log_slow_verbosity=query_plan<\/code><\/td><td>Supported<\/td><td>Unknown variable, so the server refuses to start<\/td><\/tr><tr><td><code>userstat<\/code> \/ <code>TABLE_STATISTICS<\/code><\/td><td>Built in<\/td><td>Not available (Percona Server has it)<\/td><\/tr><tr><td>Performance Schema default<\/td><td>Off; enabling it needs a restart<\/td><td>On by default<\/td><\/tr><tr><td>Service name<\/td><td><code>mariadb<\/code><\/td><td><code>mysqld<\/code> (RHEL) or <code>mysql<\/code> (Debian\/Ubuntu)<\/td><\/tr><tr><td>Default slow log directory in examples<\/td><td><code>\/var\/log\/mariadb\/<\/code> (RHEL)<\/td><td>Often <code>\/var\/log\/mysql\/<\/code><\/td><\/tr><tr><td>Persist a runtime setting<\/td><td>Edit the config file<\/td><td><code>SET PERSIST<\/code> or edit the config file<\/td><\/tr><tr><td>Live processlist<\/td><td><code>information_schema.PROCESSLIST<\/code><\/td><td><code>performance_schema.processlist<\/code> preferred; the I_S table is deprecated in newer versions<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> <code>SET GLOBAL long_query_time=2<\/code> applies only to connections opened after the change. Long-lived pooled connections keep the old value until they reconnect. Every <code>SET GLOBAL<\/code> is also lost on restart unless it is also written to the config file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When mysqld is the memory hog<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A large, steady RSS for <code>mysqld<\/code> is usually expected. The InnoDB buffer pool is allocated to cache data and is not released when the server goes idle. Check what the server is configured to use before you call it a leak:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">mysql -e <span class=\"hljs-string\">\"SELECT @@innodb_buffer_pool_size\/1024\/1024\/1024 AS buffer_pool_gb,\n                 @@max_connections, @@tmp_table_size\/1024\/1024 AS tmp_table_mb;\"<\/span>\n\n<span class=\"hljs-comment\"># Did the kernel OOM killer hit the database?<\/span>\ndmesg -T | grep -iE <span class=\"hljs-string\">'out of memory|killed process'<\/span>\njournalctl -k --since <span class=\"hljs-string\">'-1 day'<\/span> | grep -i oom<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Real memory growth beyond the buffer pool usually comes from per-connection buffers (<code>sort_buffer_size<\/code>, <code>join_buffer_size<\/code>, <code>tmp_table_size<\/code>) multiplied by many concurrent connections. Rising <code>Created_tmp_disk_tables<\/code> and <code>Threads_running<\/code> in the cheat sheet&#039;s status commands point that way. To see per-second deltas instead of running the commands twice, use <code>mysqladmin -r -i 10 extended-status | grep -E &#039;Threads_running|Created_tmp_disk|Questions&#039;<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors and fixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td><code>ERROR 1064 ... near &#039;Database&#039;<\/code><\/td><td>Reserved word used as an alias<\/td><td>Use an alias like <code>db_name<\/code><\/td><\/tr><tr><td><code>Unknown column &#039;db&#039;<\/code> on TABLE_STATISTICS<\/td><td>Wrong column name<\/td><td>Use <code>TABLE_SCHEMA<\/code><\/td><\/tr><tr><td><code>mpstat: command not found<\/code><\/td><td>sysstat not installed<\/td><td>Install the <code>sysstat<\/code> package<\/td><\/tr><tr><td>Slow log stays empty<\/td><td>Directory not writable by the <code>mysql<\/code> user, SELinux label, or threshold too high<\/td><td>Check <code>SHOW VARIABLES LIKE &#039;slow_query_log%&#039;<\/code>, fix ownership, run <code>restorecon<\/code> on SELinux hosts<\/td><\/tr><tr><td>Performance Schema queries return no rows<\/td><td><code>performance_schema<\/code> is OFF (MariaDB default)<\/td><td>Enable it in the config and restart; it cannot be turned on at runtime<\/td><\/tr><tr><td>Processlist shows only your own threads<\/td><td>Account lacks the <code>PROCESS<\/code> privilege<\/td><td>Grant <code>PROCESS<\/code> to the monitoring user<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">How do I find which query is using the most CPU in MySQL or MariaDB?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run <code>top -H -p<\/code> on the server process to find the hottest threads, then look up their IDs in the <code>THREAD_OS_ID<\/code> column of <code>performance_schema.threads<\/code> to get the running SQL. For cost over time, sort <code>events_statements_summary_by_digest<\/code> by <code>SUM_TIMER_WAIT<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does mysqld use so much RAM even when the server is idle?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The InnoDB buffer pool is allocated to cache data and indexes and stays allocated whether or not queries are running. Compare RSS with <code>innodb_buffer_pool_size<\/code> before you suspect a leak.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is the %CPU column from ps the current CPU usage?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. <code>ps<\/code> reports total CPU time divided by the process&#039;s lifetime. Use <code>top<\/code>, <code>pidstat -u 1<\/code> or <code>mpstat<\/code> to see current usage.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I enable Performance Schema without restarting MariaDB?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. The <code>performance_schema<\/code> variable is read only at startup, so add <code>performance_schema=ON<\/code> under <code>[mysqld]<\/code> and restart. The slow query log and <code>userstat<\/code> can be switched on at runtime with <code>SET GLOBAL<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I stop a runaway query without dropping the client connection?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use <code>KILL QUERY &lt;id&gt;<\/code> with the ID from the processlist. This cancels the statement but keeps the connection open. Plain <code>KILL &lt;id&gt;<\/code> closes the whole connection.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/database\/\">More Databases tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/operating-systems\/linux\/\">More Linux tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/red-hat-ex342-complete-home-study-curriculum\/\">Red Hat EX342 Complete Home-Study Curriculum<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>When a Linux database server slows down, start with the OS to find the busy process, user or service. If that turns out to be mysqld or&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[10975,4957],"tags":[26348],"class_list":["post-51808","post","type-post","status-publish","format-standard","hentry","category-database","category-linux","tag-mariadb"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/51808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=51808"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/51808\/revisions"}],"predecessor-version":[{"id":80101,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/51808\/revisions\/80101"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=51808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=51808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=51808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}