How to Check Memory Usage in Linux based Server Wie Sie Speicherauslastung in Linux-basierten Server

Memory is one of the most critical resource components on a server to ensure that the smooth and fast operation. Der Speicher ist eine der wichtigsten Ressourcen-Komponenten auf einem Server, um sicherzustellen, dass die reibungslose und schnelle Bedienung. 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. Somit ist die Verfügbarkeit angemessener und reichlich körperlicher Speichergröße ist von entscheidender Bedeutung insbesondere für alle Server, besonders hohe Belastung Webhoster, die auch mit Datenbank-Server wie Oracle oder MySQL, das ist berühmt für Speicher intensiv. 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, einschließlich CentOS ist die am häufigsten cPanel und Plesk Web-Hosting-Server, kommt mit mehreren Kommandos und Werkzeuge zur Überprüfung Speicherverbrauch auf dem Server.

free frei

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. kostenlos Befehl zeigt Höhe von insgesamt freien und belegten physikalischen Speicher (RAM) im System sowie shoing Informationen über Shared-Memory-, Puffer, im Cache-Speicher und Swap-Speicherplatz von den Linux-Kernel.

Syntax of free Syntax kostenlos

free -[options] kostenlos - [Optionen]

Example usage of free Beispiel zur Nutzung von kostenlos

free -m free-m

The command will display information about physical memory in MB. Der Befehl zeigt Informationen über physikalische Speicher in 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. Der Befehl aktiviert kontinuierlichen Polling Verzögerung in 5 Sekunden auseinander, und zeigt dann Speicher-Status in Megabyte auf Terminal. Any floating point number for delay can be specified. Jede Fließkomma-Zahl für die Verzögerung angegeben werden.

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. Dasselbe gilt für "free-m", sondern t-Schalter wird eine Zeile mit den Summen der physischen Speicher und Swap Space.

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 Berichte Bericht des virtuellen Speichers Statistiken, die Informationen über Prozesse, Wechselbehälter, befreit, Puffer und Cache-Speicher, virtueller Speicher, Festplatten-IO-Aktivität, Fallen, Interrupts, Kontext-Switches und CPU-Aktivität. With vmstat command, administrators can has instantaneous reports on memory usage. Mit vmstat Kommando können Administratoren hat Berichte über die momentane Speicherbelegung.

Syntax of vmstat Syntax von vmstat

vmstat -[options] [delay count] vmstat - [Optionen] [Verzögerung Count]

Example usage of vmstat Beispiel zur Nutzung von vmstat

vmstat

The command will display report based on averages since last reboot. Der Befehl wird angezeigt Bericht stützt sich auf Durchschnittswerte seit dem letzten Neustart.

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. Der Befehl wird durchschnittlich Pool System-Ressourcen-Nutzung für einen Zeitraum von Messstellen, 5 Sekunden in Intervallen von 5 Sekunden, mit Ausnahme der ersten Folge ist, dass die Durchschnittswerte seit dem letzten Neustart.

top Spitze

top command displays dynamic real-time view of the running tasks managed by kernel and system information in Linux system. Top-Befehl zeigt dynamische Echtzeit-Sicht auf die laufenden Aufgaben verwaltet von Kernel und System-Informationen in Linux-System. 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. Der Speicherverbrauch stats Befehl von oben unter anderem Echtzeit-leben insgesamt, benutzt und kostenlos physikalischen Speicher und Swap-Speicher mit ihren Puffer zwischengespeichert und Speichergröße.

Syntax and example usage of top Syntax und Beispiel zur Nutzung von oben

top Spitze

Using top is simple, simply type top at command shell, and constantly update stats page will be shown. Verwenden von oben ist einfach, geben Sie einfach oben auf Befehl der Schale, und ständig aktualisiert stats Seite wird angezeigt.

ps aux ps aux

ps command reports a snapshot on information of the current active processes. ps Kommando meldet einen Schnappschuss auf Informationen über die derzeit aktiven Prozesse. Advantage of ps command is that system admins will be able to see where the memory is used. Vorteil von ps-Kommando besteht darin, dass System-Administratoren können sehen, wo der Speicher verwendet wird. ps will show the percentage of memory resource that is used by each process or task running in the system. ps zeigt den prozentualen Anteil der Speicher-Ressource, die verwendet wird, von jedem Prozess oder die Aufgabe läuft im System. With this command, top memory hogging processes can be identified. Mit diesem Befehl top Speicher hogging Prozesse identifiziert werden können.

Syntax and example of ps aux Syntax und Beispiel für ps aux

aux is actually already the options for ps command to see every process on the system. aux ist eigentlich schon die Optionen für den Befehl ps, um zu sehen, jeder Prozess auf dem System. So the typical command to type the following in the command shell: Also die typischen Befehl zu geben Sie den folgenden Befehl in die Shell:

ps aux 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: Um zu sehen, nur die Speicherressourcen besetzt von den einzelnen Kategorien von Prozessen, wie Apache httpd, mysqld MySQL oder Java, verwenden Sie den folgenden Befehl ein:

ps aux | awk '{print $4"\t"$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr 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. Die allen genannten Formen der Überprüfung Speicherverbrauch sollte funktioniert auf den meisten Unix-und Linux-Variante von Betriebssystemen. 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. Allerdings, wenn Sie bei Verwendung einer VPS (Virtual Private Server) oder VDS (Virtual Dedicated Server) oder Hybrid-Server, insbesondere derjenigen, powered by Virtuozzo oder OpenVZ, die oben genannten Befehle empfängt Daten aus der Host-Maschine, dh den gesamten Server die virtuelle Umgebung ausgeführt wird. In these virtualization system, the memory usage info has to be calculated from control panel or /proc/user_beancounters file. In diesen Virtualisierungs-System, die Speichernutzung Infos zu berechnen aus der Systemsteuerung oder / proc / user_beancounters Datei.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. WICHTIG: Es handelt sich um eine Maschine der Seite übersetzt wird "as is" ohne Garantie. Machine translation may be difficult to understand. Maschinelle Übersetzung ist vielleicht schwierig zu verstehen. Please refer to Bitte wenden Sie sich an original English article Original Englisch Artikel whenever possible. wann immer dies möglich ist.

Share and contribute or get technical support and help at Aktie und einen Beitrag oder erhalten technische Unterstützung und Hilfe an My Digital Life Forums Meine digitalen Lebens Foren .



One Response to “How to Check Memory Usage in Linux based Server” One Response to "Wie Sie Speicherauslastung in Linux-basierten Server"

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

    When you are running top there are three fields related to memory usage. Wenn Sie mit nach oben gibt es drei Felder im Zusammenhang mit Speicherverbrauch. In order to assay your server memory requirements you have to understand their meaning. Um Ihren Test-Server-Speicher Anforderungen Sie haben um ihre Bedeutung zu verstehen.

    The first thing you have to know is that all the columns (VIRT RES SHR) report memory usage in KB (kilobytes). Das erste, was Sie wissen müssen ist, dass alle Spalten (VIRT RES SHR) Bericht Speicherverbrauch in KB (Kilobyte).

    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-Spalte (Größe des virtuellen Speichers des Prozesses) bedeutet, wie viel Speicherplatz eine bestimmte Anwendung hat beantragt, sie zählt auch vertauscht auf die Festplatte, auf Seiten-Speicher. 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. Aber diesem Bereich bedeutet nicht, dass dieser Prozess tatsächlich nutzt diesen Betrag der Erinnerung zu sein, dass sie für diese reale Speicher muss begonnen werden, zum Beispiel mit memset. Generally speaking you can disregard this column. Im Allgemeinen können Sie Missachtung dieser Spalte.

    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 Spalte (Wohnsitz festgelegte Größe besitzt, die nicht vertauscht physischen Speicher, eine Aufgabe verwendet hat (in Kilobyte)) ist das wichtigste - es zeigt eigentlich, wie viel physischer Arbeitsspeicher ist für einen Prozess.

    SHR column says how much memory a particular application is sharing with other applications. SHR Spalte sagt, wie viel Speicherplatz eine bestimmte Anwendung ist Sharing mit anderen Anwendungen. 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. ZB sind die meisten Anwendungen unter Linux hängt davon ab, libc, und wie jede Anwendung Verbindungen mit ihm und seiner Funktionen nutzt dann diese Bibliothek Speicherplatz zugeordnet alle Prozess gleichzeitig zur Erhaltung der Erinnerung.

    Consult with this pages for better understanding: Consult mit diesen Seiten für ein besseres Verständnis:

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

Leave a Reply Leave a Reply

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> Sie können diese Tags: <a href= title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Abonnieren ohne zu kommentieren


Custom Search

New Articles Neue Artikel

Incoming Search Terms for the Article Eingehender Suchbegriffe für den Artikel

linux memory usage Linux Speicherverbrauch - -- linux memory stats Linux-Speicher stats - -- CentOS memory usage CentOS Speicherverbrauch - -- linux show memory Linux zeigen Speicher - -- linux memory size Linux Speichergröße - -- Linux memory status Linux-Speicher-Status - -- linux top memory Linux-Top-Speicher - -- ubuntu show memory Ubuntu zeigen Speicher - -- linux check memory usage Linux überprüfen Speicherverbrauch - -- linux check resources Linux-Ressourcen überprüfen - -- ubuntu show memory usage Ubuntu zeigen Speicherverbrauch - -- ubuntu check memory Ubuntu Check-Speicher - -- linux check memory Linux Check-Speicher - -- memory usage linux Speicherverbrauch Linux - -- linux memory usage report Linux Speicherverbrauch Bericht - -- ubuntu check memory usage Ubuntu Check Speicherverbrauch - -- linux check memory status Linux überprüfen Sie den Speicherstatus - -- show memory linux Speicher zeigen, Linux - -- checking memory usage on linux Kontrolle Speicherverbrauch auf Linux - -- top command memory usage Top-Befehl Speicherverbrauch - -- how to check memory in linux zu prüfen, wie Speicher in linux - -- linux real memory usage Linux realen Speicherverbrauch - -- plesk memory usage Plesk Speicherverbrauch - -- linux show swap usage Linux Swap-Nutzung zeigen - -- unix memory usage Unix Speicherverbrauch - -- ubuntu server memory usage Ubuntu-Server Speicherverbrauch - -- linux check processes Linux-Prozesse überprüfen - -- linux physical memory usage Linux physischen Speichers - -- linux memory statistics Linux-Speicher-Statistiken - -- unix memory status Unix-Speicher-Status - -- how to check memory status in linux zu prüfen, wie Speicher-Status in linux - -- Linux ps show memory Linux-PS-Show Speicher - -- linux check resource usage Linux überprüfen die Verwendung von Ressourcen - -- linux show physical memory Linux zeigen physikalischen Speicher - -- check memory usage ubuntu Check Speicherverbrauch Ubuntu - -- linux check process Linux-Prozess prüfen - -- check memory usage linux Check Speicherverbrauch Linux - -- ps show memory usage PS-Show Speicherverbrauch - -- linux memory stat Linux-Speicher stat - -- check memory status in linux überprüfen Sie den Speicherstatus unter Linux - -- checking memory in unix Kontrolle der Speicher in Unix - -- top memory linux Top-Speicher Linux - -- ps show memory PS-Show Speicher - -- linux top memory Linux-Top-Speicher - -- show physical memory linux zeigen physikalischen Speicher Linux - -- show memory in linux zeigen, Speicher unter Linux - -- checking memory in linux Kontrolle der Speicher in Linux - -- Linux ps memory size Linux PS Speichergröße - -- all alle - -- unix ps show memory usage Unix-PS-Show Speicherverbrauch - -- linux check memory process Linux Check-Speicher-Prozess - -- ps display memory usage PS-Anzeige Speicherverbrauch - -- show memory usage ubuntu zeigen Speicherverbrauch Ubuntu - -- top virt column Anfang der virt Spalte - -- linux application memory usage Linux Anwendung Speicherverbrauch - -- linux memory info Linux-Info-Speicher - -- check memory on linux Check-Speicher auf Linux - -- linux display memory size Linux Display Speichergröße - -- linux check memory size Linux überprüfen Speichergröße - -- linux top virt Linux top virt - -- linux show memory status Linux zeigen, Speicher-Status - -- show memory usage linux Speicherauslastung anzeigen Linux - -- linux show memory size Linux zeigen Speichergröße - -- check memory linux Check-Speicher Linux - -- linux+check process+memory Linux + + Check-Prozess-Speicher - -- linux show memory usage Linux zeigen Speicherverbrauch - -- top command virt Top-Befehl virt - -- check memory in linux Check-Speicher unter Linux - -- linux memory report Linux-Speicher-Bericht - -- linux ps memory usage Linux PS Speicherverbrauch - -- ubuntu check ram size Ubuntu Check RAM-Größe - -- checking the amount of memory on a Linux server Überprüfung der Größe des Speichers auf einem Linux-Server - -- linux command to check memory status Linux-Kommandozeile zu prüfen, Speicher-Status - -- check ram on linux Check Ram unter Linux - -- linux report memory usage Linux Bericht Speicherverbrauch - --