liferay/liferay-plugins — pull request #32 by ivicac (2012-03-12 15:09:25+00:00)
Title: LPS-24178 - Tomcat warns of potential memory leak error due to unhalted threads on undeploying Solr-Web

Hi Ray,
I am sending to you a one pull request regarding to this issue.

The main cause of the problem is in MultiThreadedHttpConnectionManager class. It starts ReferenceQueueThread thread and this thread is killed only when you call MultiThreadedHttpConnectionManager.shutdownAll method(I call it in SolrServletContextListener.doPortalDestroy method). Otherwise you will get a message mentioned in the issue.

I have also changed default port for solr(8983 instead of 8080).

Also because of multithreading environment I have put some shutdown processing in BasicAuthSolrServer class, because otherwise some exceptions appear randomly.

Best Regards