{"id":1040,"date":"2021-05-06T13:15:06","date_gmt":"2021-05-06T13:15:06","guid":{"rendered":"https:\/\/dev.sourcecode.sk\/wsczkb\/?post_type=ht_kb&p=1040"},"modified":"2021-06-24T10:56:48","modified_gmt":"2021-06-24T08:56:48","slug":"monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free","status":"publish","type":"ht_kb","link":"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/","title":{"rendered":"Monitorov\u00e1n\u00ed prost\u0159edk\u016f virtu\u00e1ln\u00edho serveru pomoc\u00ed TOP a FREE"},"content":{"rendered":"\n

Na sledov\u00e1n\u00ed celkov\u00e9ho stavu virtu\u00e1ln\u00edho\u00a0serveru\u00a0je vhodn\u00fd\u00a0p\u0159\u00edkaz top<\/strong>.\u00a0Po spu\u0161t\u011bn\u00ed top uvid\u00edte na prvn\u00ed pohled pom\u011brn\u011b mnoho \u00fadaj\u016f.<\/p>\n\n\n\n

Pom\u016f\u017eeme V\u00e1m zorientovat se:<\/p>\n\n\n\n


\n\n\n\n

Top\u00a0se\u0159azuje procesy podle sloupce, mezi sloupci p\u0159ep\u00edn\u00e1te znaky < a > .\u00a0 Stla\u010den\u00edm Enter z\u00edsk\u00e1te aktu\u00e1ln\u00ed stav.\u00a0 Cpu(s): 3.3%us, 2.8%sy, 0.0%ni, 93.7% id, 0.0%wa, 0.0%hi, 0.0%si, 0.2%st Mem: 1110024k total, 755596k used, 354428k free, 64k buffers Swap: 996024k total, 87416k used, 908608k free, 347108k cached\u00a0<\/p>\n\n\n\n

Mem :<\/strong>\u00a0poskytuje rozpis vyu\u017eit\u00ed pam\u011bti.\u00a0\u00a0<\/p>\n\n\n\n

Cpu :<\/strong>\u00a0vyjad\u0159uje celkov\u00e9 vyt\u00ed\u017een\u00ed v\u0161ech CPU – pokud jsou vyt\u00ed\u017een\u00e9 naplno 2 CPU, je celkov\u00e9 maxim\u00e1ln\u00ed vyt\u00ed\u017een\u00ed 200%, p\u0159i 4 vyt\u00ed\u017een\u00fdch CPU je to 400%, a podobn\u011b.\u00a0 U\u00a0cpu<\/strong>\u00a0se z\u00e1t\u011b\u017e zobrazuje jako % \u010dasu, kter\u00e9 procesor str\u00e1vil od posledn\u00edho obnoven\u00ed statistik v jednom z n\u00e1sleduj\u00edc\u00edch stav\u016f\/\u010dinnost\u00ed: <\/p>\n\n\n\n

id – idle –\u00a0nevykon\u00e1v\u00e1 \u017e\u00e1dnou \u010dinnost <\/p>\n\n\n\n

us – procesy u\u017e\u00edvatel\u016f <\/p>\n\n\n\n

sy – intern\u00ed vol\u00e1n\u00ed syst\u00e9mu, nap\u0159. i spr\u00e1va pam\u011bti, <\/p>\n\n\n\n

wa – io wait,\u00a0procesor \u010dek\u00e1 na vstup z IO (nej\u010dast\u011bji disk).\u00a0 <\/p>\n\n\n\n

Tento v\u00fdstup V\u00e1s m\u016f\u017ee lehko nav\u00e9st k p\u0159\u00ed\u010din\u00e1m p\u0159\u00edpadn\u00fdch t\u011b\u017ekost\u00ed. Nap\u0159\u00edklad kdy\u017e vid\u00edme, \u017ee je hodnota\u00a0wa<\/strong>\u00a0del\u0161\u00ed dobu p\u0159\u00edli\u0161 vysok\u00e1, je vhodn\u00e9 prov\u011b\u0159it, \u010di skript nevyu\u017e\u00edv\u00e1 nevhodn\u00e9 ukl\u00e1d\u00e1n\u00ed na disk (nap\u0159. prohled\u00e1v\u00e1n\u00edm 1gb slo\u017eky s cache soubory).\u00a0\u00a0<\/p>\n\n\n\n

Sloupec Mem:<\/strong>\u00a0 je podobn\u00fd v\u00fdstupu p\u0159\u00edkazu free\u00a0-m total used free shared buffers cached Mem: 1006708 935872 70836 0 148244 346656 Swap: 262140 130084 132056<\/p>\n\n\n\n

av\u0161ak free -m m\u00e1 nav\u00edc \u0159\u00e1dek, kter\u00fd vysv\u011btluje tento z\u00e1pis, kter\u00fd na prvn\u00ed pohled \u0159\u00edk\u00e1, \u017ee server m\u00e1 70mb voln\u00e9 pam\u011bti.\u00a0 total used free shared buffers cached Mem: 1006708 935872 70836 0 148244 346656 -\/+ buffers\/cache: 440972 565736 <\/p>\n\n\n\n

Ve skute\u010dnosti v p\u0159\u00edpad\u011b pot\u0159eby m\u00e1 server k dispozici v\u00edce ne\u017e 500mb pam\u011bti, ale v\u011bt\u0161inu z n\u00ed vyu\u017e\u00edv\u00e1 na urychlen\u00ed sv\u00e9ho b\u011bhu.\u00a0 Kdy\u017e m\u00e1 Linux dostatek voln\u00e9 pam\u011bti, nenech\u00e1 ji le\u017eet ne\u010dinn\u011b, ale na\u010d\u00edt\u00e1 do n\u00ed nej\u010dast\u011bji pou\u017e\u00edvan\u00e9 \u00fadaje – tomuto odpov\u00edd\u00e1 sloupec cached\u00a0.\u00a0T\u00edm p\u00e1dem mno\u017estv\u00ed RAM m\u016f\u017ee v\u00fdrazn\u011b zv\u00fd\u0161it v\u00fdkon i na diskov\u00fdch operac\u00edch, pokud se poda\u0159\u00ed v\u0161echny \u010dasto na\u010d\u00edtan\u00e9 \u010d\u00e1sti ulo\u017eit do cache.\u00a0<\/p>\n\n\n\n

Buffer je do\u010dasn\u00e9 \u00falo\u017ei\u0161t\u011b pro data, kter\u00e1 se jinde zapisuj\u00ed \u010di pos\u00edlaj\u00ed ni\u017e\u0161\u00ed rychlost\u00ed, ne\u017e jsou p\u0159ipraven\u00e1. Takto se udr\u017euje stabiln\u00ed rychlost v\u00fdstupu a z\u00e1rove\u0148 se t\u00edm umo\u017e\u0148uje zabr\u00e1nit tomu, aby na sebe procesy \u010dekaly, dokud se dokon\u010d\u00ed p\u0159enos. (nap\u0159. php skript generuje data, kter\u00e1 rovnou exportuje do souboru. Data se generuj\u00ed nepom\u011brn\u011b rychleji, ne\u017e se dokon\u010d\u00ed z\u00e1pis na disk, ale php proces m\u016f\u017ee dokon\u010dit svoji pr\u00e1ci je\u0161t\u011b p\u0159ed zaps\u00e1n\u00edm.\u00a0 Pro detailn\u011bj\u0161\u00ed rozpis nav\u0161tivte\u00a0tento port\u00e1l<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

Na sledov\u00e1n\u00ed celkov\u00e9ho stavu virtu\u00e1ln\u00edho\u00a0serveru\u00a0je vhodn\u00fd\u00a0p\u0159\u00edkaz top.\u00a0Po spu\u0161t\u011bn\u00ed top uvid\u00edte na prvn\u00ed pohled pom\u011brn\u011b mnoho \u00fadaj\u016f. Pom\u016f\u017eeme V\u00e1m zorientovat se: Top\u00a0se\u0159azuje procesy podle sloupce, mezi sloupci p\u0159ep\u00edn\u00e1te znaky < a > .\u00a0 Stla\u010den\u00edm Enter z\u00edsk\u00e1te aktu\u00e1ln\u00ed stav.\u00a0 Cpu(s): 3.3%us, 2.8%sy, 0.0%ni, 93.7% id, 0.0%wa, 0.0%hi, 0.0%si, 0.2%st Mem: 1110024k total,…<\/p>\n","protected":false},"author":3,"template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[48],"ht-kb-tag":[],"class_list":["post-1040","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-vps"],"yoast_head":"\nMonitorov\u00e1n\u00ed prost\u0159edk\u016f virtu\u00e1ln\u00edho serveru pomoc\u00ed TOP a FREE - Websupport Centrum n\u00e1pov\u011bdy<\/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.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Monitorov\u00e1n\u00ed prost\u0159edk\u016f virtu\u00e1ln\u00edho serveru pomoc\u00ed TOP a FREE - Websupport Centrum n\u00e1pov\u011bdy\" \/>\n<meta property=\"og:description\" content=\"Na sledov\u00e1n\u00ed celkov\u00e9ho stavu virtu\u00e1ln\u00edho\u00a0serveru\u00a0je vhodn\u00fd\u00a0p\u0159\u00edkaz top.\u00a0Po spu\u0161t\u011bn\u00ed top uvid\u00edte na prvn\u00ed pohled pom\u011brn\u011b mnoho \u00fadaj\u016f. Pom\u016f\u017eeme V\u00e1m zorientovat se: Top\u00a0se\u0159azuje procesy podle sloupce, mezi sloupci p\u0159ep\u00edn\u00e1te znaky < a > .\u00a0 Stla\u010den\u00edm Enter z\u00edsk\u00e1te aktu\u00e1ln\u00ed stav.\u00a0 Cpu(s): 3.3%us, 2.8%sy, 0.0%ni, 93.7% id, 0.0%wa, 0.0%hi, 0.0%si, 0.2%st Mem: 1110024k total,...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/\" \/>\n<meta property=\"og:site_name\" content=\"Websupport Centrum n\u00e1pov\u011bdy\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-24T08:56:48+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Odhadovan\u00e1 doba \u010dten\u00ed\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/\",\"url\":\"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/\",\"name\":\"Monitorov\u00e1n\u00ed prost\u0159edk\u016f virtu\u00e1ln\u00edho serveru pomoc\u00ed TOP a FREE - Websupport Centrum n\u00e1pov\u011bdy\",\"isPartOf\":{\"@id\":\"https:\/\/www.websupport.cz\/podpora\/#website\"},\"datePublished\":\"2021-05-06T13:15:06+00:00\",\"dateModified\":\"2021-06-24T08:56:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/#breadcrumb\"},\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.websupport.cz\/podpora\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Monitorov\u00e1n\u00ed prost\u0159edk\u016f virtu\u00e1ln\u00edho serveru pomoc\u00ed TOP a FREE\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.websupport.cz\/podpora\/#website\",\"url\":\"https:\/\/www.websupport.cz\/podpora\/\",\"name\":\"Websupport Centrum n\u00e1pov\u011bdy\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.websupport.cz\/podpora\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"cs\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Monitorov\u00e1n\u00ed prost\u0159edk\u016f virtu\u00e1ln\u00edho serveru pomoc\u00ed TOP a FREE - Websupport Centrum n\u00e1pov\u011bdy","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.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/","og_locale":"cs_CZ","og_type":"article","og_title":"Monitorov\u00e1n\u00ed prost\u0159edk\u016f virtu\u00e1ln\u00edho serveru pomoc\u00ed TOP a FREE - Websupport Centrum n\u00e1pov\u011bdy","og_description":"Na sledov\u00e1n\u00ed celkov\u00e9ho stavu virtu\u00e1ln\u00edho\u00a0serveru\u00a0je vhodn\u00fd\u00a0p\u0159\u00edkaz top.\u00a0Po spu\u0161t\u011bn\u00ed top uvid\u00edte na prvn\u00ed pohled pom\u011brn\u011b mnoho \u00fadaj\u016f. Pom\u016f\u017eeme V\u00e1m zorientovat se: Top\u00a0se\u0159azuje procesy podle sloupce, mezi sloupci p\u0159ep\u00edn\u00e1te znaky < a > .\u00a0 Stla\u010den\u00edm Enter z\u00edsk\u00e1te aktu\u00e1ln\u00ed stav.\u00a0 Cpu(s): 3.3%us, 2.8%sy, 0.0%ni, 93.7% id, 0.0%wa, 0.0%hi, 0.0%si, 0.2%st Mem: 1110024k total,...","og_url":"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/","og_site_name":"Websupport Centrum n\u00e1pov\u011bdy","article_modified_time":"2021-06-24T08:56:48+00:00","twitter_card":"summary_large_image","twitter_misc":{"Odhadovan\u00e1 doba \u010dten\u00ed":"3 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/","url":"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/","name":"Monitorov\u00e1n\u00ed prost\u0159edk\u016f virtu\u00e1ln\u00edho serveru pomoc\u00ed TOP a FREE - Websupport Centrum n\u00e1pov\u011bdy","isPartOf":{"@id":"https:\/\/www.websupport.cz\/podpora\/#website"},"datePublished":"2021-05-06T13:15:06+00:00","dateModified":"2021-06-24T08:56:48+00:00","breadcrumb":{"@id":"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/#breadcrumb"},"inLanguage":"cs","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.websupport.cz\/podpora\/kb\/monitorovani-prostredku-virtualniho-serveru-pomoci-top-a-free\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.websupport.cz\/podpora\/"},{"@type":"ListItem","position":2,"name":"Monitorov\u00e1n\u00ed prost\u0159edk\u016f virtu\u00e1ln\u00edho serveru pomoc\u00ed TOP a FREE"}]},{"@type":"WebSite","@id":"https:\/\/www.websupport.cz\/podpora\/#website","url":"https:\/\/www.websupport.cz\/podpora\/","name":"Websupport Centrum n\u00e1pov\u011bdy","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.websupport.cz\/podpora\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"cs"}]}},"_links":{"self":[{"href":"https:\/\/www.websupport.cz\/podpora\/wp-json\/wp\/v2\/ht-kb\/1040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.websupport.cz\/podpora\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.websupport.cz\/podpora\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.websupport.cz\/podpora\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":1,"href":"https:\/\/www.websupport.cz\/podpora\/wp-json\/wp\/v2\/ht-kb\/1040\/revisions"}],"predecessor-version":[{"id":1818,"href":"https:\/\/www.websupport.cz\/podpora\/wp-json\/wp\/v2\/ht-kb\/1040\/revisions\/1818"}],"wp:attachment":[{"href":"https:\/\/www.websupport.cz\/podpora\/wp-json\/wp\/v2\/media?parent=1040"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.websupport.cz\/podpora\/wp-json\/wp\/v2\/ht-kb-category?post=1040"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.websupport.cz\/podpora\/wp-json\/wp\/v2\/ht-kb-tag?post=1040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}