当前位置: 首页 > 工具软件 > Table Library > 使用案例 >

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

劳星晖
2023-12-01

故障效果

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

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

ulimit -a
-f: file size (blocks)             unlimited
-t: cpu time (seconds)             unlimited
-d: data seg size (kb)             unlimited
-s: stack size (kb)                8192
-c: core file size (blocks)        unlimited
-m: resident set size (kb)         unlimited
-l: locked memory (kb)             64
-p: processes                      unlimited
-n: file descriptors               1048576
-v: address space (kb)             unlimited
-w: locks                          unlimited
-e: scheduling priority            0
-r: real-time priority             0

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

--ulimit nofile=1024:1024

程序正常启动

 类似资料: