Elastic search service not stopping on windows server 2012 x64

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/69859278-aa07-49b8-8904-9493a38736c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Btw we tried everything described
here: Redirecting to Google Groups
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4a374711-7593-46c7-ab90-ac29089c7dea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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
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?utm_medium=email&utm_source=footer.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/54D38E8A.6090800%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Well we have replaced the ms JDBC driver by the one found
here: 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
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 <javascript:> <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?utm_medium=email&utm_source=footer>.

For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c0fa97a7-42b3-4dd7-99df-ab71b53a7ac8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.