Client error: could not get a resource from the pool
1. Reason & Solution
Concurrency is indeed too high, and the link pool configuration parameters are unreasonable. Solution: adjust the configuration parameters; The execution queue of the capacity expansion node redis is occupied by a large number of operations or time-consuming operations. Solution: optimize slow operations; Slow operation is prohibited. There is a hot key solution: split the key and distribute the pressure to each redis node; Increase the local memory. First check the local memory, and then go to a node in redis. The link pool is exhausted. Solution: solve the problem of data skew, execute time-consuming commands, resulting in Ping timeout. Solution: disable time-consuming commands, such as: keys *; Optimize the time-consuming operation. There is a bug in the lower version of jedis package. Solution: upgrade the jedis version
2. Hot key scene sorting
Question 01:
Frequent IP access in a region
Solution:
Increase the application local cache and LRU maintain a certain number of hot IP addresses
Question 02:
Frequently query a large Zset set
Solution:
Split by business dimension; Split by data number segment
3. Sort out the scenario when a node’s link pool is exhausted
Homicide caused by hashtag abuse
Read More:
- Configuration of springboot + Druid connection pool
- [Solved] nacos Error: Client not connected,current status:STARTING,StatusRuntimeException
- Feign Error: Load balancer does not have available server for client:XXX
- [Solved] Could not find resource COM / atguigu / Dao / studentdao.xm, the mapper file for storing SQL statements could not be found and an error occurred
- [Solved] springboot Project Run Error: HikariPool-1 – Exception during pool initialization.
- [Solved] IDEA2021.3 Error: Failed to write core dump. Minidumps are not enabled by default on client versions of
- [Solved] the resource is not on the build path of a java project
- [Solved] Spring integrates canal to call feign error: pool-1-thread-1
- [Solved] Resource compilation failed (Failed to compile values resource file…
- [Solved] Sprintboot hikari initialize error: ERROR 27468 — [nio-8080-exec-1] com.zaxxer.hikari.pool.HikariPoolHikariPool
- Java database Druid error: com.alibaba.druid.pool.DruidDataSource error
- [Solved] Redis Client On Error Error connect ECONNREFUSED 11.20.200.6379 Config right
- [Solved] Mybatis Error: Could not find resource mybatis-conf.xml
- [Solved] Redis Client On Error: Error: write ECONNABORTED Config right
- Spring boot uses thread pool to realize asynchronous processing without return and asynchronous processing with return
- [Solved] org.apache.flink.client.program.ProgramInvocationException: The main method caused an error
- Java uses single thread pool to realize multi thread sequential execution (non alternating, non synchronous)
- Frequent log swiping after Nacos client starts [How to Solve]
- [Solved] Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource…
- Using mybatis statement.getGenreatedKeys(); usegeneratedkeys = “true”; using self incrementing primary key to get primary key value policy and Oracle do not support self incrementing, Oracle uses sequence