# Elastic search service not stopping on windows server 2012 x64

**URL:** <https://discuss.elastic.co/t/elastic-search-service-not-stopping-on-windows-server-2012-x64/21995>\
**Category:** Elasticsearch\
**Created:** [February 5, 2015, 3:22pm UTC](https://discuss.elastic.co/t/elastic-search-service-not-stopping-on-windows-server-2012-x64/21995 "2015-02-05T15:22:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Geudens](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tim\_Geudens](https://discuss.elastic.co/u/Tim_Geudens)\
**Post date:** [February 5, 2015, 3:22pm UTC](https://discuss.elastic.co/t/elastic-search-service-not-stopping-on-windows-server-2012-x64/21995/1 "2015-02-05T15:22:06Z")

</div>

Hi,

We have Elasticsearch installed as a service on a windows server 2012 64  
bit.  
Every time we try to stop the service it keeps hanging and we have to kill  
the process.

The log is saying the service stopped completely:

[2015-02-05 15:12:44] [debug] ( javajni.c:964 ) [1568] Java Worker thread  
finished org/elasticsearch/bootstrap/Elasticsearch:main with status=0  
[2015-02-05 15:12:44] [debug] ( prunsrv.c:1533) [3860] Worker finished.  
[2015-02-05 15:12:44] [debug] ( prunsrv.c:1559) [3860] Waiting for all  
threads to exit  
[2015-02-05 15:13:02] [debug] ( prunsrv.c:844 ) [4156]  
reportServiceStatusE: 3, 0, 3000, 0  
[2015-02-05 15:13:02] [info] ( prunsrv.c:943 ) [4272] Stopping service...  
[2015-02-05 15:13:02] [debug] ( javajni.c:941 ) [3180] Java Worker thread  
started org/elasticsearch/bootstrap/Elasticsearch:close  
[2015-02-05 15:13:02] [debug] ( javajni.c:964 ) [3180] Java Worker thread  
finished org/elasticsearch/bootstrap/Elasticsearch:close with status=0  
[2015-02-05 15:13:03] [debug] ( prunsrv.c:990 ) [4272] Waiting for java  
jni stop worker to finish...  
[2015-02-05 15:13:03] [debug] ( prunsrv.c:992 ) [4272] Java jni stop  
worker finished.  
[2015-02-05 15:13:03] [debug] ( prunsrv.c:844 ) [4272]  
reportServiceStatusE: 3, 0, 300000, 0  
[2015-02-05 15:13:03] [debug] ( prunsrv.c:1093) [4272] Waiting for worker  
to die naturally...  
[2015-02-05 15:13:03] [debug] ( prunsrv.c:1104) [4272] Worker finished  
gracefully in 0 ms.  
[2015-02-05 15:13:03] [info] ( prunsrv.c:1114) [4272] Service stop thread  
completed.

Our java version is 64 bit and the service is installed as 64 bit.

Is there anything else we can check?

Thanks.

Regards

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/69859278-aa07-49b8-8904-9493a38736c6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/69859278-aa07-49b8-8904-9493a38736c6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Tim\_Geudens](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tim\_Geudens](https://discuss.elastic.co/u/Tim_Geudens)\
**Post date:** [February 5, 2015, 3:28pm UTC](https://discuss.elastic.co/t/elastic-search-service-not-stopping-on-windows-server-2012-x64/21995/2 "2015-02-05T15:28:11Z")

</div>

Btw we tried everything described  
here: [Redirecting to Google Groups](https://groups.google.com/forum/#!searchin/elasticsearch/stop$20service/elasticsearch/nzf4sUcf7n0/DpPwKi6cQB4J)  
We seem to be having the same problem but we need a JDBC driver so we can't  
just remove that.

On Thursday, 5 February 2015 16:22:06 UTC+1, Tim Geudens wrote:

> Hi,
> 
> We have Elasticsearch installed as a service on a windows server 2012 64  
> bit.  
> Every time we try to stop the service it keeps hanging and we have to kill  
> the process.
> 
> The log is saying the service stopped completely:
> 
> [2015-02-05 15:12:44] [debug] ( javajni.c:964 ) [1568] Java Worker thread  
> finished org/elasticsearch/bootstrap/Elasticsearch:main with status=0  
> [2015-02-05 15:12:44] [debug] ( prunsrv.c:1533) [3860] Worker finished.  
> [2015-02-05 15:12:44] [debug] ( prunsrv.c:1559) [3860] Waiting for all  
> threads to exit  
> [2015-02-05 15:13:02] [debug] ( prunsrv.c:844 ) [4156]  
> reportServiceStatusE: 3, 0, 3000, 0  
> [2015-02-05 15:13:02] [info] ( prunsrv.c:943 ) [4272] Stopping service...  
> [2015-02-05 15:13:02] [debug] ( javajni.c:941 ) [3180] Java Worker thread  
> started org/elasticsearch/bootstrap/Elasticsearch:close  
> [2015-02-05 15:13:02] [debug] ( javajni.c:964 ) [3180] Java Worker thread  
> finished org/elasticsearch/bootstrap/Elasticsearch:close with status=0  
> [2015-02-05 15:13:03] [debug] ( prunsrv.c:990 ) [4272] Waiting for java  
> jni stop worker to finish...  
> [2015-02-05 15:13:03] [debug] ( prunsrv.c:992 ) [4272] Java jni stop  
> worker finished.  
> [2015-02-05 15:13:03] [debug] ( prunsrv.c:844 ) [4272]  
> reportServiceStatusE: 3, 0, 300000, 0  
> [2015-02-05 15:13:03] [debug] ( prunsrv.c:1093) [4272] Waiting for worker  
> to die naturally...  
> [2015-02-05 15:13:03] [debug] ( prunsrv.c:1104) [4272] Worker finished  
> gracefully in 0 ms.  
> [2015-02-05 15:13:03] [info] ( prunsrv.c:1114) [4272] Service stop  
> thread completed.
> 
> Our java version is 64 bit and the service is installed as 64 bit.
> 
> Is there anything else we can check?
> 
> Thanks.
> 
> Regards

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4a374711-7593-46c7-ab90-ac29089c7dea%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4a374711-7593-46c7-ab90-ac29089c7dea%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [February 5, 2015, 3:38pm UTC](https://discuss.elastic.co/t/elastic-search-service-not-stopping-on-windows-server-2012-x64/21995/3 "2015-02-05T15:38:50Z")

</div>

On the thread you mentioned, the OP didn't follow up on whether the links (containing connection pools, jTDS driver or  
options for the MS driver) helped.  
Again, it's not about removing the JDBC driver but rather replacing it or adding some options to make it behave correctly.

On 2/5/15 5:28 PM, Tim Geudens wrote:

> Btw we tried everything described  
> here: [Redirecting to Google Groups](https://groups.google.com/forum/#!searchin/elasticsearch/stop$20service/elasticsearch/nzf4sUcf7n0/DpPwKi6cQB4J)  
> We seem to be having the same problem but we need a JDBC driver so we can't just remove that.
> 
> On Thursday, 5 February 2015 16:22:06 UTC+1, Tim Geudens wrote:
> 
> ```
> Hi,
> 
> We have Elasticsearch installed as a service on a windows server 2012 64 bit.
> Every time we try to stop the service it keeps hanging and we have to kill the process.
> 
> The log is saying the service stopped completely:
> 
> [2015-02-05 15:12:44] [debug] ( javajni.c:964 ) [1568] Java Worker thread finished
> org/elasticsearch/bootstrap/Elasticsearch:main with status=0
> [2015-02-05 15:12:44] [debug] ( prunsrv.c:1533) [3860] Worker finished.
> [2015-02-05 15:12:44] [debug] ( prunsrv.c:1559) [3860] Waiting for all threads to exit
> [2015-02-05 15:13:02] [debug] ( prunsrv.c:844 ) [4156] reportServiceStatusE: 3, 0, 3000, 0
> [2015-02-05 15:13:02] [info] ( prunsrv.c:943 ) [4272] Stopping service...
> [2015-02-05 15:13:02] [debug] ( javajni.c:941 ) [3180] Java Worker thread started
> org/elasticsearch/bootstrap/Elasticsearch:close
> [2015-02-05 15:13:02] [debug] ( javajni.c:964 ) [3180] Java Worker thread finished
> org/elasticsearch/bootstrap/Elasticsearch:close with status=0
> [2015-02-05 15:13:03] [debug] ( prunsrv.c:990 ) [4272] Waiting for java jni stop worker to finish...
> [2015-02-05 15:13:03] [debug] ( prunsrv.c:992 ) [4272] Java jni stop worker finished.
> [2015-02-05 15:13:03] [debug] ( prunsrv.c:844 ) [4272] reportServiceStatusE: 3, 0, 300000, 0
> [2015-02-05 15:13:03] [debug] ( prunsrv.c:1093) [4272] Waiting for worker to die naturally...
> [2015-02-05 15:13:03] [debug] ( prunsrv.c:1104) [4272] Worker finished gracefully in 0 ms.
> [2015-02-05 15:13:03] [info] ( prunsrv.c:1114) [4272] Service stop thread completed.
> 
> Our java version is 64 bit and the service is installed as 64 bit.
> 
> Is there anything else we can check?
> 
> Thanks.
> 
> Regards
> 
> ```
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/4a374711-7593-46c7-ab90-ac29089c7dea%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4a374711-7593-46c7-ab90-ac29089c7dea%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/4a374711-7593-46c7-ab90-ac29089c7dea%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/4a374711-7593-46c7-ab90-ac29089c7dea%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Costin

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/54D38E8A.6090800%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/54D38E8A.6090800%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Tim\_Geudens](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tim\_Geudens](https://discuss.elastic.co/u/Tim_Geudens)\
**Post date:** [February 5, 2015, 3:43pm UTC](https://discuss.elastic.co/t/elastic-search-service-not-stopping-on-windows-server-2012-x64/21995/4 "2015-02-05T15:43:53Z")

</div>

Well we have replaced the ms JDBC driver by the one found  
here: [http://jtds.sourceforge.net/](http://jtds.sourceforge.net/) which is working fine but doesn't solve  
the problem. Can you maybe expand on the options you mentioned?

On Thursday, 5 February 2015 16:39:14 UTC+1, Costin Leau wrote:

> On the thread you mentioned, the OP didn't follow up on whether the links  
> (containing connection pools, jTDS driver or  
> options for the MS driver) helped.  
> Again, it's not about removing the JDBC driver but rather replacing it or  
> adding some options to make it behave correctly.
> 
> On 2/5/15 5:28 PM, Tim Geudens wrote:
> 
> > Btw we tried everything described  
> > here:  
> > [Redirecting to Google Groups](https://groups.google.com/forum/#!searchin/elasticsearch/stop$20service/elasticsearch/nzf4sUcf7n0/DpPwKi6cQB4J)  
> > We seem to be having the same problem but we need a JDBC driver so we  
> > can't just remove that.
> > 
> > On Thursday, 5 February 2015 16:22:06 UTC+1, Tim Geudens wrote:
> > 
> > ```
> > Hi, 
> > 
> > We have Elasticsearch installed as a service on a windows server 
> > 
> > ```
> 
> 2012 64 bit.
> 
> > ```
> > Every time we try to stop the service it keeps hanging and we have 
> > 
> > ```
> 
> to kill the process.
> 
> > ```
> > The log is saying the service stopped completely: 
> > 
> > [2015-02-05 15:12:44] [debug] ( javajni.c:964 ) [1568] Java Worker 
> > 
> > ```
> 
> thread finished
> 
> > ```
> > org/elasticsearch/bootstrap/Elasticsearch:main with status=0 
> > [2015-02-05 15:12:44] [debug] ( prunsrv.c:1533) [3860] Worker 
> > 
> > ```
> 
> finished.
> 
> > ```
> > [2015-02-05 15:12:44] [debug] ( prunsrv.c:1559) [3860] Waiting for 
> > 
> > ```
> 
> all threads to exit
> 
> > ```
> > [2015-02-05 15:13:02] [debug] ( prunsrv.c:844 ) [4156] 
> > 
> > ```
> 
> reportServiceStatusE: 3, 0, 3000, 0
> 
> > ```
> > [2015-02-05 15:13:02] [info] ( prunsrv.c:943 ) [4272] Stopping 
> > 
> > ```
> 
> service...
> 
> > ```
> > [2015-02-05 15:13:02] [debug] ( javajni.c:941 ) [3180] Java Worker 
> > 
> > ```
> 
> thread started
> 
> > ```
> > org/elasticsearch/bootstrap/Elasticsearch:close 
> > [2015-02-05 15:13:02] [debug] ( javajni.c:964 ) [3180] Java Worker 
> > 
> > ```
> 
> thread finished
> 
> > ```
> > org/elasticsearch/bootstrap/Elasticsearch:close with status=0 
> > [2015-02-05 15:13:03] [debug] ( prunsrv.c:990 ) [4272] Waiting for 
> > 
> > ```
> 
> java jni stop worker to finish...
> 
> > ```
> > [2015-02-05 15:13:03] [debug] ( prunsrv.c:992 ) [4272] Java jni 
> > 
> > ```
> 
> stop worker finished.
> 
> > ```
> > [2015-02-05 15:13:03] [debug] ( prunsrv.c:844 ) [4272] 
> > 
> > ```
> 
> reportServiceStatusE: 3, 0, 300000, 0
> 
> > ```
> > [2015-02-05 15:13:03] [debug] ( prunsrv.c:1093) [4272] Waiting for 
> > 
> > ```
> 
> worker to die naturally...
> 
> > ```
> > [2015-02-05 15:13:03] [debug] ( prunsrv.c:1104) [4272] Worker 
> > 
> > ```
> 
> finished gracefully in 0 ms.
> 
> > ```
> > [2015-02-05 15:13:03] [info] ( prunsrv.c:1114) [4272] Service stop 
> > 
> > ```
> 
> thread completed.
> 
> > ```
> > Our java version is 64 bit and the service is installed as 64 bit. 
> > 
> > Is there anything else we can check? 
> > 
> > Thanks. 
> > 
> > Regards 
> > 
> > ```
> > 
> > --  
> > You received this message because you are subscribed to the Google  
> > Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send  
> > an email to  
> > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\> \<mailto:  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) \<javascript:\>\>.  
> > To view this discussion on the web visit
> 
> [https://groups.google.com/d/msgid/elasticsearch/4a374711-7593-46c7-ab90-ac29089c7dea%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4a374711-7593-46c7-ab90-ac29089c7dea%40googlegroups.com)
> 
> > \<  
> > [https://groups.google.com/d/msgid/elasticsearch/4a374711-7593-46c7-ab90-ac29089c7dea%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/4a374711-7593-46c7-ab90-ac29089c7dea%40googlegroups.com?utm_medium=email&utm_source=footer)\>.
> 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Costin

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c0fa97a7-42b3-4dd7-99df-ab71b53a7ac8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c0fa97a7-42b3-4dd7-99df-ab71b53a7ac8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:34am UTC](https://discuss.elastic.co/t/elastic-search-service-not-stopping-on-windows-server-2012-x64/21995/5 "2017-07-06T00:34:44Z")

</div>


