Gods Recently, my little brother met a More difficult problems Please teach me
The original project was no problem , Normal running . But later, with more and more data Sometimes when you restart a project redis The connection times out
Only the redis Follow WEB Put it in An instance will not time out
Could you consider optimizing redis, Shorten the period of validity of , How about adding memory .
Only the redis Follow WEB Put it in An instance will not time out ？ What does an example mean , On a virtual machine ？
increase redis Is the connection timeout length OK ？
Connection timeout may be a network communication problem , You can ping Let's talk about network communication between two virtual machines
Finally, it solved springboot2.X Default Lettuce In the configuration file It's back to jedis Just fine