記一次jedis併發使用問題JedisException: Could not return the resource to the pool

今天線上突然發現個奇怪的問題項目第一次啓動的時候redis報錯JedisException: Could not return the resource to the pool 直接訪問接口的時候不報錯,訪問頁面的時候報這個錯。而且只有項目重啓的時候纔會報這個錯,剛開始以爲接口問題,仔細分析頁面原來這個頁面同時加載了好多個接口這些接口都調用了一個方法。而這個方法正好依賴redis。線下自己寫個多線
相關文章
相關標籤/搜索