docker java library initialization failed - unable to allocate file descriptor table - out of memory

痛定思痛。 2022-09-13 15:17 246阅读 0赞

故障效果

  1. library initialization failed - unable to allocate file descriptor table - out of memory

原因,容器内nofile数值设置过大

  1. ulimit -a
  2. -f: file size (blocks) unlimited
  3. -t: cpu time (seconds) unlimited
  4. -d: data seg size (kb) unlimited
  5. -s: stack size (kb) 8192
  6. -c: core file size (blocks) unlimited
  7. -m: resident set size (kb) unlimited
  8. -l: locked memory (kb) 64
  9. -p: processes unlimited
  10. -n: file descriptors 1048576
  11. -v: address space (kb) unlimited
  12. -w: locks unlimited
  13. -e: scheduling priority 0
  14. -r: real-time priority 0

解决方案,修改docker run启动参数

  1. --ulimit nofile=1024:1024

程序正常启动

发表评论

表情:
评论列表 (有 0 条评论,246人围观)

还没有评论,来说两句吧...

相关阅读