This is very likely to create a memory leak.
生活随笔
收集整理的這篇文章主要介紹了
This is very likely to create a memory leak.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前言
- tomcat 7.0.78
- java 1.8.0_161
現象
tomcat啟動過程中出現如下報錯:
The web application [/xx/xxx] appears to have started a thread named [check_xx_xxx] but has failed to stop it. This is very likely to create a memory leak.線程check_xx_xxx啟動不成功,導致定時檢查的代碼不執行。
解決
該問題在測試環境和生產環境均遇到,且是偶發性的。網上檢索也未找到明確說明。
我在給java虛擬機添加了參數-server,發現問題解決了。-_-!
添加參數-server,參考:https://blog.csdn.net/sayyy/article/details/99420346
參考
https://www.cnblogs.com/TaleG/p/6022421.html
https://blog.csdn.net/tang_123_/article/details/6018219
https://www.cnblogs.com/z-sm/p/5674684.html
總結
以上是生活随笔為你收集整理的This is very likely to create a memory leak.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【tomcat】调整内存大小
- 下一篇: 冬瓜叶的功效与作用、禁忌和食用方法