springboot redis为何不断在显示打开关闭连接?

2018-02-12 11:51:57 [http-nio-1920-exec-7] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Closing Redis Connection
2018-02-12 11:51:57 [http-nio-1920-exec-7] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Opening RedisConnection
2018-02-12 11:51:57 [http-nio-1920-exec-7] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Closing Redis Connection
2018-02-12 11:51:57 [http-nio-1920-exec-7] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Opening RedisConnection
2018-02-12 11:51:57 [http-nio-1920-exec-7] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Closing Redis Connection
2018-02-12 11:51:57 [http-nio-1920-exec-7] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Opening RedisConnection
2018-02-12 11:51:57 [http-nio-1920-exec-7] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Closing Redis Connection
2018-02-12 11:51:57 [http-nio-1920-exec-7] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Opening RedisConnection
2018-02-12 11:51:57 [http-nio-1920-exec-7] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Closing Redis Connection
2018-02-12 11:52:00 [pool-2-thread-1] DEBUG org.springframework.session.data.redis.RedisSessionExpirationPolicy - Cleaning up sessions expiring at Mon Feb 12 11:52:00 CST 2018
2018-02-12 11:52:00 [pool-2-thread-1] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Opening RedisConnection
2018-02-12 11:52:00 [pool-2-thread-1] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Closing Redis Connection
2018-02-12 11:52:00 [pool-2-thread-1] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Opening RedisConnection
2018-02-12 11:52:00 [pool-2-thread-1] DEBUG org.springframework.data.redis.core.RedisConnectionUtils - Closing Redis Connection

刚配置好基本框架,但是看日志,发现啥也不干,基本是每5,6秒就打开关闭,会不会对性能有影响?

阅读 12.3k
3 个回答

这是定期删除过期的数据,类似于垃圾回收,没问题的

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题