{"id":20113,"date":"2024-05-28T06:48:52","date_gmt":"2024-05-28T06:48:52","guid":{"rendered":"https:\/\/hostvento.com\/kb\/web-hosting\/getting-started-guide\/how-to-use-the-knowledge-base\/how-to-install-htop-to-check-the-droplets-memory-usage\/"},"modified":"2024-06-17T09:43:11","modified_gmt":"2024-06-17T09:43:11","slug":"how-to-install-htop-to-check-the-droplets-memory-usage","status":"publish","type":"docs","link":"https:\/\/www.hostvento.com\/kb\/docs\/hosting-faqs\/how-to-install-htop-to-check-the-droplets-memory-usage\/","title":{"rendered":"How to Install htop to Check the Droplet\u2019s Memory Usage?"},"content":{"rendered":"\n<p>To check the droplet\u2019s memory usage you will need to install htop process monitoring tool.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installation of htop on Ubuntu<\/h3>\n\n\n\n<p>1. Login to your server.<\/p>\n\n\n\n<p>2. Execute the below command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install htop<\/pre>\n\n\n\n<p>This will help you to know which programs are consuming more RAM.<\/p>\n\n\n\n<p>3. You will see the memory usage in htop just below the CPU statistics. Memory monitoring is displayed in the form of progress bars with multiple colors.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Green:<\/strong>\u00a0It is the percentage of RAM consumed by memory pages.<\/li>\n\n\n\n<li><strong>Blue:<\/strong>\u00a0It is the percentage of RAM consumed by buffer pages.<\/li>\n\n\n\n<li><strong>Orange:<\/strong>\u00a0It is the percentage of RAM consumed by cache pages.<\/li>\n<\/ul>\n\n\n\n<p>4. Below is the detailed process information in htop about memory:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>VIR<\/strong>\u00a0\u2013 It indicates the virtual memory that a process is consuming.<\/li>\n\n\n\n<li><strong>RES<\/strong>\u00a0\u2013 It indicates the physical memory that a process is consuming.<\/li>\n\n\n\n<li><strong>SHR<\/strong>\u00a0\u2013 It indicates the shared memory that a process is consuming.<\/li>\n\n\n\n<li><strong>MEM%<\/strong>\u00a0\u2013 It indicates the percentage of memory consumed by each process.<\/li>\n<\/ul>\n\n\n\n<p>5. You can check the memory consumption using the shortcut key&nbsp;<strong>\u2018M\u2019<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installation of htop on CentOS<\/h3>\n\n\n\n<p>You can install htop on CentOS using yum.<\/p>\n\n\n\n<p>1. Execute below command to add&nbsp;<strong>EPEL repository<\/strong>&nbsp;to the yum package manager:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum -y install epel-release\nyum -y update<\/pre>\n\n\n\n<p>2. After adding the repository, you can ask yum to install the htop process monitoring tool:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum -y install htop<\/pre>\n\n\n\n<p>3. If the installation is done successfully, you should be able to type htop in the command line and view the status of your system.<\/p>\n\n\n\n<p>In this way you can install htop process monitoring tool on Ubuntu and CentOS to check your droplet\u2019e memory usage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To check the droplet\u2019s memory usage you will need to install htop process monitoring tool. Installation of htop on Ubuntu 1. Login to your server. 2. Execute the below command: sudo apt-get install htop This will help you to know which programs are consuming more RAM. 3. You will see the memory usage in htop [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":23377,"menu_order":295,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-20113","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/20113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/comments?post=20113"}],"version-history":[{"count":2,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/20113\/revisions"}],"predecessor-version":[{"id":20122,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/20113\/revisions\/20122"}],"up":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/23377"}],"wp:attachment":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/media?parent=20113"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=20113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}