Apache JMeter 5.2 has been released with lots of new features, enhancements, and bug fixes. JMeter 5.2 supports Bolt protocol out of the box. No need to install it via Plugins Manager. This blog post provides you an overview about performance testing Neo4j database using Bolt protocol in Apache JMeter 5.2
First, you need to add the basic elements such as Thread Group, Bolt Connection Configuration, and View Results Tree, then you need to add Bolt Request.
In Bolt Connection Configuration, you need to add the Bolt URI with the valid credentials. Default credentials of Neo4j is neo4j/neo4j. At first login, it will prompt you to change the password.
Once the connection is set up, next you need to load up the demo data in your Neo4j.
Bolt communicates over 7687 port.
Neo4j can be accessed from your favorite browser using http://localhost:7474.
Now, head back to JMeter and enter the below command in the Bolt Request.
MATCH (n:Movie) RETURN n LIMIT 25
Make sure you set the
Record Query Results flag set to
true, and then hit run.
In View Results Tree, you can see the response as shown below.
You cannot configure the pool size of Bolt Connection in this inception implementation.
You need to set the
Record Query Resultsset to
falsefor better performance.
Here is the complete video demo.