0
有誰知道如何增加一個Neo4j的Java堆大小?在Neo4j上增加Java堆大小
我正在加載一個csv文件到Neo4j數據庫,我無法加載它,因爲我需要增加Java堆大小... 我檢查了我有超過100GB的免費...我也有16GB的內存。 我的.jar文件位於「C:\ Program Files文件\ Neo4j的CE 3.1.4 \ BIN \ Neo4j的桌面-3.1.4.jar
有誰知道如何增加一個Neo4j的Java堆大小?在Neo4j上增加Java堆大小
我正在加載一個csv文件到Neo4j數據庫,我無法加載它,因爲我需要增加Java堆大小... 我檢查了我有超過100GB的免費...我也有16GB的內存。 我的.jar文件位於「C:\ Program Files文件\ Neo4j的CE 3.1.4 \ BIN \ Neo4j的桌面-3.1.4.jar
您可以設置neo4j.conf,這是通過取消註釋位於C:\Program Files\Neo4j CE 3.1.4\conf\
和設置這些行:
# Java Heap Size: by default the Java heap size is dynamically
# calculated based on available system resources.
# Uncomment these lines to set specific initial and maximum
# heap size.
#dbms.memory.heap.initial_size=512m
#dbms.memory.heap.max_size=512m
# The amount of memory to use for mapping the store files, in bytes (or
# kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g').
# If Neo4j is running on a dedicated server, then it is generally recommended
# to leave about 2-4 gigabytes for the operating system, give the JVM enough
# heap to hold all your transaction state and query context, and then leave the
# rest for the page cache.
# The default page cache memory assumes the machine is dedicated to running
# Neo4j, and is heuristically set to 50% of RAM minus the max Java heap size.
#dbms.memory.pagecache.size=10g
知道,如果你正在使用LOAD CSV
功能,你可以用USING PERIODIC COMMIT
前綴示例批處理您的交易從docs
USING PERIODIC COMMIT 1000
LOAD CSV FROM 'https://neo4j.com/docs/developer-manual/3.1/csv/artists.csv' AS line
CREATE (:Artist { name: line[1], year: toInt(line[2])})
。