Hello,
I'm using Spring Bean to initialize ES TransportClient: see the code here:
I just @Autowire EsClientProvider and everything works fine, except when
application stops, I still have threads running and it hangs, and I need to
kill the process to stop it.
Is anything could be done about this?
I've also tried explicitly call getClient().stop() before application
exits, but it doesn't change anything.
Hello,
I'm using Spring Bean to initialize ES TransportClient: see the code here: ElasticSearch Client on Spring · GitHub
I just @Autowire EsClientProvider and everything works fine, except when application stops, I still have threads running and it hangs, and I need to kill the process to stop it.
Is anything could be done about this?
I've also tried explicitly call getClient().stop() before application exits, but it doesn't change anything.
Thank you David, I'll try spring-elasticsearch out.
Did you find any solution for this hang up problem? I need to run some jobs
periodically which are using ES. I was planing to use cron, but with this
problem, I end up with lots of hanging process. Not acceptable for
production.
Thanks again
Eugene
On Wednesday, June 13, 2012 2:42:07 AM UTC-4, David Pilato wrote:
Hello,
I'm using Spring Bean to initialize ES TransportClient: see the code
here: ElasticSearch Client on Spring · GitHub
I just @Autowire EsClientProvider and everything works fine, except when
application stops, I still have threads running and it hangs, and I need to
kill the process to stop it.
Is anything could be done about this?
I've also tried explicitly call getClient().stop() before application
exits, but it doesn't change anything.
No. I did not try to find a solution as Google said at first that the issue was
closed. Shay gets in the 0.19 branch the last version of Guava. But then the
issue was reopened...
I'm not sure that there is a solution actually...
Also, in production, by now, each time I push a new version of my project, Sysop
team restart my jboss instance. So I don't really have Threads remaining.
But it's really a pain when you want to debug under tomcat as each time tomcat
restart, I get OOM exceptions...
You said that you run jobs using cron. That means that you start each time a new
jvm and stop it after the end of the job ?
If so, it should not be a problem for you as you kill the java process...
Thank you David, I'll try spring-elasticsearch out.
Did you find any solution for this hang up problem? I need to run some jobs
periodically which are using ES. I was planing to use cron, but with this
problem, I end up with lots of hanging process. Not acceptable for production.
Thanks again
Eugene
On Wednesday, June 13, 2012 2:42:07 AM UTC-4, David Pilato wrote:
Hello,
I'm using Spring Bean to initialize ES TransportClient: see the code
here: https://github.com/dadoonet/spring-elasticsearch ElasticSearch Client on Spring · GitHub
I just @Autowire EsClientProvider and everything works fine, except
when application stops, I still have threads running and it hangs, and
I need to kill the process to stop it.
Is anything could be done about this?
I've also tried explicitly call getClient().stop() before application
exits, but it doesn't change anything.
Hello,
I'm using Spring Bean to initialize ES TransportClient: see the code here: ElasticSearch Client on Spring · GitHub
I just @Autowire EsClientProvider and everything works fine, except when
application stops, I still have threads running and it hangs, and I need to
kill the process to stop it.
Is anything could be done about this?
I've also tried explicitly call getClient().stop() before application
exits, but it doesn't change anything.
Sorry, I should've included more details about the threads.
I've updated the Gist:
The top one are the threads which are still running after application exits.
Thank you
Eugene
On Thursday, June 14, 2012 5:46:57 PM UTC-4, kimchy wrote:
Which threads are still running? Are those the ones listed on the top of
the gist? if so, they are not ES related.
On Wed, Jun 13, 2012 at 7:53 AM, Eugene Strokin wrote:
Hello,
I'm using Spring Bean to initialize ES TransportClient: see the code
here: ElasticSearch Client on Spring · GitHub
I just @Autowire EsClientProvider and everything works fine, except when
application stops, I still have threads running and it hangs, and I need to
kill the process to stop it.
Is anything could be done about this?
I've also tried explicitly call getClient().stop() before application
exits, but it doesn't change anything.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.