天蓬老师2017-04-17 12:10:15
Two ways to solve it
1. You can configure the mysql connection pool
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
2. You can solve the problem by disconnecting and reconnecting
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
黄舟2017-04-17 12:10:15
Mysql has a connection pool. When concurrency is large, if your previous connection is not closed, the connection pool is full, the request cannot be processed, and the program will block, so it needs to be released when it is used up