How to Check Memory Usage in Linux based Server Kā pārbaudīt Memory izmantošana Linux balstās Server

Memory is one of the most critical resource components on a server to ensure that the smooth and fast operation. Atmiņa ir viens no viskritiskākajiem resurss komponenti uz servera, lai nodrošinātu vienmērīgu un ātru darbību. Thus, the availability of adequate and abundant physical memory size is vital especially for any server, especially high load web host that are also running database server such as Oracle or MySQL, which is famous for memory intensive. Līdz ar to pieejamību, atbilstošu un bagātīgāka fiziskās atmiņas lielums ir ļoti svarīgi, jo īpaši attiecībā uz jebkuru serveri, it sevišķi augsta slodze web uzņēmēja, kas ir arī darbības datu bāzes servera, piemēram, Oracle vai MySQL, kas ir slavens ar atmiņas intensīvs. Linux, including CentOS which is popular on cPanel and Plesk web hosting server, comes with several commands and tools to check memory usage on server. Linux, ieskaitot CentOS, kas ir populārs par cPanel un plesk web hosting servera, nāk ar vairākiem komandas un līdzekļus, lai pārbaudītu atmiņas izmantošanu serveri.

free bezmaksas

free command displays amount of total, free and used physical memory (RAM) in the system, as well as shoing information on shared memory, buffers, cached memory and swap space used by the Linux kernel. bezmaksas komanda parāda summu no kopējā, brīvā un izmanto fiziskā atmiņa (RAM), sistēmā, kā arī shoing informāciju par kopējiem atmiņu, buferi, kešatmiņā atmiņā un mijmaiņas telpa, ko izmanto Linux kodolu.

Syntax of free Sintakses bezmaksas

free -[options] bezmaksas - [iespēju]

Example usage of free Piemērs izmantošanu brīvu

free -m free-m

The command will display information about physical memory in MB. Komandiera parādīs informāciju par fizisko atmiņu MB.

free -m -s 5 free-m-s 5

The command will activate continuous polling delay at 5 seconds apart, and then display memory status in megabytes on terminal. Komandiera aktivizēs nepārtraukts vēlēšanu kavēšanos 5 sekundes no otra, un pēc tam displejs atmiņas statusu megabaiti par terminālu. Any floating point number for delay can be specified. Jebkurš peldošā komata numuru kavēšanās var tikt precizēts.

free -t -m free-t-m

Same with “free -m”, but -t switch will display a line containing the totals of physical memory and swap space. Tas pats ar "free-m", bet-t slēdzis būs redzams līnija satur kopsummas fiziskā atmiņa un mijmaiņas telpu.

vmstat vmstat

vmstat reports report virtual memory statistics, which has information about processes, swap, free, buffer and cache memory, paging space, disk IO activity, traps, interrupts, context switches and CPU activity. vmstat ziņojumus ziņojums virtuālo atmiņu statistika, kas ir informācija par procesu, maiņas, bezmaksas, izlīdzinošo un cache atmiņa, peidžeru telpa, disk IO darbības, zivju krātiņiem, pārtrauc, konteksta slēdži un CPU darbību. With vmstat command, administrators can has instantaneous reports on memory usage. Ar vmstat komandas, administratori var ir momentānais ziņojumus par atmiņas izmantošanu.

Syntax of vmstat Sintaksi vmstat

vmstat -[options] [delay count] vmstat - [iespējas] [kavēšanās skaits]

Example usage of vmstat Piemērs izmantošanu vmstat

vmstat vmstat

The command will display report based on averages since last reboot. Komandiera parādīs ziņojumu, kas balstīts uz vidējo rādītāju kopš pagājušā atsāknēšana.

vmstat 5 vmstat 5

The command will pool average system resources usage level for a sampling period of 5 seconds at interval of 5 seconds, except the first result that is averages since the last reboot. Komandiera apvienos vidējais sistēmas resursu izmantošanas līmeni, paraugu ņemšanas periodu, 5 sekunžu laikā, intervālu 5 sekunžu laikā, izņemot pirmo rezultātu, kas ir vidējie rādītāji kopš pēdējās atsāknēšana.

top augša

top command displays dynamic real-time view of the running tasks managed by kernel and system information in Linux system. top komanda parāda dinamisku reālā laika ņemot vērā ekspluatācijas uzdevumu, ko pārvalda kodolu un sistēmas informācijas Linux sistēmu. The memory usage stats by top command include real-time live total, used and free physical memory and swap memory with their buffers and cached memory size respectively. Atmiņas izmantošana stats ar top komandu ietver reālā laika dzīvot kopā, ko izmanto, un bez fiziskā atmiņa un mijmaiņas atmiņā ar to buferzonas un kešatmiņā atmiņas lielumu.

Syntax and example usage of top Sintakses un piemērs izmantošanu top

top augša

Using top is simple, simply type top at command shell, and constantly update stats page will be shown. Izmantojot uz augšu ir vienkārša, vienkārši tipa top pie komandu čaumalas un pastāvīgi atjaunina stats lapā, tiks parādīts.

ps aux ps aux

ps command reports a snapshot on information of the current active processes. ps komandu ziņojumus momentuzņēmumu par informāciju par pašreizējo aktīvo procesiem. Advantage of ps command is that system admins will be able to see where the memory is used. Priekšrocība ps komanda, ir tas, ka sistēma admins varēs redzēt, kur atmiņa ir izmantoti. ps will show the percentage of memory resource that is used by each process or task running in the system. ps rādīs procentuālo atmiņas resursu, ko izmanto katrā procesa vai uzdevumu darbojoties sistēmā. With this command, top memory hogging processes can be identified. Ar šo komandu, top atmiņas hogging procesus var identificēt.

Syntax and example of ps aux Sintakses un piemērs ps aux

aux is actually already the options for ps command to see every process on the system. aux faktiski jau iespējas ps komanda redzēt ik procesu par šo sistēmu. So the typical command to type the following in the command shell: Līdz ar to tipiskie komandu rakstīt šādu komandu apvalks:

ps aux

To see only the memory resources occupied by each category of processes, such as Apache httpd, MySQL mysqld or Java, use the following command: Lai redzētu tikai atmiņas resursi, ko aizņem katras kategorijas procesiem, kā, piemēram, Apache httpd, MySQL mysqld vai Java, izmantojiet komandu:

ps aux | awk '{print $4"\t"$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr

The all mentioned ways of check memory usage should works on most Unix and Linux variant of operating systems. Par visiem minētajiem veidiem, kā pārbaudīt atmiņas izmantošana būtu darbu visvairāk Unix un Linux variantu operētājsistēmām. However, if you're running a VPS (Virtual Private Server) or VDS (Virtual Dedicated Server) or Hybrid Server, especially those powered by Virtuozzo or OpenVZ, the above commands will retrieve data from the host machine, ie the entire server the virtual environment is running on. Tomēr, ja jūs lietojat VPS (Virtual Private Server) vai KNS (Virtual Dedicated Server) vai Hybrid Server, jo īpaši tiem, kas powered by Virtuozzo vai OpenVZ, iepriekšminēto komandu būs izgūt datus no uzņēmēja mašīna, ti, visu serveri virtuālo vide darbojas. In these virtualization system, the memory usage info has to be calculated from control panel or /proc/user_beancounters file. Šādos virtualizācijas sistēmas, atmiņas izmantošana info ir jāaprēķina no vadības paneļa vai / proc / user_beancounters failu.

IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.


2 Responses to “How to Check Memory Usage in Linux based Server” 2 Atbildes uz "Kā Check Memory izmantošana Linux balstās Server"

  1. anonymous anonīms
    February 23rd, 2009 21:50 Februāris 23, 2009 21:50
    2 2

    annoying javascript! kaitinošas javascript!
    pgup moves you to bottom of page. pgup pārceļas jums apakšā lapā. can't navigate nevar kuģot

  2. Artem S. Tashkinov Artem S. Tashkinov
    September 24th, 2007 15:20 Septembris 24, 2007 15:20
    1 1

    When you are running top there are three fields related to memory usage. Ja jūs izmantojat top ir trīs jomās, kas saistītas ar atmiņas izmantošanu. In order to assay your server memory requirements you have to understand their meaning. Lai raudzi jūsu servera atmiņas prasības Jums izprast to nozīmi.

    The first thing you have to know is that all the columns (VIRT RES SHR) report memory usage in KB (kilobytes). Pirmā lieta, jums ir jāzina, ir tas, ka visi kolonnas (Virt RES SHR) ziņo atmiņas izmantošana KB (kilobaiti).

    VIRT column (virtual memory size of the process) means how much memory a particular application has requested, also it counts swapped to the disk memory pages. Virt sleja (virtuālais atmiņas lielums, kā arī procesa) ir, cik daudz atmiņas konkrētam pieteikumam ir pieprasīta, kā arī to skaits mijmaina uz diska atmiņas lapās. But this field does NOT mean that this process actually uses that amount of memory, to use it for real this memory has to be initiated for example using memset. Taču šajā jomā, nenozīmē, ka šis process faktiski izmanto, ka summa, atmiņa, lai to izmantotu reālā šī atmiņa ir jāuzsāk, piemēram, izmantojot memset. Generally speaking you can disregard this column. Kopumā jūs varat neņemt vērā šo kolonnu.

    RES column (resident set size, the non-swapped physical memory that a task has used (in kiloBytes)) is the most important one – it actually shows how much physical RAM is allocated for a process. RES sleja (rezidents noteikts izmērs, kas nav mijmaina fiziskā atmiņa, ka uzdevums ir izmantojis (in kilobaitus)) ir vissvarīgākā - tas tiešām liecina, cik daudz fizisku RAM ir piešķirts process.

    SHR column says how much memory a particular application is sharing with other applications. SHR sleja saka, cik daudz atmiņas īpašu pieteikumu koplietošanu ar citiem pieteikumiem. Eg, most applications in Linux depend on libc, and as every application links with it and uses its functions then this library memory space is mapped to all process simultaneously to conserve memory. Piemēram, lielākā daļa pieteikumu Linux ir atkarīgs no libc, un katru pieteikumu saiknes ar to un izmanto savu funkciju, tad šī bibliotēka atmiņas telpa ir plānots visu process vienlaicīgi, lai saglabātu atmiņā.

    Consult with this pages for better understanding: Konsultējieties ar šo lapu, lai labāk izprast:

    1. 1. http://tldp.org/LDP/tlk/mm/memory.html http://tldp.org/LDP/tlk/mm/memory.html
    2. 2. http://www.ibm.com/developerworks/linux/library/l-mem26/ http://www.ibm.com/developerworks/linux/library/l-mem26/

Leave a Reply Atstāj atbildi

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Jūs varat izmantot šos tagus: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Parakstīties uz komentāriem iezīme ir atspējota. To receive notification of latest comments posted, subscribe to Lai saņemtu paziņojumu par jaunāko komentāri norīkots darbā, abonēt My Digital Life Comments RSS feed Mani Digital Life Comments RSS feed or vai register to receive reģistrēties, lai saņemtu new comments in daily email digest. jauni komentāri ikdienas e-pasta sagremot.
Custom Search

New Articles Jauns pants

Incoming Search Terms for the Article Incoming Meklēt Noteikumi par pants

linux memory usage Linux atmiņas izmantošana - -- linux memory stats Linux atmiņas stats - -- CentOS memory usage CentOS atmiņas izmantošana - -- linux show memory Linux parādīt atmiņas - -- linux memory size Linux atmiņas lielums - -- Linux memory status Linux atmiņas statusu - -- linux top memory Linux top atmiņa - -- ubuntu show memory Ubuntu parādīt atmiņas - -- linux check memory usage Linux pārbaudīt atmiņas izmantošana - -- linux check resources Linux pārbaudīt resursu - -- ubuntu show memory usage Ubuntu parādīt atmiņas izmantošana - -- ubuntu check memory Ubuntu pārbaudīt atmiņas - -- linux check memory Linux pārbaudīt atmiņas - -- memory usage linux atmiņas izmantošana Linux - -- linux memory usage report Linux atmiņas izmantošana ziņojums - -- ubuntu check memory usage Ubuntu pārbaudīt atmiņas izmantošana - -- linux check memory status Linux pārbaudīt atmiņas statusu - -- show memory linux parādīt atmiņa Linux - -- checking memory usage on linux pārbaudīt atmiņas izmantošanu Linux - -- top command memory usage top komandu atmiņas izmantošana - -- how to check memory in linux kā pārbaudīt atmiņu Linux - -- linux real memory usage Linux reālā atmiņa izmantošana - -- plesk memory usage plesk atmiņas izmantošana - -- linux show swap usage Linux parādīt mijmaiņas izmantošana - -- unix memory usage Unix atmiņas izmantošana - -- ubuntu server memory usage Ubuntu servera atmiņas izmantošana - -- linux check processes Linux pārbaudīt procesu - -- linux physical memory usage Linux fiziskā atmiņa izmantošana - -- linux memory statistics Linux atmiņas statistika - -- unix memory status Unix atmiņas statusu - -- how to check memory status in linux kā pārbaudīt atmiņas statusu Linux - -- Linux ps show memory Linux ps parādīt atmiņas - -- linux check resource usage Linux pārbaudīt resursu izmantošana - -- linux show physical memory Linux parādīt fiziskā atmiņa - -- check memory usage ubuntu pārbaudīt atmiņas izmantošana Ubuntu - -- linux check process Linux pārbaudīt process - -- check memory usage linux pārbaudīt atmiņas izmantošana Linux - -- ps show memory usage ps parādīt atmiņas izmantošana - -- linux memory stat Linux atmiņas stat - -- check memory status in linux pārbaudīt atmiņas statusu Linux - -- checking memory in unix pārbaudīt atmiņu Unix - -- top memory linux top atmiņa Linux - -- ps show memory ps parādīt atmiņas - -- linux top memory Linux top atmiņa - -- show physical memory linux parādīt fiziskā atmiņa Linux - -- show memory in linux parādīt atmiņu Linux - -- checking memory in linux pārbaudīt atmiņu Linux - -- Linux ps memory size Linux ps atmiņas lielums - -- all viss - -- unix ps show memory usage Unix ps parādīt atmiņas izmantošana - -- linux check memory process Linux pārbaudīt atmiņas process - -- ps display memory usage ps displejs atmiņas izmantošana - -- show memory usage ubuntu parādīt atmiņas izmantošana Ubuntu - -- top virt column top Virt sleja - -- linux application memory usage Linux pieteikumu atmiņas izmantošana - -- linux memory info Linux atmiņas info - -- check memory on linux pārbaudīt atmiņas par Linux - -- linux display memory size Linux displejs atmiņas lielums - -- linux check memory size Linux pārbaudīt atmiņas lielums - -- linux top virt Linux top Virt - -- linux show memory status Linux parādīt atmiņas statusu - -- show memory usage linux parādīt atmiņas izmantošana Linux - -- linux show memory size Linux parādīt atmiņas lielums - -- check memory linux pārbaudīt atmiņas Linux - -- linux+check process+memory Linux + pārbaudīt process + atmiņas - -- linux show memory usage Linux parādīt atmiņas izmantošana - -- top command virt top komandu Virt - -- check memory in linux pārbaudīt atmiņu Linux - -- linux memory report Linux atmiņas ziņojums - -- linux ps memory usage Linux ps atmiņas izmantošana - -- ubuntu check ram size Ubuntu pārbaudīt ram izmērs - -- checking the amount of memory on a Linux server pārbaudot summa atmiņas par Linux serveri - -- linux command to check memory status Linux komandu, lai pārbaudītu atmiņas statusu - -- check ram on linux pārbaudīt ram par Linux - -- linux report memory usage Linux ziņojums atmiņas izmantošana - --