Hello, Community: I use Solr with Windows servers, and cannot shutdown Solr successfully. When I try to stop Solr using solr.cmd, which is kicked from Windows Task Manager, it "looks" like Solr stops without any problem. Here "looks" means that at least log file that Solr wrote does not seem to have any error. (I pasted a piece of the log where I believe "success" at the end of this email )
However, next time I start up the Solr, I face the error message that says "Address already in use." This problem happens occasionally, happens a different server at irregular time/date. So, I could not simulate the situation yet. I wonder why Solr could not shutdown successfully. If anyone of you has faced a similar incident or knows a solution, then it is very helpful to share your bits of advice. Any clue will be very appreciated. *Environment* OS: Windows Server 2012 R2 Java: Oracle JDK 1.8.0 Solr Version: 5.2.1 Solr Structures:15 Solr server, enabled to distributed search with sharding (Not using SolrCloud) Memory(Solr / physical) : 20GB/32GB Index Size: around 300GB *Logs* INFO - 2019-05-25 21:06:15.996; [ ] org.apache.solr.core.CachingDirectoryFactory; looking to close D:\Documents\solr-home\collection1\data [CachedDir<<refCount=0;path=D:\Documents\solr-home\collection1\data;done=false>>] INFO - 2019-05-25 21:06:15.996; [ ] org.apache.solr.core.CachingDirectoryFactory; Closing directory: D:\Documents\solr-home\collection1\data INFO - 2019-05-25 21:06:15.996; [ ] org.apache.solr.core.CachingDirectoryFactory; looking to close D:\Documents\solr-home\collection1\data\index [CachedDir<<refCount=0;path=D:\Documents\solr-home\collection1\data\index;done=false>>] INFO - 2019-05-25 21:06:15.996; [ ] org.apache.solr.core.CachingDirectoryFactory; Closing directory: D:\Documents\solr-home\collection1\data\index INFO - 2019-05-25 21:06:16.199; [ ] org.eclipse.jetty.server.handler.ContextHandler; Stopped o.e.j.w.WebAppContext@4b9e13df {/solr,file:/D:/Documents/solr/server/solr-webapp/webapp/,UNAVAILABLE}{/solr.war} * Note: solr-home directory is the directory where I store Solr cores. Sincerely, Kaya Ota