When you start the program, does not start properly, the program does not directly
The system was the kill (the dmesg | egrep -i -B100 'killed Process' ),
Find shared memory, cache occupancy is too high
Frequently used commands:
Sort by memory usage:
PS -EO rss, PMEM, pcpu, VSIZE, args | the Sort -k 1 -r -n | less
Except when memory is exhausted outside can clear the cache, we can use the following file system cache clearing operation to manually trigger:
[root@tencent64 ~]# cat /proc/sys/vm/drop_caches 1
the way is:
echo 1 > /proc/sys/vm/drop_caches
Of course, the value of this file can be set 1,2,3, respectively. Meaning that they represent are:
echo 1> / proc / sys / vm / drop_caches: Clears pagecache. echo 2> / proc / sys / vm / drop_caches: represents scavenged slab allocator object (including a cache directory entry and the inode cache). The slab allocator is a mechanism in the kernel memory management, cache data to achieve many of which are used in pagecache. echo 3> / proc / sys / vm / drop_caches: clears the cache object and pagecache slab dispenser.
Investigation in the end, I think of it bazel the cache into the disk, this effect is not it? Then execute the bazel clean, memory anymore ...... bazel is a pit ah