You can change the value of dbms.memory.heap.max_size in the settings page of the active database.
Here are steps to edit the value of dbms.memory.heap.max_size of the active database:
- On the Neo4J desktop, you will find the three dots (...) in the top right corner. Click on that. It will show you a small pop-up window. In that window, click on the settings. It will open the "Edit settings" page.
- In the "Edit settings" page, scroll down to find the variable dbms.memory.heap.max_size. The default value is 1G. Set it to a bigger value depending on the RAM on your computer.
- Click on the "Apply" button and restart the database.
If the new value of dbms.memory.heap.max_size is sufficient for your data, Neo4J will not throw the error.