Linux問題メモ
2735 ワード
1.sshが正常にアクセスできない
1.1エラーメッセージ
-bash: fork: retry: Resource temporarily unavailable
1.2解決方法
# ulimit -u 10000
2.sshはログインできません
2.1エラーメッセージ
# su otheruser
su: cannot set user id: Resource temporarily unavailable
2.2問題の検索
# lsof | grep otheruser
2.3異常情報
java 22452 otheruser 206u IPv6 66845952 0t0 TCP localhost:35068->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 207u IPv6 66845953 0t0 TCP localhost:35069->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 208u IPv6 66845954 0t0 TCP localhost:35070->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 209u IPv6 66845955 0t0 TCP localhost:35071->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 210u IPv6 66845956 0t0 TCP localhost:35072->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 211u IPv6 66845957 0t0 TCP localhost:35073->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 212u IPv6 66845958 0t0 TCP localhost:35074->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 213u IPv6 66845959 0t0 TCP localhost:35075->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 214u IPv6 66845977 0t0 TCP localhost:35078->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 215u IPv6 66845979 0t0 TCP localhost:35079->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 216u IPv6 66845980 0t0 TCP localhost:35080->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 217u IPv6 66845981 0t0 TCP localhost:35081->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 218u IPv6 66845982 0t0 TCP localhost:35082->42.120.181.22:http (CLOSE_WAIT)
java 22452 otheruser 219u IPv6 66845986 0t0 TCP localhost:35083->42.120.181.22:http (CLOSE_WAIT)
2.4一時的な解決
#kill -9 22452
2.5解決方法
2.5.1ファイルを開く
# vi /etc/security/limits.conf
2.5.2内容の追加
* soft nofile 4096
* hard nofile 4096