{"id":1104,"date":"2009-12-06T22:32:15","date_gmt":"2009-12-06T22:32:15","guid":{"rendered":"http:\/\/www.gosquared.com\/liquidicity\/?p=1104"},"modified":"2019-11-28T13:00:12","modified_gmt":"2019-11-28T13:00:12","slug":"fix-mingetty-high-cpu-usage","status":"publish","type":"post","link":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage","title":{"rendered":"Fix mingetty high CPU usage"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg\" alt=\"Develop with Geoff at GoSquared\" title=\"Develop with Geoff at GoSquared\" width=\"790\" height=\"100\" \/><\/p>\n<p>If like us you&#8217;ve been noticing decreased SSH terminal responsiveness on your server recently, or high CPU usage by a process called &#8220;mingetty&#8221;, you&#8217;ll want to know why this process is eating up your valuable CPU time and stop it doing so!<\/p>\n<p><!--more--><\/p>\n<p><strong>The Problem<\/strong><\/p>\n<p>For those of you who don&#8217;t know, mingetty is, as the <a href=\"http:\/\/linux.die.net\/man\/8\/mingetty\">manual page<\/a> puts it, &#8220;a minimal getty for use on virtual consoles&#8221; &#8211; it is the process that handles the activity of your virtual console (like <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\">PuTTY<\/a>). If mingetty&#8217;s CPU usage is high, and\/or your console responds slowly (particularly while running certain programs like top), a likely reason is that your utmp log file is getting large, and thus opening and writing to this file becomes resource intensive.<\/p>\n<p><strong>The Solution<\/strong><\/p>\n<p>Simply delete\/move your current utmp log and create a fresh empty one. We moved ours:<br \/>\n<code>mv \/var\/run\/utmp \/var\/run\/utmp.BAK<br \/>\ntouch \/var\/run\/utmp<\/code><\/p>\n<p>That&#8217;s it! Let&#8217;s see if this has solved the issue&#8230;<\/p>\n<p>Hooray, it worked! Our CPU usage has now evened out to an acceptable level. You can check the CPU usage of mingetty by typing &#8220;top&#8221; into your console.<\/p>\n<p>The utmp log contains information on all logins to your console, so you may need to repeat this step every now and again to prevent this happening again. Although you should keep tabs on who is logging into your system at all times, you could also just remove the \/var\/run\/utmp logfile completely so you don&#8217;t need to keep repeating this method.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If like us you&#8217;ve been noticing decreased SSH terminal responsiveness on your server recently, or high CPU usage by a&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1452],"tags":[880],"class_list":["post-1104","post","type-post","status-publish","format-standard","hentry","category-engineering","tag-terminal"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v18.6 (Yoast SEO v19.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fix mingetty high CPU usage - GoSquared Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fix mingetty high CPU usage\" \/>\n<meta property=\"og:description\" content=\"If like us you&#8217;ve been noticing decreased SSH terminal responsiveness on your server recently, or high CPU usage by a...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage\" \/>\n<meta property=\"og:site_name\" content=\"GoSquared Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GoSquared\" \/>\n<meta property=\"article:published_time\" content=\"2009-12-06T22:32:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-11-28T13:00:12+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@TheDeveloper\" \/>\n<meta name=\"twitter:site\" content=\"@GoSquared\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Geoff Wagstaff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/#organization\",\"name\":\"GoSquared\",\"url\":\"https:\/\/www.gosquared.com\/blog\/\",\"sameAs\":[\"https:\/\/instagram.com\/gosquaredteam\",\"https:\/\/www.linkedin.com\/company\/go-squared-ltd.\",\"https:\/\/www.facebook.com\/GoSquared\",\"https:\/\/twitter.com\/GoSquared\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.gosquared.com\/blog\/wp-content\/uploads\/2015\/07\/gosquared.png\",\"contentUrl\":\"https:\/\/www.gosquared.com\/blog\/wp-content\/uploads\/2015\/07\/gosquared.png\",\"width\":1270,\"height\":250,\"caption\":\"GoSquared\"},\"image\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/#website\",\"url\":\"https:\/\/www.gosquared.com\/blog\/\",\"name\":\"GoSquared Blog\",\"description\":\"Turn visitors into customers.\",\"publisher\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.gosquared.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#primaryimage\",\"url\":\"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg\",\"contentUrl\":\"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#webpage\",\"url\":\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage\",\"name\":\"Fix mingetty high CPU usage - GoSquared Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#primaryimage\"},\"datePublished\":\"2009-12-06T22:32:15+00:00\",\"dateModified\":\"2019-11-28T13:00:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.gosquared.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fix mingetty high CPU usage\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#webpage\"},\"author\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/56a3341790c8a0603f96066fb8d42448\"},\"headline\":\"Fix mingetty high CPU usage\",\"datePublished\":\"2009-12-06T22:32:15+00:00\",\"dateModified\":\"2019-11-28T13:00:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#webpage\"},\"wordCount\":248,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#primaryimage\"},\"thumbnailUrl\":\"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg\",\"keywords\":[\"terminal\"],\"articleSection\":[\"Engineering\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/56a3341790c8a0603f96066fb8d42448\",\"name\":\"Geoff Wagstaff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/66792d2e4d04406697b9a5f322664691590a386bc15b7146d143bbca07aa8889?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/66792d2e4d04406697b9a5f322664691590a386bc15b7146d143bbca07aa8889?s=96&d=mm&r=g\",\"caption\":\"Geoff Wagstaff\"},\"sameAs\":[\"https:\/\/twitter.com\/TheDeveloper\"],\"url\":\"https:\/\/www.gosquared.com\/blog\/author\/echo\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Fix mingetty high CPU usage - GoSquared Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage","og_locale":"en_US","og_type":"article","og_title":"Fix mingetty high CPU usage","og_description":"If like us you&#8217;ve been noticing decreased SSH terminal responsiveness on your server recently, or high CPU usage by a...","og_url":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage","og_site_name":"GoSquared Blog","article_publisher":"https:\/\/www.facebook.com\/GoSquared","article_published_time":"2009-12-06T22:32:15+00:00","article_modified_time":"2019-11-28T13:00:12+00:00","og_image":[{"url":"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg"}],"twitter_card":"summary_large_image","twitter_creator":"@TheDeveloper","twitter_site":"@GoSquared","twitter_misc":{"Written by":"Geoff Wagstaff","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.gosquared.com\/blog\/#organization","name":"GoSquared","url":"https:\/\/www.gosquared.com\/blog\/","sameAs":["https:\/\/instagram.com\/gosquaredteam","https:\/\/www.linkedin.com\/company\/go-squared-ltd.","https:\/\/www.facebook.com\/GoSquared","https:\/\/twitter.com\/GoSquared"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.gosquared.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.gosquared.com\/blog\/wp-content\/uploads\/2015\/07\/gosquared.png","contentUrl":"https:\/\/www.gosquared.com\/blog\/wp-content\/uploads\/2015\/07\/gosquared.png","width":1270,"height":250,"caption":"GoSquared"},"image":{"@id":"https:\/\/www.gosquared.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/www.gosquared.com\/blog\/#website","url":"https:\/\/www.gosquared.com\/blog\/","name":"GoSquared Blog","description":"Turn visitors into customers.","publisher":{"@id":"https:\/\/www.gosquared.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.gosquared.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#primaryimage","url":"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg","contentUrl":"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg"},{"@type":"WebPage","@id":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#webpage","url":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage","name":"Fix mingetty high CPU usage - GoSquared Blog","isPartOf":{"@id":"https:\/\/www.gosquared.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#primaryimage"},"datePublished":"2009-12-06T22:32:15+00:00","dateModified":"2019-11-28T13:00:12+00:00","breadcrumb":{"@id":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.gosquared.com\/blog"},{"@type":"ListItem","position":2,"name":"Fix mingetty high CPU usage"}]},{"@type":"Article","@id":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#article","isPartOf":{"@id":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#webpage"},"author":{"@id":"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/56a3341790c8a0603f96066fb8d42448"},"headline":"Fix mingetty high CPU usage","datePublished":"2009-12-06T22:32:15+00:00","dateModified":"2019-11-28T13:00:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#webpage"},"wordCount":248,"commentCount":5,"publisher":{"@id":"https:\/\/www.gosquared.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#primaryimage"},"thumbnailUrl":"http:\/\/static.gosquared.com\/images\/liquidicity\/09_12_06_geoffdev_790x100.jpg","keywords":["terminal"],"articleSection":["Engineering"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.gosquared.com\/blog\/fix-mingetty-high-cpu-usage#respond"]}]},{"@type":"Person","@id":"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/56a3341790c8a0603f96066fb8d42448","name":"Geoff Wagstaff","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.gosquared.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/66792d2e4d04406697b9a5f322664691590a386bc15b7146d143bbca07aa8889?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/66792d2e4d04406697b9a5f322664691590a386bc15b7146d143bbca07aa8889?s=96&d=mm&r=g","caption":"Geoff Wagstaff"},"sameAs":["https:\/\/twitter.com\/TheDeveloper"],"url":"https:\/\/www.gosquared.com\/blog\/author\/echo"}]}},"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/posts\/1104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/comments?post=1104"}],"version-history":[{"count":0,"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/posts\/1104\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/media?parent=1104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/categories?post=1104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gosquared.com\/blog\/wp-json\/wp\/v2\/tags?post=1104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}