使用jstack查看到線程資源耗盡,線程被jedispool阻塞
解決方法 :配置poolConfig的maxWaitMillis爲1000
<bean id="poolConfig" class="redis.clients.jedis.JedisPoolConfig">
<property name="maxTotal" value="600" />
<property name="maxIdle" value="300" />
<property name="testOnBorrow" value="true" />
<property name="maxWaitMillis" value="1000" /><!--配置這個maxWaitMillis參數-->
</bean>