(本文档仅供参考)
问题描述
docker环境启动tomcat镜像报错:unable to allocate file descriptor table - out of memory
问题原因
报内存溢出错误,但是jvm参数远小于服务器物理内存,经排查缺少取消打开文件数限制的配置
解决办法
取消打开文件数限制:
在/etc/security/limits.conf 文件的末尾加入以下内容(注意: * 不能省略):
* soft nofile 65536 * hard nofile 65536 * soft nproc 131072 * hard nproc 131072