提交conf
Browse files- conf/neo4j-admin.conf +85 -0
- conf/neo4j.conf +351 -0
- conf/server-logs.xml +98 -0
- conf/user-logs.xml +58 -0
conf/neo4j-admin.conf
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#********************************************************************
|
| 2 |
+
# Memory Settings
|
| 3 |
+
#********************************************************************
|
| 4 |
+
#
|
| 5 |
+
# Since the memory requirements of administration tasks generally differs from
|
| 6 |
+
# the ones of the DBMS, it is recommended to provide an administration-task-specific
|
| 7 |
+
# memory configuration.
|
| 8 |
+
#
|
| 9 |
+
# Memory settings are specified kibibytes with the 'k' suffix, mebibytes with
|
| 10 |
+
# 'm' and gibibytes with 'g'.
|
| 11 |
+
#
|
| 12 |
+
# Java Heap Size: If not explicitly set in neo4j.conf, the Java heap size is dynamically
|
| 13 |
+
# calculated based on available system resources. Uncomment these lines to set specific
|
| 14 |
+
# initial and maximum heap size.
|
| 15 |
+
#server.memory.heap.initial_size=512m
|
| 16 |
+
#server.memory.heap.max_size=512m
|
| 17 |
+
#
|
| 18 |
+
# The amount of memory to use for mapping the store files.
|
| 19 |
+
# If not explicitly set in any of the configuration files, the default page cache memory
|
| 20 |
+
# assumes the machine is dedicated to running Neo4j, and is heuristically set to 50% of RAM minus
|
| 21 |
+
# the Java heap size.
|
| 22 |
+
#server.memory.pagecache.size=10g
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
#********************************************************************
|
| 26 |
+
# JVM Parameters
|
| 27 |
+
#********************************************************************
|
| 28 |
+
|
| 29 |
+
# Parallel GC as throughput-oriented GC is ideal for administration tasks.
|
| 30 |
+
server.jvm.additional=-XX:+UseParallelGC
|
| 31 |
+
|
| 32 |
+
# Have common exceptions keep producing stack traces, so they can be
|
| 33 |
+
# debugged regardless of how often logs are rotated.
|
| 34 |
+
server.jvm.additional=-XX:-OmitStackTraceInFastThrow
|
| 35 |
+
|
| 36 |
+
# Trust that non-static final fields are really final.
|
| 37 |
+
# This allows more optimizations and improves overall performance.
|
| 38 |
+
server.jvm.additional=-XX:+UnlockExperimentalVMOptions
|
| 39 |
+
server.jvm.additional=-XX:+TrustFinalNonStaticFields
|
| 40 |
+
|
| 41 |
+
# Disable explicit garbage collection, which is occasionally invoked by the JDK itself.
|
| 42 |
+
server.jvm.additional=-XX:+DisableExplicitGC
|
| 43 |
+
|
| 44 |
+
# Restrict size of cached JDK buffers to 1 KB
|
| 45 |
+
server.jvm.additional=-Djdk.nio.maxCachedBufferSize=1024
|
| 46 |
+
|
| 47 |
+
# More efficient buffer allocation in Netty by allowing direct no cleaner buffers.
|
| 48 |
+
server.jvm.additional=-Dio.netty.tryReflectionSetAccessible=true
|
| 49 |
+
|
| 50 |
+
# Exits JVM on the first occurrence of an out-of-memory error. Its preferable to restart VM in case of out of memory errors.
|
| 51 |
+
server.jvm.additional=-XX:+ExitOnOutOfMemoryError
|
| 52 |
+
|
| 53 |
+
# Expand Diffie Hellman (DH) key size from default 1024 to 2048 for DH-RSA cipher suites used in server TLS handshakes.
|
| 54 |
+
# This is to protect the server from any potential passive eavesdropping.
|
| 55 |
+
server.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048
|
| 56 |
+
|
| 57 |
+
# Enable remote debugging
|
| 58 |
+
#server.jvm.additional=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
|
| 59 |
+
|
| 60 |
+
# This filter prevents deserialization of arbitrary objects via java object serialization, addressing potential vulnerabilities.
|
| 61 |
+
# By default this filter whitelists all neo4j classes, as well as classes from the hazelcast library and the java standard library.
|
| 62 |
+
# These defaults should only be modified by expert users!
|
| 63 |
+
# For more details (including filter syntax) see: https://openjdk.java.net/jeps/290
|
| 64 |
+
#server.jvm.additional=-Djdk.serialFilter=java.**;org.neo4j.**;com.neo4j.**;com.hazelcast.**;net.sf.ehcache.Element;com.sun.proxy.*;org.openjdk.jmh.**;!*
|
| 65 |
+
|
| 66 |
+
# Increase the default flight recorder stack sampling depth from 64 to 256, to avoid truncating frames when profiling.
|
| 67 |
+
server.jvm.additional=-XX:FlightRecorderOptions=stackdepth=256
|
| 68 |
+
|
| 69 |
+
# Allow profilers to sample between safepoints. Without this, sampling profilers may produce less accurate results.
|
| 70 |
+
server.jvm.additional=-XX:+UnlockDiagnosticVMOptions
|
| 71 |
+
server.jvm.additional=-XX:+DebugNonSafepoints
|
| 72 |
+
|
| 73 |
+
# Open modules for neo4j to allow internal access
|
| 74 |
+
server.jvm.additional=--add-opens=java.base/java.nio=ALL-UNNAMED
|
| 75 |
+
server.jvm.additional=--add-opens=java.base/java.io=ALL-UNNAMED
|
| 76 |
+
server.jvm.additional=--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
|
| 77 |
+
|
| 78 |
+
# Enable native memory access
|
| 79 |
+
server.jvm.additional=--enable-native-access=ALL-UNNAMED
|
| 80 |
+
|
| 81 |
+
# Enable access to JDK vector API
|
| 82 |
+
# server.jvm.additional=--add-modules=jdk.incubator.vector
|
| 83 |
+
|
| 84 |
+
# Disable logging JMX endpoint.
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#*****************************************************************
|
| 2 |
+
# Neo4j configuration
|
| 3 |
+
#
|
| 4 |
+
# For more details and a complete list of settings, please see
|
| 5 |
+
# https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/
|
| 6 |
+
#*****************************************************************
|
| 7 |
+
|
| 8 |
+
# The name of the default database
|
| 9 |
+
#initial.dbms.default_database=neo4j
|
| 10 |
+
|
| 11 |
+
# Paths of directories in the installation.
|
| 12 |
+
#server.directories.data=data
|
| 13 |
+
#server.directories.plugins=plugins
|
| 14 |
+
#server.directories.logs=logs
|
| 15 |
+
#server.directories.lib=lib
|
| 16 |
+
#server.directories.run=run
|
| 17 |
+
#server.directories.licenses=licenses
|
| 18 |
+
#server.directories.transaction.logs.root=data/transactions
|
| 19 |
+
|
| 20 |
+
# This setting constrains all `LOAD CSV` import files to be under the `import` directory. Remove or comment it out to
|
| 21 |
+
# allow files to be loaded from anywhere in the filesystem; this introduces possible security problems. See the
|
| 22 |
+
# `LOAD CSV` section of the manual for details.
|
| 23 |
+
server.directories.import=import
|
| 24 |
+
|
| 25 |
+
# Whether requests to Neo4j are authenticated.
|
| 26 |
+
# To disable authentication, uncomment this line
|
| 27 |
+
dbms.security.auth_enabled=false
|
| 28 |
+
|
| 29 |
+
# Anonymous usage data reporting
|
| 30 |
+
# To disable, uncomment this line
|
| 31 |
+
#dbms.usage_report.enabled=false
|
| 32 |
+
|
| 33 |
+
#********************************************************************
|
| 34 |
+
# Memory Settings
|
| 35 |
+
#********************************************************************
|
| 36 |
+
#
|
| 37 |
+
# Memory settings are specified kibibytes with the 'k' suffix, mebibytes with
|
| 38 |
+
# 'm' and gibibytes with 'g'.
|
| 39 |
+
# If Neo4j is running on a dedicated server, then it is generally recommended
|
| 40 |
+
# to leave about 2-4 gigabytes for the operating system, give the JVM enough
|
| 41 |
+
# heap to hold all your transaction state and query context, and then leave the
|
| 42 |
+
# rest for the page cache.
|
| 43 |
+
|
| 44 |
+
# Java Heap Size: by default the Java heap size is dynamically calculated based
|
| 45 |
+
# on available system resources. Uncomment these lines to set specific initial
|
| 46 |
+
# and maximum heap size.
|
| 47 |
+
#server.memory.heap.initial_size=512m
|
| 48 |
+
#server.memory.heap.max_size=512m
|
| 49 |
+
|
| 50 |
+
# The amount of memory to use for mapping the store files.
|
| 51 |
+
# The default page cache memory assumes the machine is dedicated to running
|
| 52 |
+
# Neo4j, and is heuristically set to 50% of RAM minus the Java heap size.
|
| 53 |
+
#server.memory.pagecache.size=10g
|
| 54 |
+
|
| 55 |
+
# Limit the amount of memory that all of the running transaction can consume.
|
| 56 |
+
# The default value is 70% of the heap size limit.
|
| 57 |
+
#dbms.memory.transaction.total.max=256m
|
| 58 |
+
|
| 59 |
+
# Limit the amount of memory that a single transaction can consume.
|
| 60 |
+
# By default there is no limit.
|
| 61 |
+
#db.memory.transaction.max=16m
|
| 62 |
+
|
| 63 |
+
#*****************************************************************
|
| 64 |
+
# Network connector configuration
|
| 65 |
+
#*****************************************************************
|
| 66 |
+
|
| 67 |
+
# With default configuration Neo4j only accepts local connections.
|
| 68 |
+
# To accept non-local connections, uncomment this line:
|
| 69 |
+
#server.default_listen_address=0.0.0.0
|
| 70 |
+
|
| 71 |
+
# You can also choose a specific network interface, and configure a non-default
|
| 72 |
+
# port for each connector, by setting their individual listen_address.
|
| 73 |
+
|
| 74 |
+
# The address at which this server can be reached by its clients. This may be the server's IP address or DNS name, or
|
| 75 |
+
# it may be the address of a reverse proxy which sits in front of the server. This setting may be overridden for
|
| 76 |
+
# individual connectors below.
|
| 77 |
+
#server.default_advertised_address=localhost
|
| 78 |
+
|
| 79 |
+
# You can also choose a specific advertised hostname or IP address, and
|
| 80 |
+
# configure an advertised port for each connector, by setting their
|
| 81 |
+
# individual advertised_address.
|
| 82 |
+
|
| 83 |
+
# By default, encryption is turned off.
|
| 84 |
+
# To turn on encryption, an ssl policy for the connector needs to be configured
|
| 85 |
+
# Read more in SSL policy section in this file for how to define a SSL policy.
|
| 86 |
+
|
| 87 |
+
# Bolt connector
|
| 88 |
+
server.bolt.enabled=true
|
| 89 |
+
#server.bolt.tls_level=DISABLED
|
| 90 |
+
#server.bolt.listen_address=:7687
|
| 91 |
+
#server.bolt.advertised_address=:7687
|
| 92 |
+
|
| 93 |
+
# HTTP Connector. There can be zero or one HTTP connectors.
|
| 94 |
+
server.http.enabled=true
|
| 95 |
+
server.http.listen_address=:7860
|
| 96 |
+
server.http.advertised_address=:7860
|
| 97 |
+
# server.http.listen_address=:7474
|
| 98 |
+
# server.http.advertised_address=:7474
|
| 99 |
+
# HTTPS Connector. There can be zero or one HTTPS connectors.
|
| 100 |
+
server.https.enabled=false
|
| 101 |
+
#server.https.listen_address=:7473
|
| 102 |
+
#server.https.advertised_address=:7473
|
| 103 |
+
|
| 104 |
+
# Number of Neo4j worker threads.
|
| 105 |
+
#server.threads.worker_count=
|
| 106 |
+
|
| 107 |
+
#*****************************************************************
|
| 108 |
+
# SSL policy configuration
|
| 109 |
+
#*****************************************************************
|
| 110 |
+
|
| 111 |
+
# Each policy is configured under a separate namespace, e.g.
|
| 112 |
+
# dbms.ssl.policy.<scope>.*
|
| 113 |
+
# <scope> can be any of 'bolt', 'https', 'cluster' or 'backup'
|
| 114 |
+
#
|
| 115 |
+
# The scope is the name of the component where the policy will be used
|
| 116 |
+
# Each component where the use of an ssl policy is desired needs to declare at least one setting of the policy.
|
| 117 |
+
# Allowable values are 'bolt', 'https', 'cluster' or 'backup'.
|
| 118 |
+
|
| 119 |
+
# E.g if bolt and https connectors should use the same policy, the following could be declared
|
| 120 |
+
# dbms.ssl.policy.bolt.base_directory=certificates/default
|
| 121 |
+
# dbms.ssl.policy.https.base_directory=certificates/default
|
| 122 |
+
# However, it's strongly encouraged to not use the same key pair for multiple scopes.
|
| 123 |
+
#
|
| 124 |
+
# N.B: Note that a connector must be configured to support/require
|
| 125 |
+
# SSL/TLS for the policy to actually be utilized.
|
| 126 |
+
#
|
| 127 |
+
# see: dbms.connector.*.tls_level
|
| 128 |
+
|
| 129 |
+
# SSL settings (dbms.ssl.policy.<scope>.*)
|
| 130 |
+
# .base_directory Base directory for SSL policies paths. All relative paths within the
|
| 131 |
+
# SSL configuration will be resolved from the base dir.
|
| 132 |
+
#
|
| 133 |
+
# .private_key A path to the key file relative to the '.base_directory'.
|
| 134 |
+
#
|
| 135 |
+
# .private_key_password The password for the private key.
|
| 136 |
+
#
|
| 137 |
+
# .public_certificate A path to the public certificate file relative to the '.base_directory'.
|
| 138 |
+
#
|
| 139 |
+
# .trusted_dir A path to a directory containing trusted certificates.
|
| 140 |
+
#
|
| 141 |
+
# .revoked_dir Path to the directory with Certificate Revocation Lists (CRLs).
|
| 142 |
+
#
|
| 143 |
+
# .verify_hostname If true, the server will verify the hostname that the client uses to connect with. In order
|
| 144 |
+
# for this to work, the server public certificate must have a valid CN and/or matching
|
| 145 |
+
# Subject Alternative Names.
|
| 146 |
+
#
|
| 147 |
+
# .client_auth How the client should be authorized. Possible values are: 'none', 'optional', 'require'.
|
| 148 |
+
#
|
| 149 |
+
# .tls_versions A comma-separated list of allowed TLS versions. By default only TLSv1.2 and TLSv1.3 are allowed.
|
| 150 |
+
#
|
| 151 |
+
# .trust_all Setting this to 'true' will ignore the trust truststore, trusting all clients and servers.
|
| 152 |
+
# Use of this mode is discouraged. It would offer encryption but no security.
|
| 153 |
+
#
|
| 154 |
+
# .ciphers A comma-separated list of allowed ciphers. The default ciphers are the defaults of
|
| 155 |
+
# the JVM platform.
|
| 156 |
+
|
| 157 |
+
# Bolt SSL configuration
|
| 158 |
+
#dbms.ssl.policy.bolt.enabled=true
|
| 159 |
+
#dbms.ssl.policy.bolt.base_directory=certificates/bolt
|
| 160 |
+
#dbms.ssl.policy.bolt.private_key=private.key
|
| 161 |
+
#dbms.ssl.policy.bolt.public_certificate=public.crt
|
| 162 |
+
#dbms.ssl.policy.bolt.client_auth=NONE
|
| 163 |
+
|
| 164 |
+
# Https SSL configuration
|
| 165 |
+
#dbms.ssl.policy.https.enabled=true
|
| 166 |
+
#dbms.ssl.policy.https.base_directory=certificates/https
|
| 167 |
+
#dbms.ssl.policy.https.private_key=private.key
|
| 168 |
+
#dbms.ssl.policy.https.public_certificate=public.crt
|
| 169 |
+
#dbms.ssl.policy.https.client_auth=NONE
|
| 170 |
+
|
| 171 |
+
# Cluster SSL configuration
|
| 172 |
+
#dbms.ssl.policy.cluster.enabled=true
|
| 173 |
+
#dbms.ssl.policy.cluster.base_directory=certificates/cluster
|
| 174 |
+
#dbms.ssl.policy.cluster.private_key=private.key
|
| 175 |
+
#dbms.ssl.policy.cluster.public_certificate=public.crt
|
| 176 |
+
|
| 177 |
+
# Backup SSL configuration
|
| 178 |
+
#dbms.ssl.policy.backup.enabled=true
|
| 179 |
+
#dbms.ssl.policy.backup.base_directory=certificates/backup
|
| 180 |
+
#dbms.ssl.policy.backup.private_key=private.key
|
| 181 |
+
#dbms.ssl.policy.backup.public_certificate=public.crt
|
| 182 |
+
|
| 183 |
+
#*****************************************************************
|
| 184 |
+
# Logging configuration
|
| 185 |
+
#*****************************************************************
|
| 186 |
+
|
| 187 |
+
# To enable HTTP logging, uncomment this line
|
| 188 |
+
#dbms.logs.http.enabled=true
|
| 189 |
+
|
| 190 |
+
# To enable GC Logging, uncomment this line
|
| 191 |
+
#server.logs.gc.enabled=true
|
| 192 |
+
|
| 193 |
+
# GC Logging Options
|
| 194 |
+
# see https://docs.oracle.com/en/java/javase/11/tools/java.html#GUID-BE93ABDC-999C-4CB5-A88B-1994AAAC74D5
|
| 195 |
+
#server.logs.gc.options=-Xlog:gc*,safepoint,age*=trace
|
| 196 |
+
|
| 197 |
+
# Number of GC logs to keep.
|
| 198 |
+
#server.logs.gc.rotation.keep_number=5
|
| 199 |
+
|
| 200 |
+
# Size of each GC log that is kept.
|
| 201 |
+
#server.logs.gc.rotation.size=20m
|
| 202 |
+
|
| 203 |
+
#*****************************************************************
|
| 204 |
+
# Miscellaneous configuration
|
| 205 |
+
#*****************************************************************
|
| 206 |
+
|
| 207 |
+
# Determines if Cypher will allow using file URLs when loading data using
|
| 208 |
+
# `LOAD CSV`. Setting this value to `false` will cause Neo4j to fail `LOAD CSV`
|
| 209 |
+
# clauses that load data from the file system.
|
| 210 |
+
#dbms.security.allow_csv_import_from_file_urls=true
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
# Value of the Access-Control-Allow-Origin header sent over any HTTP or HTTPS
|
| 214 |
+
# connector. This defaults to '*', which allows broadest compatibility. Note
|
| 215 |
+
# that any URI provided here limits HTTP/HTTPS access to that URI only.
|
| 216 |
+
#dbms.security.http_access_control_allow_origin=*
|
| 217 |
+
|
| 218 |
+
# Value of the HTTP Strict-Transport-Security (HSTS) response header. This header
|
| 219 |
+
# tells browsers that a webpage should only be accessed using HTTPS instead of HTTP.
|
| 220 |
+
# It is attached to every HTTPS response. Setting is not set by default so
|
| 221 |
+
# 'Strict-Transport-Security' header is not sent. Value is expected to contain
|
| 222 |
+
# directives like 'max-age', 'includeSubDomains' and 'preload'.
|
| 223 |
+
#dbms.security.http_strict_transport_security=
|
| 224 |
+
|
| 225 |
+
# Retention policy for transaction logs needed to perform recovery and backups.
|
| 226 |
+
db.tx_log.rotation.retention_policy=2 days 2G
|
| 227 |
+
|
| 228 |
+
# Whether or not any database on this instance are read_only by default.
|
| 229 |
+
# If false, individual databases may be marked as read_only using dbms.database.read_only.
|
| 230 |
+
# If true, individual databases may be marked as writable using dbms.databases.writable.
|
| 231 |
+
#dbms.databases.default_to_read_only=false
|
| 232 |
+
|
| 233 |
+
# Comma separated list of JAX-RS packages containing JAX-RS resources, one
|
| 234 |
+
# package name for each mountpoint. The listed package names will be loaded
|
| 235 |
+
# under the mountpoints specified. Uncomment this line to mount the
|
| 236 |
+
# org.neo4j.examples.server.unmanaged.HelloWorldResource.java from
|
| 237 |
+
# neo4j-server-examples under /examples/unmanaged, resulting in a final URL of
|
| 238 |
+
# http://localhost:7474/examples/unmanaged/helloworld/{nodeId}
|
| 239 |
+
#server.unmanaged_extension_classes=org.neo4j.examples.server.unmanaged=/examples/unmanaged
|
| 240 |
+
|
| 241 |
+
# A comma separated list of procedures and user defined functions that are allowed
|
| 242 |
+
# full access to the database through unsupported/insecure internal APIs.
|
| 243 |
+
#dbms.security.procedures.unrestricted=my.extensions.example,my.procedures.*
|
| 244 |
+
|
| 245 |
+
# A comma separated list of procedures to be loaded by default.
|
| 246 |
+
# Leaving this unconfigured will load all procedures found.
|
| 247 |
+
#dbms.security.procedures.allowlist=apoc.coll.*,apoc.load.*,gds.*
|
| 248 |
+
|
| 249 |
+
#********************************************************************
|
| 250 |
+
# JVM Parameters
|
| 251 |
+
#********************************************************************
|
| 252 |
+
|
| 253 |
+
# G1GC generally strikes a good balance between throughput and tail
|
| 254 |
+
# latency, without too much tuning.
|
| 255 |
+
server.jvm.additional=-XX:+UseG1GC
|
| 256 |
+
|
| 257 |
+
# Have common exceptions keep producing stack traces, so they can be
|
| 258 |
+
# debugged regardless of how often logs are rotated.
|
| 259 |
+
server.jvm.additional=-XX:-OmitStackTraceInFastThrow
|
| 260 |
+
|
| 261 |
+
# Make sure that `initmemory` is not only allocated, but committed to
|
| 262 |
+
# the process, before starting the database. This reduces memory
|
| 263 |
+
# fragmentation, increasing the effectiveness of transparent huge
|
| 264 |
+
# pages. It also reduces the possibility of seeing performance drop
|
| 265 |
+
# due to heap-growing GC events, where a decrease in available page
|
| 266 |
+
# cache leads to an increase in mean IO response time.
|
| 267 |
+
# Try reducing the heap memory, if this flag degrades performance.
|
| 268 |
+
server.jvm.additional=-XX:+AlwaysPreTouch
|
| 269 |
+
|
| 270 |
+
# Trust that non-static final fields are really final.
|
| 271 |
+
# This allows more optimizations and improves overall performance.
|
| 272 |
+
# NOTE: Disable this if you use embedded mode, or have extensions or dependencies that may use reflection or
|
| 273 |
+
# serialization to change the value of final fields!
|
| 274 |
+
server.jvm.additional=-XX:+UnlockExperimentalVMOptions
|
| 275 |
+
server.jvm.additional=-XX:+TrustFinalNonStaticFields
|
| 276 |
+
|
| 277 |
+
# Disable explicit garbage collection, which is occasionally invoked by the JDK itself.
|
| 278 |
+
server.jvm.additional=-XX:+DisableExplicitGC
|
| 279 |
+
|
| 280 |
+
# Restrict size of cached JDK buffers to 1 KB
|
| 281 |
+
server.jvm.additional=-Djdk.nio.maxCachedBufferSize=1024
|
| 282 |
+
|
| 283 |
+
# More efficient buffer allocation in Netty by allowing direct no cleaner buffers.
|
| 284 |
+
server.jvm.additional=-Dio.netty.tryReflectionSetAccessible=true
|
| 285 |
+
|
| 286 |
+
# Exits JVM on the first occurrence of an out-of-memory error. Its preferable to restart VM in case of out of memory errors.
|
| 287 |
+
# server.jvm.additional=-XX:+ExitOnOutOfMemoryError
|
| 288 |
+
|
| 289 |
+
# Expand Diffie Hellman (DH) key size from default 1024 to 2048 for DH-RSA cipher suites used in server TLS handshakes.
|
| 290 |
+
# This is to protect the server from any potential passive eavesdropping.
|
| 291 |
+
server.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048
|
| 292 |
+
|
| 293 |
+
# This mitigates a DDoS vector.
|
| 294 |
+
server.jvm.additional=-Djdk.tls.rejectClientInitiatedRenegotiation=true
|
| 295 |
+
|
| 296 |
+
# Enable remote debugging
|
| 297 |
+
#server.jvm.additional=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
|
| 298 |
+
|
| 299 |
+
# This filter prevents deserialization of arbitrary objects via java object serialization, addressing potential vulnerabilities.
|
| 300 |
+
# By default this filter whitelists all neo4j classes, as well as classes from the hazelcast library and the java standard library.
|
| 301 |
+
# These defaults should only be modified by expert users!
|
| 302 |
+
# For more details (including filter syntax) see: https://openjdk.java.net/jeps/290
|
| 303 |
+
#server.jvm.additional=-Djdk.serialFilter=java.**;org.neo4j.**;com.neo4j.**;com.hazelcast.**;net.sf.ehcache.Element;com.sun.proxy.*;org.openjdk.jmh.**;!*
|
| 304 |
+
|
| 305 |
+
# Increase the default flight recorder stack sampling depth from 64 to 256, to avoid truncating frames when profiling.
|
| 306 |
+
server.jvm.additional=-XX:FlightRecorderOptions=stackdepth=256
|
| 307 |
+
|
| 308 |
+
# Allow profilers to sample between safepoints. Without this, sampling profilers may produce less accurate results.
|
| 309 |
+
server.jvm.additional=-XX:+UnlockDiagnosticVMOptions
|
| 310 |
+
server.jvm.additional=-XX:+DebugNonSafepoints
|
| 311 |
+
|
| 312 |
+
# Open modules for neo4j to allow internal access
|
| 313 |
+
server.jvm.additional=--add-opens=java.base/java.nio=ALL-UNNAMED
|
| 314 |
+
server.jvm.additional=--add-opens=java.base/java.io=ALL-UNNAMED
|
| 315 |
+
server.jvm.additional=--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
|
| 316 |
+
|
| 317 |
+
# Enable native memory access
|
| 318 |
+
server.jvm.additional=--enable-native-access=ALL-UNNAMED
|
| 319 |
+
|
| 320 |
+
# Enable access to JDK vector API
|
| 321 |
+
# server.jvm.additional=--add-modules=jdk.incubator.vector
|
| 322 |
+
|
| 323 |
+
# Disable logging JMX endpoint.
|
| 324 |
+
server.jvm.additional=-Dlog4j2.disable.jmx=true
|
| 325 |
+
|
| 326 |
+
# Increasing the JSON log string maximum length
|
| 327 |
+
server.jvm.additional=-Dlog4j.layout.jsonTemplate.maxStringLength=32768
|
| 328 |
+
|
| 329 |
+
# Limit JVM metaspace and code cache to allow garbage collection. Used by cypher for code generation and may grow indefinitely unless constrained.
|
| 330 |
+
# Useful for memory constrained environments
|
| 331 |
+
#server.jvm.additional=-XX:MaxMetaspaceSize=1024m
|
| 332 |
+
#server.jvm.additional=-XX:ReservedCodeCacheSize=512m
|
| 333 |
+
|
| 334 |
+
# Allow big methods to be JIT compiled.
|
| 335 |
+
# Useful for big queries and big expressions where cypher code generation can create large methods.
|
| 336 |
+
#server.jvm.additional=-XX:-DontCompileHugeMethods
|
| 337 |
+
|
| 338 |
+
#********************************************************************
|
| 339 |
+
# Wrapper Windows NT/2000/XP Service Properties
|
| 340 |
+
#********************************************************************
|
| 341 |
+
# WARNING - Do not modify any of these properties when an application
|
| 342 |
+
# using this configuration file has been installed as a service.
|
| 343 |
+
# Please uninstall the service before modifying this section. The
|
| 344 |
+
# service can then be reinstalled.
|
| 345 |
+
|
| 346 |
+
# Name of the service
|
| 347 |
+
server.windows_service_name=neo4j
|
| 348 |
+
|
| 349 |
+
#********************************************************************
|
| 350 |
+
# Other Neo4j system properties
|
| 351 |
+
#********************************************************************
|
conf/server-logs.xml
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
|
| 4 |
+
Copyright (c) "Neo4j"
|
| 5 |
+
Neo4j Sweden AB [https://neo4j.com]
|
| 6 |
+
|
| 7 |
+
This file is part of Neo4j.
|
| 8 |
+
|
| 9 |
+
Neo4j is free software: you can redistribute it and/or modify
|
| 10 |
+
it under the terms of the GNU General Public License as published by
|
| 11 |
+
the Free Software Foundation, either version 3 of the License, or
|
| 12 |
+
(at your option) any later version.
|
| 13 |
+
|
| 14 |
+
This program is distributed in the hope that it will be useful,
|
| 15 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 16 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 17 |
+
GNU General Public License for more details.
|
| 18 |
+
|
| 19 |
+
You should have received a copy of the GNU General Public License
|
| 20 |
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
| 21 |
+
|
| 22 |
+
-->
|
| 23 |
+
<!--
|
| 24 |
+
This is a log4j 2 configuration file.
|
| 25 |
+
|
| 26 |
+
It is highly recommended to keep the original "debug.log" as is, to make sure enough data is captured in case
|
| 27 |
+
of errors in a format that neo4j developers can work with.
|
| 28 |
+
|
| 29 |
+
All configuration values can be queried with the lookup prefix "config:". You can for example, resolve
|
| 30 |
+
the path to your neo4j home directory with ${config:dbms.directories.neo4j_home}.
|
| 31 |
+
|
| 32 |
+
Please consult https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions and
|
| 33 |
+
available configuration options.
|
| 34 |
+
-->
|
| 35 |
+
<Configuration status="ERROR" monitorInterval="30" packages="org.neo4j.logging.log4j">
|
| 36 |
+
<Appenders>
|
| 37 |
+
<!-- Default debug.log, please keep -->
|
| 38 |
+
<RollingRandomAccessFile name="DebugLog" fileName="${config:server.directories.logs}/debug.log"
|
| 39 |
+
filePattern="$${config:server.directories.logs}/debug.log.%02i">
|
| 40 |
+
<Neo4jDebugLogLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSSZ}{GMT+0} %-5p [%c{1.}] %m%n"/>
|
| 41 |
+
<Policies>
|
| 42 |
+
<SizeBasedTriggeringPolicy size="20 MB"/>
|
| 43 |
+
</Policies>
|
| 44 |
+
<DefaultRolloverStrategy fileIndex="min" max="7"/>
|
| 45 |
+
</RollingRandomAccessFile>
|
| 46 |
+
|
| 47 |
+
<RollingRandomAccessFile name="HttpLog" fileName="${config:server.directories.logs}/http.log"
|
| 48 |
+
filePattern="$${config:server.directories.logs}/http.log.%02i">
|
| 49 |
+
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSSZ}{GMT+0} %-5p %m%n"/>
|
| 50 |
+
<Policies>
|
| 51 |
+
<SizeBasedTriggeringPolicy size="20 MB"/>
|
| 52 |
+
</Policies>
|
| 53 |
+
<DefaultRolloverStrategy fileIndex="min" max="5"/>
|
| 54 |
+
</RollingRandomAccessFile>
|
| 55 |
+
|
| 56 |
+
<RollingRandomAccessFile name="QueryLog" fileName="${config:server.directories.logs}/query.log"
|
| 57 |
+
filePattern="$${config:server.directories.logs}/query.log.%02i">
|
| 58 |
+
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSSZ}{GMT+0} %-5p %m%n"/>
|
| 59 |
+
<Policies>
|
| 60 |
+
<SizeBasedTriggeringPolicy size="20 MB"/>
|
| 61 |
+
</Policies>
|
| 62 |
+
<DefaultRolloverStrategy fileIndex="min" max="7"/>
|
| 63 |
+
</RollingRandomAccessFile>
|
| 64 |
+
|
| 65 |
+
<RollingRandomAccessFile name="SecurityLog" fileName="${config:server.directories.logs}/security.log"
|
| 66 |
+
filePattern="$${config:server.directories.logs}/security.log.%02i">
|
| 67 |
+
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSSZ}{GMT+0} %-5p %m%n"/>
|
| 68 |
+
<Policies>
|
| 69 |
+
<SizeBasedTriggeringPolicy size="20 MB"/>
|
| 70 |
+
</Policies>
|
| 71 |
+
<DefaultRolloverStrategy fileIndex="min" max="7"/>
|
| 72 |
+
</RollingRandomAccessFile>
|
| 73 |
+
</Appenders>
|
| 74 |
+
|
| 75 |
+
<Loggers>
|
| 76 |
+
<!-- Log levels. One of DEBUG, INFO, WARN, ERROR or OFF -->
|
| 77 |
+
|
| 78 |
+
<!-- The debug log is used as the root logger to catch everything -->
|
| 79 |
+
<Root level="INFO">
|
| 80 |
+
<AppenderRef ref="DebugLog"/> <!-- Keep this -->
|
| 81 |
+
</Root>
|
| 82 |
+
|
| 83 |
+
<!-- The query log, must be named "QueryLogger" -->
|
| 84 |
+
<Logger name="QueryLogger" level="INFO" additivity="false">
|
| 85 |
+
<AppenderRef ref="QueryLog"/>
|
| 86 |
+
</Logger>
|
| 87 |
+
|
| 88 |
+
<!-- The http request log, must be named "HttpLogger" -->
|
| 89 |
+
<Logger name="HttpLogger" level="INFO" additivity="false">
|
| 90 |
+
<AppenderRef ref="HttpLog"/>
|
| 91 |
+
</Logger>
|
| 92 |
+
|
| 93 |
+
<!-- The security log, must be named "SecurityLogger" -->
|
| 94 |
+
<Logger name="SecurityLogger" level="INFO" additivity="false">
|
| 95 |
+
<AppenderRef ref="SecurityLog"/>
|
| 96 |
+
</Logger>
|
| 97 |
+
</Loggers>
|
| 98 |
+
</Configuration>
|
conf/user-logs.xml
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
|
| 4 |
+
Copyright (c) "Neo4j"
|
| 5 |
+
Neo4j Sweden AB [https://neo4j.com]
|
| 6 |
+
|
| 7 |
+
This file is part of Neo4j.
|
| 8 |
+
|
| 9 |
+
Neo4j is free software: you can redistribute it and/or modify
|
| 10 |
+
it under the terms of the GNU General Public License as published by
|
| 11 |
+
the Free Software Foundation, either version 3 of the License, or
|
| 12 |
+
(at your option) any later version.
|
| 13 |
+
|
| 14 |
+
This program is distributed in the hope that it will be useful,
|
| 15 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 16 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 17 |
+
GNU General Public License for more details.
|
| 18 |
+
|
| 19 |
+
You should have received a copy of the GNU General Public License
|
| 20 |
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
| 21 |
+
|
| 22 |
+
-->
|
| 23 |
+
<!--
|
| 24 |
+
This is a log4j 2 configuration file that provides maximum flexibility.
|
| 25 |
+
|
| 26 |
+
All configuration values can be queried with the lookup prefix "config:". You can for example, resolve
|
| 27 |
+
the path to your neo4j home directory with ${config:dbms.directories.neo4j_home}.
|
| 28 |
+
|
| 29 |
+
Please consult https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions and
|
| 30 |
+
available configuration options.
|
| 31 |
+
-->
|
| 32 |
+
<Configuration status="ERROR" monitorInterval="30" packages="org.neo4j.logging.log4j">
|
| 33 |
+
|
| 34 |
+
<Appenders>
|
| 35 |
+
<RollingRandomAccessFile name="Neo4jLog" fileName="${config:server.directories.logs}/neo4j.log"
|
| 36 |
+
filePattern="$${config:server.directories.logs}/neo4j.log.%02i">
|
| 37 |
+
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSSZ}{GMT+0} %-5p %m%n"/>
|
| 38 |
+
<Policies>
|
| 39 |
+
<SizeBasedTriggeringPolicy size="20 MB"/>
|
| 40 |
+
</Policies>
|
| 41 |
+
<DefaultRolloverStrategy fileIndex="min" max="7"/>
|
| 42 |
+
</RollingRandomAccessFile>
|
| 43 |
+
|
| 44 |
+
<!-- Only used by "neo4j console", will be ignored otherwise -->
|
| 45 |
+
<Console name="ConsoleAppender" target="SYSTEM_OUT">
|
| 46 |
+
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSSZ}{GMT+0} %-5p %m%n"/>
|
| 47 |
+
</Console>
|
| 48 |
+
</Appenders>
|
| 49 |
+
|
| 50 |
+
<Loggers>
|
| 51 |
+
<!-- Log level for the neo4j log. One of DEBUG, INFO, WARN, ERROR or OFF -->
|
| 52 |
+
<Root level="INFO">
|
| 53 |
+
<AppenderRef ref="Neo4jLog"/>
|
| 54 |
+
<AppenderRef ref="ConsoleAppender"/>
|
| 55 |
+
</Root>
|
| 56 |
+
</Loggers>
|
| 57 |
+
|
| 58 |
+
</Configuration>
|