随笔分类 -  linux

容器内Java微服务报错:unable to create new native thread
摘要:unable to create new native threadhttps://stackoverflow.com/questions/16789288/java-lang-outofmemoryerror-unable-to-create-new-native-thread/16789621 阅读全文
posted @ 2021-08-31 11:25 51core 阅读(400) 评论(0) 推荐(0)
CentOS-8的新特性、部署、配置、测试
摘要:原文:https://www.jianshu.com/p/023be067b743 centos-stream https://www.centos.org/centos-stream/ 14. 网络方面 更详细的官方文档 nftables 框架替代 iptables 作为默认的网络包过滤工具 fi 阅读全文
posted @ 2020-12-15 18:20 51core 阅读(515) 评论(0) 推荐(0)
解决ssh报错:shell request failed on channel 0
摘要:原因:目标主机的用户连接线程数太小,导致连接被阻断。解决:需要修改/etc/security/limits.d/20-nproc.conf文件中的值,把4096改大一点,如 65535,如不设限制则改为unlimited,且一遍指定用户,不设置为全局。# cat /etc/security/limi 阅读全文
posted @ 2020-09-18 11:13 51core 阅读(11252) 评论(0) 推荐(0)
systemctl使用简述
摘要:linux 3.x内核以后的很多类Unix系统使用systemd作为系统和服务管理的工具,相关命令为systemclt。 如CentOS 7的服务systemctl配置存放在:/usr/lib/systemd/,有系统级(对应system目录)和用户级(对应user目录)之分,需要在开机不登陆就能运 阅读全文
posted @ 2020-09-10 15:53 51core 阅读(1206) 评论(0) 推荐(0)
load高但是cpu占用率低的排查
摘要:CPU不高的情况,一遍cpu的wait或idle都有较大的值,表明CPU利用率不高 1. 一种情况是磁盘IO过高,导致线程等待 使用vmstat 命令,查看io的情况。vmstat 2 5 或使用iotop工具,默认显示对IO高低进行倒序实时显示,其中tid即是pid Ubuntu:apt-get 阅读全文
posted @ 2020-09-09 18:32 51core 阅读(9986) 评论(0) 推荐(0)
一些内核参数
摘要:net.ipv4.tcp_syncookies = 1net.ipv4.tcp_tw_reuse = 1net.ipv4.tcp_tw_recycle = 1net.ipv4.tcp_fin_timeout = 30net.ipv4.tcp_timestamps = 0 vm.swappines = 阅读全文
posted @ 2020-08-31 17:36 51core 阅读(335) 评论(0) 推荐(0)
rsync服务配置和使用
摘要:rsync使用系统账号在服务器之间同步文件时,默认一般是22端口,一般建议加上-e参数指定端口,特别是使用非22端口时,如:rsync -avuz -e 'ssh -p 2222' user@remote-server:/path/to/remote/folder /path/to/local/fo 阅读全文
posted @ 2020-08-31 16:43 51core 阅读(1081) 评论(0) 推荐(1)