1.問題
在做一些操作時,比如說添加之后再查詢,重復多次之后發現數據無法繼續添加,也無法查詢出數據。此時前台和后台都沒報錯。當再次啟動tomcat時,出現警告:
`The web application [***] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.`
2.原因
個人認為是連接沒有及時關閉,可能再加上內存不富裕,導致memeory leak。
3.解決方法
在動作結束之后及時關閉連接,可解決。
4.參考文章
轉自:https://blog.csdn.net/weixin_38601190/article/details/90648458