在專案中報錯:The last packet successfully received from the server was 81843482 milliSeconds,the last packer send successfully to the server wes 81843482 milliseconds ago,is longer than the server configured values of "wait_timeout".......
組態檔中配置的有:spring.datasource.maxIdleTime=1800
資料庫里面的timeOut_time 是28800,
理論上不是應該不會出現這種情況么?
資料庫連接上配置的還有autoReconnect=trrue,
很是困惑,跪求各位大神能指明可能問題原因
uj5u.com熱心網友回復:
自己頂一下,跪求啊,各位老鐵uj5u.com熱心網友回復:
你的 wait_timeout 是 28800 sec?81843482 ms 是超過 了啊uj5u.com熱心網友回復:
maxIdleTime是jdk的threadpoolexecutor的keepalivetime,keepalivetime是指當前執行緒總數超過corePoolSize,會將空閑時間超過maxIdleTIme的thread殺死知道執行緒總數為corePoolSize。你沒看到執行緒回收,應該是執行緒總數沒有達到corePoolSize。只有執行緒數達到corePoolSize,并且taskQueue佇列滿了才會添加worker執行緒。https://m.aliyun.com/yunqi/ask/18064/
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/78211.html
標籤:MySQL
上一篇:mysql 查詢第一次很慢,之后很快的問題,如何解決?
下一篇:linux下mysql安裝
