Neo4j Configuration

半腔热情 提交于 2019-12-13 16:19:54

问题


I'm using Neo4j server. I'm running into an issue where the loads are relatively low. However, the response times are quite high. I think that the number of threads servicing requests is simply too small. Is there a way to adjust the size of the thread pool for servicing HTTP requests. Is that possible?


回答1:


It's a common misconception that more threads equals more performance. In reality it's often the other way around -- more threads equals lesser performance. I don't know how your graph or requests look though so it may not apply in your case.

But you can control that pool size with the property:

org.neo4j.server.webserver.maxthreads

in conf/neo4j-server.properties




回答2:


Have you done any work to optimize your queries? Added indexes, etc.?

Are you on the latest release (2.2.1)? I found that the performance enhancements in this newest release as they relate to my application to be significant.




回答3:


It's very important to profile your queries in neo4j as a starting point, especially if you are finding that some queries are getting a slow response while others do not. Changes in the query structure can make a huge difference in performance. If you are new to neo4j I suggest you look at this post from Wes Freeman explaining why some queries are slow and what you can do about it: Pragmatic Cypher Optimization



来源:https://stackoverflow.com/questions/9934463/neo4j-configuration

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!