juanferrub/liferay-plugins — pull request #16 by ivicac (2012-02-11 02:38:22+00:00)
Title: LPS-24178 - Tomcat warns of potential memory leak error due to unhalted .threads on undeploying Solr-Web

Hi Juan,
regarding to this issue there is a problem with a normal and clustered configuration as well of solr-web(see LPS-23985). In both cases I am getting the message so I have tested both cases and have made changes for both cases.

The only way to get rid of the message is to call MultiThreadedHttpConnectionManager.shutdownAll(); method. I call it now in a SolrServletContextListener class. Other changes are mostly try-catch expressions because we have threading environment and there are situations that after connections are closed you have a last call from liferay to solr after connections are closed( see BasicAuthSolrServer class and method request for example)

Best Regards