spring-redis报broken pipe错误
时间: 2016-07-29来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
如题,启动项目后,过个10几分钟就报错:
org.springframework.data.redis.RedisConnectionFailureException:
java.net.SocketException: Broken pipe;
nested exception is redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe。。。。。
版本:spring-data-redis-1.7.1.RELEASE.jar,jedis-2.8.1.jar(jedis-2.4.2.jar也试过)
配置xml为
<bean id="poolConfig" class="redis.clients.jedis.JedisPoolConfig">
<property name="maxIdle" value="5" />
<property name="maxTotal" value="10" />
<property name="testOnBorrow" value="true" />
</bean>

<bean id="connectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory" p:timeout="10000"
p:host-name="${redis.host}" p:port="${redis.port}" p:password="${redis.pass}" p:pool-config-ref="poolConfig"/>

<bean id="redisTemplate" class="org.springframework.data.redis.core.StringRedisTemplate">
<property name="connectionFactory" ref="connectionFactory" />
<property name="enableTransactionSupport" value="${redis.transactionSupport}" />
</bean>
参考网上的换版本等解决方法,都没有解决问题,求高手解惑

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行