Connection between web and redis

CSDN Q & A 2022-02-13 09:14:11 阅读数:979

connection web redis

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

img




Take the answer :

Could you consider optimizing redis, Shorten the period of validity of , How about adding memory .



Other answers 2:

Only the redis Follow WEB Put it in An instance will not time out ? What does an example mean , On a virtual machine ?


Other answers 3:

increase redis Is the connection timeout length OK ?


Other answers 4:

Connection timeout may be a network communication problem , You can ping Let's talk about network communication between two virtual machines


Other answers 5:

Finally, it solved springboot2.X Default Lettuce In the configuration file It's back to jedis Just fine

copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130914090901.html