# 檢查 max number of open files ulimit -a ulimit -n ################################################### # Sample output # ################################################### # core file size (blocks, -c) 0 # data seg size (kbytes, -d) unlimited # scheduling priority (-e) 0 # file size (blocks, -f) unlimited # pending signals (-i) 40960 # max locked memory (kbytes, -l) 32 # max memory size (kbytes, -m) unlimited # open files (-n) 4096 # pipe size (512 bytes, -p) 8 # POSIX message queues (bytes, -q) 819200 # real-time priority (-r) 0 # stack size (kbytes, -s) 10240 # cpu time (seconds, -t) unlimited # max user processes (-u) 40960 # virtual memory (kbytes, -v) unlimited # file locks (-x) unlimited # 更進一步,可以檢查soft limit跟hard limit ulimit -Sn ulimit -Hn # 當發現 open files (-n) 設定的數字太少,把它調高一點 ulimit -n 65535 # 接著,重開出問題的服務 service rabbitmq-server restartReference: geardnico
2012年3月15日 星期四
[Fixed] RabbitMQ使用過程中出現java.net.SocketException: Connection reset
標籤:
error,
rabbit,
SocketException
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言