Docker container running Tomcat encounters the pit

Source: Internet
Author: User

Using the Docker container to run Tomcat, because the same host ran a number of containers, plus the host itself ran a lot of processes, resulting in the total number of processes 8000+, and the container in Tomcat's startup script will call the setenv.sh, There is such a sentence in setenv.sh ulimit-u 8192, because the number of system processes has reached 8192, so when you start Tomcat error:

Tomcat/bin/catalina.sh:fork:retry:no Child Processes
Tomcat/bin/catalina.sh:fork:retry:no Child Processes
Tomcat/bin/catalina.sh:fork:retry:no Child Processes
Tomcat/bin/catalina.sh:fork:retry:no Child Processes
Tomcat/bin/catalina.sh:fork:resource temporarily unavailable

Tomcat could not start, later modified setenv.sh, Ulimit-u 8192, changed to Ulimit-u 58192, Tomcat can start normally.

The System max proc configuration (ulimit-a view) is in/etc/security/limits.conf.

System Limit setting modification method recommended Link:

http://pvbutler.blog.51cto.com/7662323/1558092

Http://jingyan.baidu.com/article/1974b289a397d1f4b1f77495.html

Http://www.cnblogs.com/mylingc/archive/2013/05/24/3097416.html

Docker container running Tomcat encounters the pit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.