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.

Use linux swap for pagefile

Hello.
Is any way to allow Neo4j to use Linux swap file for pagefile?
I made it with 'swapon', increased 'dbms.memory.pagecache.size', but got "ERROR Invalid memory configuration - exceeds physical memory. Check the configured values for dbms.memory.pagecache.size and dbms.memory.heap.max_size"

1 REPLY 1

Hi Alexey,

This wouldn't be a good idea to use linux swap for the pagefile. Performance would probably be terrible if you could do it.

If you have X GB of RAM for the DB Page Cache and the DB won't fit into X, the most recently used parts of the database will stay in the DB Page Cache and the rest will stay on disk.

The heap should be set to fit the data that is in flight.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online