cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Number of threads used by Neo4j driver

Hello,

I am using the driver 1.7.5 (java) in an async way and I noticed a weird behavior.

It seems that every incomming read request Session session = driver.session(READ); session.readTransactionAsync(tx -> tx.runAsync(query, parameters) creates two threads.
The number of threads continues to increase until it reaches twice the number of CPUs.

Is it a standard behavior of the neo4j driver? From my understanding, the number of threads should be minimal since one thread can handle multiple network connections in an async way.

Is it possible to configure the number of threads ???

Thank you

1 REPLY 1

eric13013
Node Clone

this is the default behavior on 1.7.5 and this will be possible to control the number of threads with incoming 4.0.0 version, according to this discussion.