How to Check Memory Usage in Linux based Serverメモリの使用量を確認する方法がLinuxベースのサーバー
Memory is one of the most critical resource components on a server to ensure that the smooth and fast operation.メモリは、 1つのサーバー上で最も重要な資源を確保するためのコンポーネントは、円滑かつ高速動作します。 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.このように、適切な空室状況と豊富な物理メモリのサイズが非常に重要特にどんなサーバでも、特に高負荷のウェブホストで実行中のデータベースサーバにもOracleまたはMySQLのような、これは有名なメモリを消費します。 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では、これは人気のCentOS版を含むcpanel 、およびPleskをウェブホスティングサーバーにはいくつかのコマンドおよび[サーバー上のメモリ使用量をチェックするツールです。
free 自由な
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.無料のコマンドが表示されます金額の合計は、無料で使用される物理メモリ( RAM )は、システムだけでなく、 shoingの情報を共有メモリ、バッファ、キャッシュメモリとスワップ領域を使用されるのは、 Linuxカーネルです。
Syntax of free 構文の自由
free -[options]無料-[オプション]
Example usage of free 無料で利用方法の例
free -m無料-メートル
The command will display information about physical memory in MB.このコマンドが表示されます。詳細については、物理メモリのMBです。
free -m -s 5無料-メートル-秒5
The command will activate continuous polling delay at 5 seconds apart, and then display memory status in megabytes on terminal.連続ポーリングを有効にするコマンドは、 5秒間の遅延を離れ、と入力し、メガバイト単位で表示するメモリの状態をターミナルです。 Any floating point number for delay can be specified.遅延任意の浮動小数点数を指定できるようにします。
free -t -m無料-トン-メートル
Same with “free -m”, but -t switch will display a line containing the totals of physical memory and swap space.同じで、 "自由- m "と、しかし、 - tスイッチを含む行を表示するには、物理メモリとスワップ領域の合計です。
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仮想メモリの統計報告書報告書、これは、プロセスの詳細については、スワップ、無料、フリー、バッファとキャッシュメモリ、ページングスペース、ディスク入出力の活動は、トラップ、割り込み、コンテキストスイッチとCPUの活動です。 With vmstat command, administrators can has instantaneous reports on memory usage. vmstatコマンドで、管理者は、メモリの使用量は、報告書を瞬時にします。
Syntax of vmstat 構文vmstat
vmstat -[options] [delay count] vmstat -[オプション] [遅延数]
Example usage of vmstat vmstatの使用例
vmstat
The command will display report based on averages since last reboot.このコマンドが表示されます昨年の平均報告書に基づいて再起動します。
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.このコマンドは、システムリソースの利用方法プールの平均レベルを5秒間のサンプリング期間は5秒間隔を除いて、最初の結果では平均以来の最後の再起動します。
top 頂上
top command displays dynamic real-time view of the running tasks managed by kernel and system information in Linux system.トップへのコマンドが表示されますReal - Timeとビューの動的して、実行中のタスクによって管理さLinuxシステムのカーネルおよびシステムの情報が表示されます。 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.トップへのコマンドのメモリ使用量の統計情報をリアルタイムに含まれて生きるの合計は、無料で使用され、物理メモリとスワップメモリにバッファやキャッシュメモリサイズです。
Syntax and example usage of top 構文と例利用方法のトップへ
top頂上
Using top is simple, simply type top at command shell, and constantly update stats page will be shown.を使用してトップへは、簡単で、単にタイプトップへatコマンドシェル、および絶えず更新プログラムの統計情報のページが表示されます。
ps aux ps auxを
ps command reports a snapshot on information of the current active processes. psコマンドのスナップショットを報告書の情報を、現在のアクティブなプロセスです。 Advantage of ps command is that system admins will be able to see where the memory is used. psコマンドは、システムの利点を見ることができる管理者は、メモリが使用されています。 ps will show the percentage of memory resource that is used by each process or task running in the system. psのメモリリソースの割合が表示さには使用される各プロセスまたはタスクのシステムで実行されています。 With this command, top memory hogging processes can be identified.このコマンドは、トップへメモリ以上にとるプロセスを確認できる。
Syntax and example of ps aux ps auxを構文と例
aux is actually already the options for ps command to see every process on the system.補助は、実際には既にpsコマンドのオプションを、さらに、システム上のすべてのプロセスを確認します。 So the typical command to type the following in the command 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:メモリリソースだけを表示する各カテゴリーのプロセス占領され、のhttpd 、 Apacheのように、 MySQLのmysqldまたはJavaは、次のコマンドを使用して:
ps aux | awk '{print $4"\t"$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr ps auxを| Awkの' (印刷$ 4 " \ T "を$ 11 ) ' |並べ替え| uniq - c | Awkの' (印刷$ 2 " " $ 1 " " $ 3 ) ' |並び替え- nr
The all mentioned ways of check memory usage should works on most Unix and Linux variant of operating systems.に記載のすべてのチェック方法に取り組んでメモリ使用量は、ほとんどのUNIXおよびLinuxその他のオペレーティングシステムです。 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.しかし、 VPSの更新を実行する場合は(仮想プライベートサーバ) 、またはvds (仮想専用サーバー)またはハイブリッドサーバー、特にパワーを仮想化やOpenVZとは、上記のコマンドは、ホストコンピュータからデータを取得する、すなわち、全体のサーバーの仮想環境を実行してください。 In these virtualization system, the memory usage info has to be calculated from control panel or /proc/user_beancounters file.これらの仮想化システムでは、メモリ使用量に関する情報は、 [コントロールパネル]から計算されるかの/ proc / user_beancountersファイルです。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これは、機械翻訳ページで提供"現状有姿"を保証します。 Machine translation may be difficult to understand.機械翻訳を理解するのは難しいかもしれません。 Please refer toを参照してください original English articleオリジナルの英語記事索引 whenever possible.いつ可能です。
Share and contribute or get technical support and help atを共有して貢献や技術サポートとヘルプを得る My Digital Life Forums 私のデジタルライフフォーラム .です。
Related Articles関連記事
- Ubuntu 6.06 Reviews ubuntu 6.06レビュー
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux開いて、抽出し、変換のDAA 、 ISOやビンを備えたlinuxのファイルを無料のLinuxのpoweriso
- Novell SUSE Linux Enterprise Server 10 Reviews NovellのSUSE Linuxのエンタープライズサーバー10レビュー
- Cheapest Linux Box Ever最も格安なのLinuxボックスをオンまで
- Find Out Linux Orphan Processes Linuxの孤児プロセスを確認する
- Paessler Router Traffic Grapher PRTG 5.3 Review by Computing 5.3日paesslerルータのトラフィックを記録計器prtgコンピューティング
- How to Check if Telnet Is Running on a Server telnetのかどうかを確認する方法をサーバー上で実行され
- Start, Stop and Restart Crond Daemon in Linuxスタート]ボタン、デーモンを停止し、再起動するLinuxのcrond
- Download Free VMWare Server Virtualization Software VMWareで動作サーバー仮想化ソフトウェアの無料ダウンロード
- How to Mount USB Disk Drive in UNIX or Linux USBディスクドライブをマウントする方法について、 UnixやLinux













September 24th, 2007 15:20 2007年9月24日15:20
When you are running top there are three fields related to memory usage.実行中のときにはトップには3つの分野に関連するメモリの使用量です。 In order to assay your server memory requirements you have to understand their meaning.分析しているサーバーのためにメモリ要件の意味を理解する必要があります。
The first thing you have to know is that all the columns (VIRT RES SHR) report memory usage in KB (kilobytes).まず最初にあなたがを知っては、すべてのカラム( virt解像度shr )報告書のメモリ使用量をKB (キロバイト)です。
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列(仮想メモリのサイズを、プロセス)はどのくらいのメモリを、特定のアプリケーションが要求されると、またそれをカウントスワップメモリ、ディスクのページをご覧ください。 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.しかし、このフィールドわけではないが、このプロセスが実際に使用量のメモリを、リアルに利用することが開始されるこのメモリは、例えば、 memsetを使用しています。 Generally speaking you can disregard this column.一般的に言えば、この列を無視することができます。
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.解像度の列(常駐セットのサイズは、非スワップ物理メモリは、タスクが使用される(キロバイト) )は、最も重要な1つ-それは実際の物理R AMはどれくらいのショーのために割り当てられたプロセスです。
SHR column says how much memory a particular application is sharing with other applications. shr列は言う、特定のアプリケーションがどのくらいのメモリを共有する他のアプリケーションに最適です。 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.例えば、ほとんどのアプリケーションに依存してLinuxのlibcのは、すべてのアプリケーションとその機能を使用してリンクを入力し、このライブラリのメモリ空間は、すべてのプロセスに割り当てられて同時にメモリを節約します。
Consult with this pages for better understanding:このページをもっとよく理解するに相談する:
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/