The Thaumatorium:
Where the magic happens

Configuring JMeter for Neo4j

Watch these videos to get a feel for JMeter if you don't know it yet (set speed to 2x and use the arrow keys to skip boring parts). YES, I KNOW IT'S FOR HTTP ONLY! It's just so you get familiar fast with the UI 🙂

Steps to Configure JMeter for Neo4j

  1. Create a Thread Group
  2. Create a JDBC Connection Configuration via Add > Config Element
  3. Create a JDBC Request via Add > Sampler
  4. Create a View Results Tree (this shows the response data in a tab) via Add > Listener

You should have something like this:

JMeter Setup Example

Set the JDBC Connection Configuration:

JDBC Connection Configuration

Set the JDBC Request:

(I can't tell you what to exactly put in the "SQL Query" part, because I don't know your data structures)

JDBC Request Example

Download the JDBC Driver for Neo4j:

Get neo4j-jdbc-driver-3.1.0.jar or a similar version:

Add the JDBC Driver to the Library:

Add the file to the Library in your Test Plan:

Add JDBC Driver to Library

Run the Test:

Press the Green Play button to run the test. You should see results. However, note that JMeter may have trouble with setting up multiple connections, which can cause errors (indicated by a red shield with a cross).

JMeter Test Results

This process should not have been this hard to find. It took me 3 frustrating hours to figure this out on my own. I suffered so you don't have to. 😒