Java.net. SocketException in Linux: Toomanyopenfiles solution

Source: Internet
Author: User
Java.net. SocketException in Linux: Toomanyopenfiles solution Linux code [root @ fwang5stash ~] # Ulimit-acorefilesize (blocks,-c) 0 datasegsize (kbytes,-d )... in Linux, java.net. socketException: Too program open files solution Linux code [root @ fwang5stash ~] # Ulimit-a core file size (blocks,-c) 0 data seg size (kbytes,-d) unlimited scheduling priority (-e) 0 file size (blocks,-f) unlimited pending signals (-I) 7167 max locked memory (kbytes,-l) 32 max memory size (kbytes,-m) unlimited open files (-n) 1024 pipe size (512 bytes,-p) 8 POSIX message queues (bytes,-q) 819200 real-time priority (-r) 0 stack size (kbytes,-s) 10240 cpu time (seconds, -T) unlimited max user processes (-u) 7167 virtual memory (kbytes,-v) unlimited file locks (-x) unlimited 1. temporarily modify the Linux code [root @ fwang5stash ~] # Ulimit-n 8192 2. permanently modify/etc/security/limits. add the following line to conf: *-nofile 8192 modify/etc/pam. d/login: add the following session required/lib/security/pam_limits.so and log on again.

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.