문제

We're using Redis for monitoring on a high traffic web application. The app is written in c and uses the credis client library.

We're seeing enormous numbers of TIME_WAIT connections left over from our communications with Redis:

$ netstat -a | grep 6379 | grep TIME_WAIT | wc -l 15865

Any idea what's going on here?

"

rh = credis_connect(NULL, 6379, 2000);

credis_incr(rh, "hhhh2",NULL);

credis_close(rh);

도움이 되었습니까?

해결책

See SO question #337115 for approaches to this problem.

(I prefer making the client close the connection so the client ends up in the TIME_WAIT state.)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top