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 mainly shows you "how to release Ubuntu/Linux system cache to increase available memory space", the content is easy to understand, clear, hope to help you solve your doubts, the following let Xiaobian lead you to study and learn "how to release Ubuntu/Linux system cache to increase available memory space" this article.
The total memory of a desktop Ubuntu is 3G, but the memory of free is only 200m, which can not meet the jvm requirements of scala.
Note that you can see the real free memory by looking at it with the top command. Here is another command to see how much memory is actually used.
Watch-n 1 cat / proc/meminfo
The search found that there are three ways to free memory:
Watch-n 1 free-m or: free-m
The above method only adds a few tens of M.
Sudo sysctl-w vm.drop_caches=3
The purpose of this approach is to free the memory that kernel uses on top of cache. Increased by about 1G.
The following method releases more, but may affect the stability of the system! Be sure to use it carefully.
Sudo sync & & echo 3 | sudo tee / proc/sys/vm/drop_caches
This command frees up memory in use or cache (page cache, inodes, and dentries), so use it carefully.
Overall, the second method is more appropriate, and if you need to run it automatically at regular intervals, you can use cron jobs.
The above is all the contents of the article "how to free Ubuntu/Linux system cache to increase available memory space". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow 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
© 2024 shulou.com SLNews company. All rights reserved.