docker启动java容器报错unable to allocate file descriptor table - out of memory

问题:启动java进程报错

{"log":"library initialization failed - unable to allocate file descriptor table - out of memory","stream":"stderr","time":"2024-05-15T06:27:14.681052443Z"}

原因:

LimitNOFILE=infinity 虽然是不限制,但是在systemctl版本小于234的时候不生效,查看systemctl版本:systemctl --version

解决:

1
2
# 加了--ulimit nofile=1024
docker run -d --ulimit nofile=1024 -p 8080:8080 --name  springboot springboot-web

  

posted @   lucky_tomato  阅读(522)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具
· Manus的开源复刻OpenManus初探
历史上的今天:
2022-05-15 gitlab推送代码报错remote: GitLab: You are not allowed to push code to protected branches on this project.
2022-05-15 gitlab为项目添加新成员
2022-05-15 gitlab创建账号密码
点击右上角即可分享
微信分享提示