Bug #79714 | Thread handle leak in the connection handler | ||
---|---|---|---|
Submitted: | 20 Dec 2015 15:02 | Modified: | 6 Jan 2016 16:38 |
Reporter: | Lyric Rainy | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Connection Handling | Severity: | S2 (Serious) |
Version: | 5.7.9 | OS: | Windows |
Assigned to: | CPU Architecture: | Any |
[20 Dec 2015 15:02]
Lyric Rainy
[22 Dec 2015 12:57]
MySQL Verification Team
Thank you for the bug report. Verified on 5.7.11. mysqld.exe --no-defaults --thread-cache-size=10 --max-connections=1000 --skip-grant-tables --skip-name-resolve --port=3333 --console mysqlslap.exe -h127.0.0.1 -P3333 --concurrency=20 --create-schema=test --iterations=100000 --number-of-queries=1 Every few seconds, check: handle -s -p mysqld.exe Handle type summary: <Unknown type> : 32 ALPC Port : 3 Desktop : 1 Directory : 2 Event : 479 File : 27 IoCompletion : 3 Key : 6 KeyedEvent : 2 Mutant : 1 Semaphore : 10 Thread : 5552 Timer : 3 TpWorkerFactory : 16 WindowStation : 2 Total handles: 6139 !avrf -leak
[6 Jan 2016 16:38]
Paul DuBois
Noted in 5.7.11, 5.8.0 changelogs. Thread handle resource leakage could occur when creating threads for handling connections on Windows, which could lead to Windows servers eventually running out of handles.