- https://www.cnblogs.com/python-wen/p/11224828.html)">解决报错WARNING: IPv4 forwarding is disabled. Networking will not work.(https://www.cnblogs.com/python-wen/p/11224828.html)
- 分析占用CPU最高的应用
- 内存占用前10排序
https://www.jianshu.com/p/9f603cd6d3e2
https://www.jianshu.com/p/397929dbc27d
docker build -t java:v1 .
docker run -dit —name=dwpc —net=host java:v1
解决报错WARNING: IPv4 forwarding is disabled. Networking will not work.(https://www.cnblogs.com/python-wen/p/11224828.html)
echo “net.ipv4.ip_forward=1” >>/usr/lib/sysctl.d/00-system.conf
systemctl restart network && systemctl restart docker
分析占用CPU最高的应用
ps -eo user,pid,pcpu,pmem,args —sort=-pcpu |head -n 10
内存占用前10排序
ps -eo user,pid,pcpu,pmem,args —sort=-pmem |head -n 10
