简体   繁体   English

Broken Pipe 在 neo4j 浏览器中展开子关系时出错

[英]Broken Pipe Error when expand child relationships in neo4j browser

I import data to neo4j, and run it locally through locahost:7474.我将数据导入neo4j,并通过locahost:7474在本地运行。 Every thing works fine except that when I click the 'Expand/Collapse child relationships' of a node (about 1000 relationships) in neo4j browser, the browser crashed.一切正常,除了当我在 neo4j 浏览器中单击节点的“展开/折叠子关系”(大约 1000 个关系)时,浏览器崩溃了。 I checked the debug.log, there is an error:我检查了debug.log,有一个错误:

2019-09-24 00:17:56.041+0000 ERROR [o.n.b.t.p.HouseKeeper] Fatal error occurred when handling a client connection: [id: 0xab13859e, L:/127.0.0.1:7687 ! R:/127.0.0.1:65375] Broken pipe
java.io.IOException: Broken pipe
        at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
        at sun.nio.ch.IOUtil.write(IOUtil.java:51)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
        at io.netty.channel.socket.nio.NioSocketChannel.doWrite(NioSocketChannel.java:405)
        at io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:938)
        at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.forceFlush(AbstractNioChannel.java:367)
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:650)
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:591)
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:508)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:470)
        at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909)
        at java.lang.Thread.run(Thread.java:748)

I searched a lot, some people said I should increase max open files, I ran the command launchctl limit maxfiles , I got the max open files is 65535. I think that is enough.我搜索了很多,有人说我应该增加最大打开文件数,我运行命令launchctl limit maxfiles ,我得到最大打开文件数是 65535。我认为这就足够了。

Anybody have any idea want happened?有人有任何想法想要发生吗? I am guessing this may result from some configuration of neo4j.我猜这可能是由于 neo4j 的某些配置造成的。

The exception例外

java.io.IOException: Broken pipe

means that the other side stopped communicating and didn't shutdown gracefully.意味着对方停止通信并且没有正常关闭。 In your case the other side is the browser.在您的情况下,另一端是浏览器。 So the error in the log is not important from server point of view.因此,从服务器的角度来看,日志中的错误并不重要。

The Neo4j browser is not designed to work with such a high number of nodes and relationships on the screen. Neo4j 浏览器不适合在屏幕上处理如此多的节点和关系。 Getting a better machine (with faster CPU and more memory) might help, but generally it is easier to be more specific in your query.获得更好的机器(具有更快的 CPU 和更多内存)可能会有所帮助,但通常更容易在查询中更具体。

Also try to uncheck Connect result nodes in browser settings (cog on bottom right).还尝试取消选中浏览器设置中的Connect result nodes (右下角的齿轮)。 Sometimes it is the relationships between the new nodes that cause the issue.有时是新节点之间的关系导致了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM