CrawlScript / WebCollector

WebCollector is an open source web crawler framework based on Java.It provides some simple interfaces for crawling the Web,you can setup a multi-threaded web crawler in less than 5 minutes.
https://github.com/CrawlScript/WebCollector
GNU General Public License v3.0
3.07k stars 1.45k forks source link

好像OkHttp ConnectionPool和Okio Watchdog没有正确关闭 #95

Open lewiswu1209 opened 6 years ago

lewiswu1209 commented 6 years ago

我在写一个Web项目,后台放了个Webcollector爬取一些数据,然后前台做了几个页面做展示,但是Tomcat关闭的时候日志中会打印如下内容: The web application [] appears to have started a thread named [Okio Watchdog] but has failed to stop it. This is very likely to create a memory leak. The web application [] appears to have started a thread named [Okio Watchdog] but has failed to stop it.This is very likely to create a memory leak. 我不太熟悉OKHTTPClient,请教下这两个线程需要如何正确终止,谢谢啦。

hujunxianligong commented 6 years ago

请问是哪个版本?

On Fri, Oct 12, 2018, 8:20 PM Lewiswu1209 notifications@github.com wrote:

我在写一个Web项目,后台放了个Webcollector爬取一些数据,然后前台做了几个页面做展示,但是Tomcat关闭的时候日志中会打印如下内容: The web application [] appears to have started a thread named [Okio Watchdog] but has failed to stop it. This is very likely to create a memory leak. The web application [] appears to have started a thread named [Okio Watchdog] but has failed to stop it.This is very likely to create a memory leak. 我不太熟悉OKHTTPClient,请教下这两个线程需要如何正确终止,谢谢啦。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CrawlScript/WebCollector/issues/95, or mute the thread https://github.com/notifications/unsubscribe-auth/ADOYYSNcGx5sLXsoabu3EsJq_QdERV40ks5ukIkTgaJpZM4XZXjR .

lewiswu1209 commented 6 years ago

我去,您回复的这么快,WebCollector 2.73-alpha,用的maven仓库里的

hujunxianligong commented 6 years ago

回头我检查一下

On Fri, Oct 12, 2018, 8:28 PM Lewiswu1209 notifications@github.com wrote:

我去,您回复的这么快,WebCollector 2.73-alpha,用的maven仓库里的

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CrawlScript/WebCollector/issues/95#issuecomment-429308841, or mute the thread https://github.com/notifications/unsubscribe-auth/ADOYYUAfV0Tk0F5WRBc_gMiGYvjRgEHGks5ukIr7gaJpZM4XZXjR .

mdzz9527 commented 6 years ago

你还没有检查完