In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Xiaobian to share with you how to check linux system card, I believe most people still do not know how, so share this article for everyone's reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
1. View memory usage
free -g
When you observe that the free column is 0, it means that the memory is basically eaten up, so release the memory.
Free memory:
sync
echo 3 > /proc/sys/vm/drop_caches
Sync means to synchronize the contents of the memory buffer to disk immediately, but you can do it a few more times for safety.
2. View disk usage
df -h
When disk usage is found to be high, it is necessary to free up disk space and delete unnecessary files (see disk space occupied by various directories)
du command: View disk occupancy of directories and files
View disk occupancy for a specified directory:
du -sh /home/zhubao
View disk usage for all first-level subdirectories and files in the current directory:
du -sh *
-h or-human-readable in K, M, G units, improving readability of information;
-s or-summarize Displays only the total, i.e. the size of the current directory.
3. View disk IO usage
iostat -x 1
1 means refresh once a second
When %util on the rightmost side is found to be very high, it means IO is very high. If you want to see which process occupies IO, execute iotop command to check.
4. view CPU usage
top
The table in the red box in the figure shows CPU usage. The %id on the far right indicates the remaining CPU. If it is very low, it means that the CPU has been eaten up. Press shift+p on the top interface to sort the processes using CPU. You can see which processes occupy more CPU.
Of course, the top command can also view information such as memory, which is more powerful and will be described in detail later.
The above is "linux system is very card how to investigate" all the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
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
[root@&& ~] # free-h total used free shared buff/cache available
© 2024 shulou.com SLNews company. All rights reserved.