Skip to main content

Posts

Showing posts from 2019

Neo4j: How to config the heap size and verify the setting

Setting Max_Heap_Size We can set the parameters of heap size in Neo4j graph database by changing "neo4j.conf" The default location of neo4j is   "/neo4j/conf/ " Simply remove # from the the following lines and set the size as you want. "m" represents Mega Bytes and "g" represents the Giga Bytes dbms.memory.heap.initial_size=512m dbms.memory.heap.max_size=2g Verify Max_Heap_Size Following is the command to verify the size  you set. $ CALL dbms.listConfig("heap"); The output will look like name description value dynamic "dbms.memory.heap.initial_size" "Initial heap size. By default it is calculated based on available system resources." "512m" false "dbms.memory.heap.max_size" "Maximum heap size. By default it is calculated based on available system resources." "4G" false