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)06/01 Report--
This article mainly explains "what to do if the Linux system memory is not enough". Interested friends might as well take a look at it. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what if the Linux system memory is not enough?"
When the operation is frequent under Linux, the physical memory will be quickly used up. When the operation is over, the physical memory will not be released normally, but will always be regarded as caching, affecting the normal operation of the system. Today, let's talk about how to release this part of the occupied memory.
1. Open the Linux command window, which can be opened by using the shortcut key Ctrl+Alt+T.
2. First take a look at the current memory usage of the Linux system. Use the command: Free-m total memory, the amount of memory already used by used, and the number of free memory in free.
3. For the next operation, you need to obtain the advanced user rights first. Enter the command: sudo-I, and then enter the advanced user password.
4. Copy the file first, increase the memory usage (that is, used usage), and enter the command: cp-r / etc ~ / test/
5. After the execution of the command, check the current memory usage of the Linux system again and find that 70m of the memory is used by cached. Use the command: Free-m
6. Next, release the occupied cache, enter the command: cat / proc/sys/vm/drop_caches, and return the result 0 after entering enter.
7. Enter the command: sync, enter the command: echo 3 > / proc/sys/vm/drop_caches, enter the command cat / proc/sys/vm/drop_caches, enter the result 3, and set the value of / proc/sys/vm/drop_caches to 3.
8. Cache release has been completed. Execute the command Free-m again. You can see from the comparison in the figure that 218m of memory has been released.
Note: if the memory is used and not released after using the application, you need to see whether there is a memory leak or overflow in the application itself, which can be quickly judged by the use of swap.
At this point, I believe that everyone on the "Linux system memory is not enough to do what to do" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.