{"action":"created","issue":{"url":"https://api.github.com/repos/xtuhcy/gecco/issues/41","repository_url":"https://api.github.com/repos/xtuhcy/gecco","labels_url":"https://api.github.com/repos/xtuhcy/gecco/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/xtuhcy/gecco/issues/41/comments","events_url":"https://api.github.com/repos/xtuhcy/gecco/issues/41/events","html_url":"https://github.com/xtuhcy/gecco/issues/41","id":252805763,"number":41,"title":"线程没有正确结束？","user":{"login":"justpsvm","id":11767814,"avatar_url":"https://avatars3.githubusercontent.com/u/11767814?v=4","gravatar_id":"","url":"https://api.github.com/users/justpsvm","html_url":"https://github.com/justpsvm","followers_url":"https://api.github.com/users/justpsvm/followers","following_url":"https://api.github.com/users/justpsvm/following{/other_user}","gists_url":"https://api.github.com/users/justpsvm/gists{/gist_id}","starred_url":"https://api.github.com/users/justpsvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justpsvm/subscriptions","organizations_url":"https://api.github.com/users/justpsvm/orgs","repos_url":"https://api.github.com/users/justpsvm/repos","events_url":"https://api.github.com/users/justpsvm/events{/privacy}","received_events_url":"https://api.github.com/users/justpsvm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-25T06:00:06Z","updated_at":"2017-08-25T06:10:53Z","closed_at":null,"body":"链接大概有5-10k左右 如下:\r\n\r\n```java\r\nList<HttpRequest> requests;\r\n GeccoEngine.create()\r\n                .pipelineFactory(springPipelineFactory)\r\n                .classpath(\"xxx\")\r\n                .interval(2000)\r\n                .thread(thread)\r\n                .start(requests).start();\r\n```\r\n\r\n运行了一段时间过后 项目报错\r\n\r\n```\r\njava.lang.OutOfMemoryError: Unable to create new native thread\r\n```\r\n\r\n观察了下系统线程\r\n\r\n![](https://ws2.sinaimg.cn/large/006tKfTcgy1fivxfgwixbj30b80fw0uz.jpg)\r\n\r\n已经跑完的链接 run 方法并没有被结束 ，请问下爬虫跑完为什么没有让线程停止呢？ 谢谢了。"},"comment":{"url":"https://api.github.com/repos/xtuhcy/gecco/issues/comments/324832417","html_url":"https://github.com/xtuhcy/gecco/issues/41#issuecomment-324832417","issue_url":"https://api.github.com/repos/xtuhcy/gecco/issues/41","id":324832417,"user":{"login":"xtuhcy","id":3960351,"avatar_url":"https://avatars0.githubusercontent.com/u/3960351?v=4","gravatar_id":"","url":"https://api.github.com/users/xtuhcy","html_url":"https://github.com/xtuhcy","followers_url":"https://api.github.com/users/xtuhcy/followers","following_url":"https://api.github.com/users/xtuhcy/following{/other_user}","gists_url":"https://api.github.com/users/xtuhcy/gists{/gist_id}","starred_url":"https://api.github.com/users/xtuhcy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtuhcy/subscriptions","organizations_url":"https://api.github.com/users/xtuhcy/orgs","repos_url":"https://api.github.com/users/xtuhcy/repos","events_url":"https://api.github.com/users/xtuhcy/events{/privacy}","received_events_url":"https://api.github.com/users/xtuhcy/received_events","type":"User","site_admin":false},"created_at":"2017-08-25T06:10:53Z","updated_at":"2017-08-25T06:10:53Z","body":"start()方式启动engine线程不会释放的，会一直监听队列。run()方式启动engine，如果队列里没有需要抓取的内容就会停止线程"}}
{"actor":{"display_login":"xtuhcy"}}