I am having an issue with backups in version 3.5.12. It seems that when I leave the data and log files in the default location on the Ubuntu 18.04 Debian package (/var/lib/neo4j/data); backups work fine. When I split these locations to dedicated drives (dbms.directories.data=/mydatamount/data, and dbms.directories.tx_log=/mylogmount/log) I seem to run into issues with backups not working and giving the following error:
Looks like insufficient memory for JRE.
Error message says
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000003c0000000, 11453595648, 0) failed; error='Cannot allocate memory' (errno=12)
11453595648 bytes = 11.453595648 GB
And you have only 10GB
Ah, thanks for pointing that detail out. I guess overall my confusion was more due to me not understanding why the backup process needed so much more additional memory (obviously runs outside of the database process itself), and not having encountered this issue anywhere else with Neo4j to this point.
I did end up resolving the issue with help from Neo4j support. The issue was remedied by copying the neo4j.conf file to a different location and configuring the memory settings for the backup process itself ( dbms.memory.pagecache.size, dbms.memory.heap.init_size, dbms.memory.heap.max_size) with lower numbers that jive with available system memory.
Then, in my backup script I set the configuration file location with the following variable before executing the backup command: