Releases the cache for Ubuntu/Linux to increase available memory space.
Source: Internet
Author: User
Release the UbuntuLinux system cache and increase the available memory space. a desktop memory has a total of 3 GB, but the free memory is only 200 MB, which cannot meet the jvm requirements of scala. Use the top command to view the real free memory. The following is another command to view the real memory usage. [Plain] wat releases the cache for Ubuntu/Linux systems and increases the available memory space. a desktop memory has a total of 3 GB, but the free memory is only 200 MB, which cannot meet the jvm requirements of scala. Use the top command to view the real free memory. The following is another command to view the real memory usage. [Plain] watch-n 1 cat/proc/meminfo search found that there are three methods to release the memory. [Plain] watch-n 1 free-m or: free-m the above method only adds dozens of M. [Plain] sudo sysctl-w vm. drop_caches = 3 the above method aims to release the memory used by the kernel on the cache. An increase of about 1g is added. The following method releases more, but it may affect system stability! Be sure to use it with caution. [Plain] sudo sync & echo 3 | the sudo tee/proc/sys/vm/drop_caches Command releases the memory or cache (page cache, inodes, and dentries), use it with caution. In general, the second method is more suitable. you can use cron jobs if you need to run automatically once every other time.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.