Solve the OOM: unabletocreatenewnativethread problem on RedHatLinux6.1

Source: Internet
Author: User
Solve the OOM: unabletocreatenewnativethread problem on redhat6.1 6.1 to run a large and complex Java system on the default RedHatLinux6.1. if this Java system starts multiple Java processes, every process has many threads... solve the OOM: unable to create new native thread problem on Red Hat Linux 6.1 and run a large and complex Java system on the default Red Hat Linux 6.1, if the Java system starts multiple Java processes and each process has many threads, you may encounter java during running. lang. outOfMemoryError: unable to create new native thread www.2cto.com when you encounter this problem, you generally want to adjust the JVM memory settings, but in fact this is probably the Linux ulimi T setting is too small. it is useless to adjust JVM memory settings. Linux limits the maximum number of Processes that each User can enable (Max User Processes). If this value is relatively small, when the program runs, a fatal error occurs. run the ulimit-a command to view the current ulimit settings. Red Hat Linux 5. x the default Max User Processes is 16384, while the default Max User Processes of Red Hat Linux 6.1 has been changed to 1024. for large and complex Java systems, 1024 is actually a little smaller than www.2cto.com. we can set Max User Processes according to the system situation. If it is only temporarily used by the current user, run the command: ulimit-u new-max-user-processes-value, use the root user to modify/etc/security/limits. d/90-nproc.conf File: * soft nproc new-max-user-processes-value and then restart the system to make it take effect

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.