Tomcat access exception on Linux java.net.SocketException:Too many open files

Source: Internet
Author: User

Tomcat deployed on Linux systems, Access exception: Java.net.SocketException:Too many open files

Cause: The number of open files exceeds the system default limit

With the command ulimit-a you can see that the system default open file is set to 1024


Processing method:

1. Add in the/etc/pam.d/login file

Session required/usr/lib64/security/pam_limits.so

Note: The 64-bit system is a/usr/lib64/security/pam_limits.so,32-bit system for/usr/lib/security/pam_limits.so


2. Add in the/etc/security/limits.conf file

*-Nofile 102400

Note: 102400 can be set any number


This article from "Good memory than bad writing" blog, please be sure to keep this source http://gytian.blog.51cto.com/1065457/1554360

Tomcat access exception on Linux java.net.SocketException:Too many open files

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.