Debugging and Analysis of redis connection problems cannot be obtained under high concurrency

Source: Internet
Author: User

When the business volume of our search service is large, the application may fail to get the redis connection from time to time. All threads of the entire program are stuck in the following position, resulting in the inaccessibility of new requests from the front end, the search service is suspended and the entire program does not respond.

Thread 4 (thread 0x7ff97222d700 (lwp 222201 )):
#0 0x000000339f2e15e3 in select () from/lib64/libc. so.6
#1 0x00000000009628fc in rediscontextwaitready ()
#2 0x0000000000962e08 in rediscontextconnecttcp ()
#3 0x0000000000960293 in redisconnectwithtimeout ()
#4 0x000000000076ab07 in redisoperator: getredisconnection ()()

This problem is very strange. Sometimes it does not occur once in a few months. Sometimes it occurs multiple times in a few days, which makes debugging very difficult.

 

Debugging and Analysis of redis connection problems cannot be obtained under high concurrency

Related Article

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.