The website prompts "Can t create a new thread (errno-1)" error.

Source: Internet
Author: User
Tags mysql database


The error is as follows.

Can't create a new thread (errno-1); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug

Cause analysis:

It has nothing to do with MySQL itself

The number of operating system connections is too small. (For example, centos 6 has only 1024 max user processes by default. When mysql process is greater than this value, the problem of Can't create a new thread will occur)

Solution 1

Restart the mysql database.

Solution 2: Long-Term Effectiveness


 
Handling of excessive connections:
Ulimit-
View max user processes
If this value is relatively small, when the number of processes in mysql exceeds this number, the corresponding title error will be held.
 
Modification method:
Vi/etc/security/limits. d/90-nproc.conf
# Change:
-Nproc 65536
Or:
Vi/etc/bashrc
Add:
Ulimit-u 65536
 
Then exit the current session.

 

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.