# Can’t create thread to handle new connection(errno= 11)

**URL:** <https://forums.percona.com/t/can-t-create-thread-to-handle-new-connection-errno-11/9984>\
**Category:** Percona Server for MySQL 8.0\
**Created:** [April 7, 2021, 4:18am UTC](https://forums.percona.com/t/can-t-create-thread-to-handle-new-connection-errno-11/9984 "2021-04-07T04:18:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gajendra](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/gajendra/32/44_2.png) [@Gajendra](https://forums.percona.com/u/Gajendra)\
**Post date:** [April 7, 2021, 4:18am UTC](https://forums.percona.com/t/can-t-create-thread-to-handle-new-connection-errno-11/9984/1 "2021-04-07T04:18:55Z")

</div>

Hi Team,  
I am getting below error in mysql 8.

OS : Ubuntu 8

2021-04-05T23:57:39.048571Z 0 [ERROR] [MY-010249] [Server] Can’t create thread to handle new connection(errno= 11)  
2021-04-05T23:58:39.156526Z 0 [ERROR] [MY-000000] [connection\_h] Error log throttle: 530 ‘Can’t create thread to handle new connection’ error(s) suppressed  
2021-04-05T23:58:39.156554Z 0 [ERROR] [MY-010249] [Server] Can’t create thread to handle new connection(errno= 11)  
2021-04-05T23:59:39.158128Z 0 [ERROR] [MY-000000] [connection\_h] Error log throttle: 509 ‘Can’t create thread to handle new connection’ error(s) suppressed  
2021-04-05T23:59:39.158155Z 0 [ERROR] [MY-010249] [Server] Can’t create thread to handle new connection(errno= 11)  
2021-04-06T00:00:00.541130Z 5 [ERROR] [MY-010053] [Server] Event\_scheduler::execute\_top: Can not create event worker thread (errno=11). Stopping event scheduler

i have below setting .

[mysqld]  
max\_connect\_errors=2000  
max\_connections=5000  
#max\_user\_connections=500  
open\_files\_limit=100000  
key\_buffer\_size=48M  
max\_allowed\_packet=96M  
thread\_stack=768K  
thread\_cache\_size=150  
max\_binlog\_size=1000M  
max\_heap\_table\_size=64M  
table\_open\_cache=4000  
sort\_buffer\_size=20M  
tmp\_table\_size=10G  
read\_buffer\_size=384K  
read\_rnd\_buffer\_size=768K  
join\_buffer\_size=384K  
innodb\_data\_file\_path=ibdata1:75M:autoextend  
innodb\_temp\_data\_file\_path=ibtmp1:75M:autoextend  
sql\_mode=STRICT\_TRANS\_TABLES,NO\_ZERO\_IN\_DATE,NO\_ZERO\_DATE,ERROR\_FOR\_DIVISION\_BY\_ZERO,NO\_ENGINE\_SUBSTITUTION  
lower\_case\_table\_names=1  
temptable\_max\_ram=5G

log-error = /var/log/mysqld.log

[mysqld\_safe]  
open\_files\_limit=8192  
user =mysql  
log-error = /var/log/mysqld.log

[mysqldump]  
max\_allowed\_packet=96M

---

<div class="post-metadata">

**Author:** ![przemek](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/przemek/32/3_2.png) [@przemek](https://forums.percona.com/u/przemek)\
**Post date:** [June 17, 2021, 10:59am UTC](https://forums.percona.com/t/can-t-create-thread-to-handle-new-connection-errno-11/9984/2 "2021-06-17T10:59:04Z")

</div>

Hi,  
Check your OS limits affecting the mysqld process.  
You will find some useful examples here:

> **[Can't Create Thread: Errno 11 (A Tale of Two Ulimits)](https://www.percona.com/blog/2013/02/04/cant_create_thread_errno_11/)**
>
> If you're running a Fedora 9/RHEL 6 derivative, you're most likely affected by this issue, and the complete fix for it comes in three steps, which are...

> **[A Mystery with MySQL open\_files\_limit - Percona Database Performance Blog](https://www.percona.com/blog/2017/10/12/open_files_limit-mystery/)**
>
> In this blog, we'll look at a mystery around setting the MySQL open\_files\_limit variable in MySQL and Percona Server for MySQL.

Also, why you have much lower `open_files_limit` in `mysqld_safe` then in `mysqld` section?

---

<div class="post-metadata">

**Author:** ![Ian\_Slabbert](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ian_slabbert/32/3837_2.png) [@Ian\_Slabbert](https://forums.percona.com/u/Ian_Slabbert)\
**Post date:** [June 23, 2021, 6:16am UTC](https://forums.percona.com/t/can-t-create-thread-to-handle-new-connection-errno-11/9984/3 "2021-06-23T06:16:58Z")

</div>

Hi,

To solve this issue just use the following link.

> **[Mysql: Can't create a new thread (errno 11), how to solve - Programmer Sought](https://www.programmersought.com/article/67991070331/)**
>
> Mysql: Can't create a new thread (errno 11), how to solve, Programmer Sought, the best programmer technical posts sharing site.

Regards,  
Ian Slabbert
