`
liyixing1
  • 浏览: 963944 次
  • 性别: Icon_minigender_1
  • 来自: 江西上饶
社区版块
存档分类
最新评论

warn Be sure that HttpMethod.releas eConnection() is always called and that only

 
阅读更多
2011-08-21 23:41:02,370 [] WARN  httpclient.SimpleHttpConnectionManager - SimpleHttpConnectionManager being used incorrectly.  Be sure that HttpMethod.releas
eConnection() is always called and that only one thread and/or method is using this connection manager at a time.

一直没关注apache.log文件(我将不同框架打在不同日志文件里面,org.apache全部打在了apache.log)。

发现了这个警告,原来是用完httpclient之后没有释放资源
通过类似
post.releaseConnection();
的代码来释放
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics