[英]solrj socket setSoTimeout() changes response time
What would be the possible explanation for this ? 这可能是什么解释? We have a solr server and a java client which uses solrj.
我们有一个solr服务器和一个使用solrj的Java客户端。 When we set the setSoTimeout to something below 5000 the response from the solr server arrives in 20-30 ms.
当我们将setSoTimeout设置为5000以下时,solr服务器的响应将在20-30毫秒内到达。 However if we set it any higher or leave it at the default, the response time is 500-600 ms.
但是,如果将其设置为更高或保留为默认值,则响应时间为500-600毫秒。
OK, I don't think that the performance problem that you have is comming from socket timeout. 好的,我不认为您的性能问题是套接字超时引起的。
Other set of questions : - What is the request that you are executing ? 其他问题集:-您正在执行的请求是什么? - how many doc have you got in your index ?
-您的索引中有多少文档? what is the size of the index in MB?
索引的大小以MB为单位? - What is your server(s) configuration (CPU, RAM) ?
-您的服务器配置是什么(CPU,RAM)? - Are you running on shards (solrcloud)?
-您是否正在使用碎片(solrcloud)? if yes how many shard/replicas?
如果是,则有多少个分片/副本?
References : - solr wiki performance - solr wiki perfomance commons problems 参考: -Solr Wiki性能 -Solr Wiki性能常见问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.