In the process of using Linux, we sometimes encounter the exhaustion of swap memory swap. In the face of this problem, how can we solve it? Now Xiaobian will share the solution to this problem with everyone.
Solution:
1. When the application is started, the memory is insufficient. Directly view the Linux command line. Swap used100%, 0free.
2, reboot the server can effectively release the swap, but in many cases can not restart the server. At this time, we must figure out what is occupying the memory. Look at the contents of the /proc directory, find a lot of digitally named directories, these are the Linux process.
3, let the process method releases the swap only kill off the process. Write a script to see which processes are in memory.
First, traversing all directories named by numbers in the /proc directory
Second, the 1 directory is the root process restart will cause the system to restart, so directly excluded.
Third, each process calculates a memory size, and then sorted by size
Fourth, the process output is greater than 1MB of memory usage
at 12 Previous One page total 2 pages
Because Ubuntu system does not prompt for updates, and many friends who want to update the system do
Linux character interface is easy to be boring for a long time. If you add a person
Installing Vagrant on Linux system is prone to various problems, for example, some people do not kno
ln is an important command in the Linux system. It can establish links for files an
What if CentOS fails to mount Glusterfs?
Linux system NBMA and BMA exchange method introduction
Linux system settings ssh connection interrupt time skills
How to use the access control list to limit user permissions under Linux
How to modify the character set in Linux
How to install Ruby and rvm on Ubuntu 11.04
Steps to install Kali system on a virtual machine
What should I do if the device id of the Linux virtual machine does not match the drive letter?
Linux when installing PyCharm prompts can not start PyCharm error how to do?
What should I do if I can't delete files in linux with root privileges?
Fedora system ifconfig and netstat command can not find a solution
How to remove extra fonts in Win10 system?
Win8 how to encrypt files Win8 disk encryption graphic tutorial
Win7 Ultimate system desktop folder all become exe reasons and solutions graphic tutorial
What if the Win8 app store does not connect to the Internet?
Win10 error 0x0000003B how to do
Win8.1 system to restore the classic start menu trick
System startup menu method to add security mode