{"id":897,"date":"2011-02-04T21:09:01","date_gmt":"2011-02-04T20:09:01","guid":{"rendered":"http:\/\/blog.unelink.es\/?p=897"},"modified":"2019-05-16T10:49:46","modified_gmt":"2019-05-16T08:49:46","slug":"ver-memoria-ram-ocupada-en-nuestro-servidor","status":"publish","type":"post","link":"https:\/\/hosting.airetech.es\/blog\/wiki\/ver-memoria-ram-ocupada-en-nuestro-servidor\/","title":{"rendered":"Ver memoria RAM ocupada en nuestro servidor"},"content":{"rendered":"<p>Para comprobar a trav\u00e9s de nuestro terminal o por ssh en un<strong> <a href=\"https:\/\/www.unelink.es\/servidores-dedicados-32.html\" target=\"_blank\" rel=\"noopener noreferrer\">servidor dedicado<\/a><\/strong> o <a href=\"https:\/\/www.unelink.es\/servidores-virtuales-33.html\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>servidor virtual<\/strong><\/a> utilizaremos el comando <strong>free<\/strong>. Este comando devolver\u00e1 la memoria <strong>RAM<\/strong> total, usada y libre y lo mismo con la memoria<strong> SWAP<\/strong>. Un ejemplo:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-898\" title=\"free1\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/free1.png\" alt=\"\" width=\"652\" height=\"90\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/free1.png 601w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/free1-300x41.png 300w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/p>\n<p>Como veis en la imagen anterior nos ha mostrado los totales representado en bytes, as\u00ed es como viene por defecto. Para mostrarlas en megabytes o gigabytes deberemos utilizar los parametros -m y -g respectivamente.<\/p>\n<pre>free -m (Para mostrar unidades en mb)\r\nfree -g (Para mostrar unidades en gb)<\/pre>\n<p><a href=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/free2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-899\" title=\"free2\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/free2.png\" alt=\"\" width=\"652\" height=\"90\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/free2.png 601w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/free2-300x41.png 300w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/a><\/p>\n<p>Si queremos mostrar la suma de memoria RAM y de SWAP utilizaremos el parametro \"-t\":<\/p>\n<pre>free -m -t<\/pre>\n<p><a href=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/free3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-900\" title=\"free3\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/free3.png\" alt=\"\" width=\"650\" height=\"109\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/free3.png 602w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/free3-300x50.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/a><\/p>\n<p>Tambi\u00e9n se puede consultar el archivo <strong>\/proc\/meminfo <\/strong>que contiene la misma informaci\u00f3n que el comando citado anteriormente.<\/p>\n<p>Manual de free: <a href=\"https:\/\/linux.die.net\/man\/1\/free\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/linux.die.net\/man\/1\/free<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Para comprobar a trav\u00e9s de nuestro terminal o por ssh en un servidor dedicado o servidor virtual utilizaremos el comando free. Este comando devolver\u00e1 la memoria RAM total, usada y libre y lo mismo con la memoria SWAP. Un ejemplo: Como veis en la imagen anterior nos ha mostrado los totales representado en bytes, as\u00ed es como viene por defecto.&nbsp;<a href=\"https:\/\/hosting.airetech.es\/blog\/wiki\/ver-memoria-ram-ocupada-en-nuestro-servidor\/\" class=\"read-more\">Seguir leyendo<\/a>","protected":false},"author":1,"featured_media":898,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10,349,6],"tags":[90],"class_list":["post-897","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-ssh","category-wiki","tag-memoria-ram-disponible","cat-10-id","cat-349-id","cat-6-id"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/comments?post=897"}],"version-history":[{"count":9,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/897\/revisions"}],"predecessor-version":[{"id":8415,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/897\/revisions\/8415"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media\/898"}],"wp:attachment":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media?parent=897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/categories?post=897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/tags?post=897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}