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 .
Related Articles Verwandte Artikel
- Ubuntu 6.06 Reviews Ubuntu 6,06 Reviews
- Novell SUSE Linux Enterprise Server 10 Reviews Novell SUSE LINUX Enterprise Server 10 Bewertungen
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux Grünen, Extrahieren und Konvertieren DAA, ISO und BIN-Dateien unter Linux mit Freier PowerISO für Linux
- How to Check if Telnet Is Running on a Server Wie um zu überprüfen, ob Telnet läuft auf einem Server
- Paessler Router Traffic Grapher PRTG 5.3 Review by Computing Paessler Router Traffic Grapher PRTG 5,3 Überprüfung durch Computing
- Find Out Linux Orphan Processes Finden Sie heraus, Linux Orphan-Prozesse
- Cheapest Linux Box Ever Billigste Linux-Box immer
- Start, Stop and Restart Crond Daemon in Linux Start, Stop und Neustart Crond Daemon unter Linux
- Download Free VMWare Server Virtualization Software Download der kostenlosen VMWare-Server-Virtualisierungs-Software
- How to Mount USB Disk Drive in UNIX or Linux Wie hängt man USB-Laufwerk unter UNIX oder Linux

































September 24th, 2007 15:20 24. September 2007 15:20
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/