Does it show anything in the log? Perhaps try catch block on your code and set a query timeout.
HTH /Jason On Wed, Jan 8, 2014 at 4:41 AM, Search User <feedwo...@gmail.com> wrote: > I have a web application in which I create a Transport Client using Spring > (singleton) and inject it into my service. When I receive a request in my > controller, controller calls the service and service uses the transport > client to execute the query and return the results. When I deploy this > application in tomcat, I have the client created but when I execute the > query, client hangs. > > If I create the client for every request (in my service) and run the > query, everything is fine. Can some one help me understand this behavior? > > Following is my code to create the Client object. > > Settings settings = ImmutableSettings.settingsBuilder().put("cluster.name" > , "mysearchcluster").put("client.transport.sniff", true).build(); > Client client = new TransportClient(settings).addTransportAddress(new > InetSocketTransportAddress("10.150.200.101", 9300)); > > > > Thanks > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/4c846ec4-15c5-4c6f-9e1c-6c56912cc2ee%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAHO4itxM795Xuo8tikF4oADgYH50R58Y8B0qwdMz4nU82koN3w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.