Skip to content

Commit

Permalink
Tweak Neo4j config to fix OutOfMemoryError
Browse files Browse the repository at this point in the history
Attempts to fix:

java.lang.OutOfMemoryError: GC overhead limit exceeded

Refs neo4j/neo4j#9209

From https://neo4j.com/docs/operations-manual/3.2/performance/#page-cache-sizing

You can determine the total memory needed for the page cache by summing up the sizes of
the NEO4J_HOME/data/databases/graph.db/*store.db* files and adding 20% for growth.

Hence, seems that 512m is sufficient for page cache.
  • Loading branch information
dhimmel committed Jun 22, 2017
1 parent 00bf0b6 commit 3f8dd90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hetnet/neo4j/docker/host/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
docker run \
--detach \
--name=hetionet-container \
--restart=on-failure:50 \
--restart=on-failure \
--publish=80:7474 \
--publish=443:7473 \
--publish=7687:7687 \
--volume=$HOME/hetionet-data:/data \
--volume=$HOME/neo4j-logs:/logs \
--volume=$HOME/ssl:/ssl \
--env=NEO4J_dbms_memory_pagecache_size=1g \
--env=NEO4J_dbms_memory_heap_maxSize=512m \
--env=NEO4J_dbms_memory_pagecache_size=512m \
--env=NEO4J_dbms_memory_heap_maxSize=1g \
dhimmel/hetionet

0 comments on commit 3f8dd90

Please sign in to comment.