Socket issues - neo4j/OS config

126 views
Skip to first unread message

Kevin Eid

unread,
May 20, 2015, 4:07:49 AM5/20/15
to ne...@googlegroups.com
Hi, 

I'm building a log generator app using multithreading and creating nodes and rels from these data. 

I'm having the following issue: 

"I/O exception (java.net.SocketException) caught when processing request: Socket closed"

I'm trying to change the config of my debian VMs (like timeout sockets, ...). 

Do you have any idea how to solve it? Do I need to change the neo4j.properties files or the OS config? 

Thanks in advance for your feedbacks, 

Kevin 

Michael Hunger

unread,
May 20, 2015, 4:19:23 AM5/20/15
to ne...@googlegroups.com
Kevin,

we need much more detail than that.

Neo4j version
how you interact with it, your stack
your code, what do you send how to Neo4j
full error message
messages.log of Neo4j

Michael

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kevin Eid

unread,
May 21, 2015, 5:47:01 AM5/21/15
to ne...@googlegroups.com
I work with neo4j 2.1.6 Community edition. 
I can't post the code but basically I write a dozen of nodes/rels creation queries; and create randomly hundreds of thousands of them. 
I joined erroLog screenshot and messages.log. 

Thanks,

Kevin
messages.log
errorLog.PNG

Michael Hunger

unread,
May 21, 2015, 7:49:13 AM5/21/15
to ne...@googlegroups.com
Your messages.log looks like if it you use Neo4j Enterprise in HA / Cluster mode?

There are also exceptions that say that the client closed the connection without reading the full response stream?
What kind of client code do you have (stack, kind of interaction).

Caused by: java.io.IOException: Connection reset by peer

Are you writing to master only?

There are also a lot of other network issues in your log-file, perhaps your network config is not consistent.

e.g.
java.net.NoRouteToHostException: No route to host


Michael

<messages.log><errorLog.PNG>

Kevin Eid

unread,
May 21, 2015, 8:54:01 AM5/21/15
to ne...@googlegroups.com
Yes I'm using HA/clustering mode and I only write to master. 

I interact with neo4j from Eclipse through the jdbc-neo4j driver. 

I'm also trying to fix the issues with OS config modifying tcp_syn_retries with "echo 6 > /proc/sys/net/ipv4/tcp_syn_retries"; could that help? 

Kevin 

Kevin Eid

unread,
May 21, 2015, 9:16:19 AM5/21/15
to ne...@googlegroups.com
Another precision, we set up the HA proxy independently from the neo4j community server.

Michael Hunger

unread,
May 21, 2015, 10:05:52 AM5/21/15
to ne...@googlegroups.com
Don't know.

The JDBC driver is not most efficient yet, I still have to update it to a better implementation,

for testing out issue could you try to use this as interaction?


Michael

Kevin Eid

unread,
May 21, 2015, 10:29:08 AM5/21/15
to ne...@googlegroups.com
Thanks, I will!

Kevin 
Reply all
Reply to author
Forward
0 new messages