In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how linux queries server memory. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
In linux, you can use the free command to query the server's memory, which can be used to display memory usage, including physical memory, virtual swap file memory, shared memory segments, and buffers used by the system core. The syntax is "free [- bkmotV] [- s]".
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How to query server memory by linux
The Linux free command is used to display memory status.
The free instruction shows memory usage, including physical memory, virtual swap file memory, shared memory segments, and buffers used by the system core.
Grammar
Free [- bkmotV] [- s]
Parameter description:
-b displays memory usage in Byte units.
-k displays memory usage in KB units.
-m displays memory usage in MB units.
-h displays memory usage in appropriate units, up to a maximum of three digits, and automatically calculates the corresponding unit value. The units are:
B = bytes
K = kilos
M = megas
G = gigas
T = teras
-o the buffer adjustment column is not displayed.
-s continuously observe memory usage.
-t displays the memory sum column.
-V displays version information.
Example
Display memory usage
The free command defaults to the display unit kb, which can be viewed with the free-m and free-g commands, representing MB and GB, respectively.
In addition, free-h will automatically choose to display in units of capacity that are suitable for understanding.
Thank you for reading! This is the end of this article on "how to query server memory in linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.