5.1. The neo4j.conf file

This section introduces the neo4j.conf file, and its syntax.

This section contains the following:

For a complete reference of Neo4j configuration settings, see Section A.1, “Configuration settings”.

5.1.1. Introduction

The neo4j.conf file is the main source of configuration settings in Neo4j, and includes the mappings of configuration setting keys to values. The location of the neo4j.conf file in the different configurations of Neo4j is listed in Table 5.1, “Default file locations”.

Most of the configuration settings in the neo4j.conf file apply directly to Neo4j itself, but there are also some settings which apply to the Java Runtime (the JVM) on which Neo4j runs. For more information, see the JVM specific configuration settings below. Many of the configuration settings are also used by the neo4j launcher scripts.

5.1.2. Syntax

  • The equals sign (=) maps configuration setting keys to configuration values.
  • Lines that start with the number sign (#) are handled as comments.
  • Empty lines are ignored.
  • Configuring a setting in neo4j.conf will overwrite any default values. In case a setting can define a list of values, and you wish to amend the default values with custom values, you will have to explicitly list the default values along with the new values.
  • There is no order for configuration settings, and each setting in the neo4j.conf file must be uniquely specified. If you have multiple configuration settings with the same key, but different values, this can lead to unpredictable behavior.

    The only exception to this is dbms.jvm.additional. If you set more than one value for dbms.jvm.additional, then each setting value will add another custom JVM argument to the java launcher.

5.1.3. JVM-specific configuration settings

5.1.4. List currently active settings

You can use the procedure dbms.listConfig() to list the currently active configuration settings and their values.

Example 5.1. List currently active configuration settings
CALL dbms.listConfig()
YIELD name, value
WHERE name STARTS WITH 'dbms.default'
RETURN name, value
| name                              | value       |
| "dbms.default_advertised_address" | "localhost" |
| "dbms.default_database"           | "neo4j"     |
| "dbms.default_listen_address"     | "localhost" |

See also Section 5.7, “Dynamic settings” for information about dynamic settings.