docker容器中tomcat启动out of memory

宿主机 Kylin V10 容器 centos7

tomcat 启动报错

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

宿主机 ulimit -n 65535

容器内 ulimit -n 1073741816

解决方案 容器内

修改/etc/profile

添加如下内容

[root@CentOS646506 ~]# vim /etc/profile ulimit -u 65535 ulimit -n 65535