我打开了相当多的终端 -> 正好是 9 个,但每个终端都打开了 4-12 个选项卡。他们已经开放了很长时间。现在,我在活动监视器上看到“终端”应用程序正在使用 9.38 GB 的内存。我不想丢失这些的历史记录/设置以及我的系统的其余部分,因此重新启动不是再过一周左右的选择。
有没有其他办法?我可以找出哪个选项卡使用的内存最多,然后关闭前一两个选项卡吗?
感谢您的任何建议。
我试图更好地理解 Docker 连接网络的方式并遇到了这个问题。注意:我认为这与 Docker 本身没有任何关系,那只是它出现的载体。如果这是我的误解,请随时纠正!
在 Swarm 模式下启动并运行 Docker 后,将执行以下 iptables 命令:
> iptables -t filter -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
ACCEPT udp -- anywhere anywhere udp dpt:bootps
Chain FORWARD (policy ACCEPT)
target prot opt source destination
DOCKER-ISOLATION all -- anywhere anywhere
DOCKER all -- anywhere (1) anywhere
ACCEPT all -- anywhere anywhere ctstate …
Run Code Online (Sandbox Code Playgroud)