修改/proc/sys/vm/drop_caches,释放Slab占用的cache内存空间(参考drop_caches的官方文档): Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free. To free pagecache: * echo 1 > /proc/sys/vm/drop_caches
docker启动时默认使用172.17.x.x作为容器的ip地址,可以通过以下方法自定义该网段: sudo service docker stop通过命令route -n查看docker0是否存在,若存在需先删除,sudo ip link del docker0sudo docker --bip="10.1.42.1/16" -d启动后docker讲使用新的网段为容器分配ip地址
一,问题 docker安装后默认的网段是172.17网段的,和真实环境网段冲突导致本机电脑无法连接docker机器. 二,解决办法 修改docker默认网段 1,先把docker停止 systemctl stop docker 2,删除原有的网桥配置 ip link del dev docker0 down 3,vim /etc/docker/daemon.json 没有此文件就新建 追加如下内容:{"bip" : "192.168.1.0/24"} 4,新建网
增加largeHeap="true"属性. android:largeHeap Whether your application's processes should be created with a large Dalvik heap. This applies to all processes created for the application. It only applies to the first application loaded into a process; i
机房有一台服务器上面部署了多个docker容器, 并且每个docker容器都往stderr中源源不断的输出日志,导致磁盘被占满了.Docker容器在启动/重启的时候会往/var/lib/docker中写数据,如果你在启动docker容器遇到"No space left on device"的问题,可以按照下面的步骤进行清理相关的日志操作. 1)对/var/lib/docker/containers下的文件夹进行排序,看看哪个容器占用了太多的磁盘空间 下面命令会按照升序的方式对于容器文件