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();
的代码来释放
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();
的代码来释放