
{"id":26493,"date":"2025-08-04T12:48:19","date_gmt":"2025-08-04T10:48:19","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=26493"},"modified":"2026-01-16T13:13:44","modified_gmt":"2026-01-16T12:13:44","slug":"what-to-do-when-your-server-has-high-cpu-usage","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/what-to-do-when-your-server-has-high-cpu-usage\/","title":{"rendered":"What to Do When Your Server Has High CPU Usage\u00a0"},"content":{"rendered":"\n<p>High CPU usage can slow down your applications, interrupt your workflows, and even cause downtime. Fortunately, you can resolve most issues quickly once you identify what\u2019s consuming your resources. This guide walks you through the essential steps to diagnose and fix high CPU usage on both Linux and Windows servers.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-1-identify-what-s-causing-the-high-cpu-usage\">Step 1: Identify What\u2019s Causing the High CPU Usage\u00a0<\/h2>\n\n\n\n<p>Start by checking which processes are consuming the most resources.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-on-linux\">On Linux\u00a0<\/h3>\n\n\n\n<p>Use <code>top <\/code>or <code>htop <\/code>to view real-time CPU activity. These tools show active processes, how much CPU they use, and how your system behaves under load.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-on-windows\">On Windows\u00a0<\/h3>\n\n\n\n<p>Open <strong>Task Manager<\/strong>, go to the <strong>Processes<\/strong> tab, and sort by CPU usage. This helps you spot any application or service that suddenly consumes more power than expected.&nbsp;<\/p>\n\n\n\n<p>Look for unusual tasks, misbehaving services like Apache or MySQL, or unfamiliar processes that might indicate abuse.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-2-restart-misbehaving-services\">Step 2: Restart Misbehaving Services\u00a0<\/h2>\n\n\n\n<p>If a known service is spiking the CPU, restarting it often restores normal performance.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-linux-restart-examples\">Linux Restart Examples\u00a0<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart apache2&nbsp;\n\nsudo systemctl restart mysql&nbsp;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-on-windows-0\">On Windows\u00a0<\/h3>\n\n\n\n<p>Open the <strong>Services<\/strong> app and stop or restart the affected service from there.&nbsp;<\/p>\n\n\n\n<p>A quick restart reduces load while you investigate further.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-3-optimize-and-clean-up-your-system\">Step 3: Optimize and Clean Up Your System\u00a0<\/h2>\n\n\n\n<p>Next, lower unnecessary usage by reviewing what runs on your server.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Remove outdated or unused plugins.&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Disable heavy background tasks you no longer need.&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Update your system regularly to improve stability and performance.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>If you run <a href=\"https:\/\/contabo.com\/blog\/the-ultimate-wordpress-vps-performance-optimization-checklist\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress<\/a> or another database-driven application, optimize your database to reduce query load and improve CPU efficiency.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-4-scan-for-malware-or-abuse\">Step 4: Scan for Malware or Abuse\u00a0<\/h2>\n\n\n\n<p>Unexpected CPU spikes often indicate cyber abuse, such as cryptominers, bots, or brute-force attempts. A quick security scan helps you rule out malicious activity.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-linux-malware-check\">Linux Malware Check\u00a0<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install rkhunter&nbsp;<br><br>sudo rkhunter --check&nbsp;<\/code><\/pre>\n\n\n\n<p>Also review open ports, logged-in users, or unusual network traffic. Detecting and removing threats early prevents long-term performance issues.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-5-monitor-and-scale-if-needed\">Step 5: Monitor and Scale If Needed\u00a0<\/h2>\n\n\n\n<p>Once your server is stable again, set up ongoing monitoring. Tools like Netdata or server dashboards show CPU spikes, unusual traffic, or suspicious behavior in real time.&nbsp;<\/p>\n\n\n\n<p>If your applications keep growing, consider <a href=\"https:\/\/contabo.com\/blog\/upgrade-vps-with-contabo\/\" target=\"_blank\" rel=\"noreferrer noopener\">upgrading your VPS<\/a> or using <a href=\"https:\/\/contabo.com\/blog\/wiki\/load-balancing\/\" target=\"_blank\" rel=\"noreferrer noopener\">load balancing<\/a>. Scaling prevents constant overload and helps maintain smooth performance.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-watch-our-youtube-video-on-what-to-do-if-your-server-has-high-cpu-usage\">Watch Our YouTube Video on What to Do If Your Server has High CPU Usage\u00a0<\/h2>\n\n\n\n<p>If you prefer a visual walk-through, watch the connected YouTube video that this tutorial is based on. It shows every step in action for both Linux and Windows.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"ast-oembed-container \" style=\"height: 100%;\"><iframe loading=\"lazy\" title=\"What to do when your server shows high CPU usage\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/Z8-mUgc2Msc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion\u00a0<\/h2>\n\n\n\n<p>Here\u2019s a quick recap to keep your server running efficiently:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check what\u2019s consuming CPU&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Restart or disable unnecessary processes&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Clean up and optimize your system&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Scan for malware or abuse&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Monitor performance and scale when needed&nbsp;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>High CPU usage can slow down your applications, interrupt your workflows, and even cause downtime. Fortunately, you can resolve most issues quickly once you identify what\u2019s consuming your resources. This guide walks you through the essential steps to diagnose and fix high CPU usage on both Linux and Windows servers.&nbsp; Step 1: Identify What\u2019s Causing [&hellip;]<\/p>\n","protected":false},"author":77,"featured_media":26497,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[],"ppma_author":[3116],"class_list":["post-26493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"uagb_featured_image_src":{"full":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/12\/Ansible.png",1200,630,false],"thumbnail":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/12\/Ansible-150x150.png",150,150,true],"medium":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/12\/Ansible-600x315.png",600,315,true],"medium_large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/12\/Ansible-768x403.png",768,403,true],"large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/12\/Ansible.png",1200,630,false],"1536x1536":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/12\/Ansible.png",1200,630,false],"2048x2048":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/12\/Ansible.png",1200,630,false]},"uagb_author_info":{"display_name":"Anika Kopte","author_link":"https:\/\/contabo.com\/blog\/author\/anika\/"},"uagb_comment_info":0,"uagb_excerpt":"High CPU usage can slow down your applications, interrupt your workflows, and even cause downtime. Fortunately, you can resolve most issues quickly once you identify what\u2019s consuming your resources. This guide walks you through the essential steps to diagnose and fix high CPU usage on both Linux and Windows servers.&nbsp; Step 1: Identify What\u2019s Causing&hellip;","authors":[{"term_id":3116,"user_id":77,"is_guest":0,"slug":"anika","display_name":"Anika Kopte","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/1c425caa652c679ae47e3f85a48de4e19f09d37bcb5593ba88a7aa4a08bb1d81?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/26493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=26493"}],"version-history":[{"count":3,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/26493\/revisions"}],"predecessor-version":[{"id":27451,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/26493\/revisions\/27451"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media\/26497"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=26493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=26493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=26493"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=26493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}