-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
customized configuration of java heap size #72
Comments
OK. I have found solutions here. However, even these official solutions, it seems useless when using --env=NEO4J_dbms_memory_heap_maxSize=4G. The values in conf files were changed again to 512M. |
@WangAllen What does the command that you use to start the container look like? |
I ran the docker with this: |
@WangAllen Thanks. It would be helpful if you could try again with a precise label rather than relying on |
Yeah, I used the CE V3.0.6 version and the docker version is 1.6.2 on Ubuntu 15.04 (GNU/Linux 3.19.0-15-generic x86_64) platform. |
How did you fix this? i'm having the same issue on ubuntu 16, docker 1.13, neo 2.3.7 community (neo4j 3.1.1 picks up these variables correctly):
So despite --env=NEO4J_dbms_memory_heap_maxSize=2G, the server gets -Xmx512m. |
@mbsimonovic In 2.3 the environment variables are different: https://github.com/neo4j/docker-neo4j/blob/master/src/2.3/docker-entrypoint.sh#L22 use This described in the 2.3 manual: https://neo4j.com/developer/docker-23/ |
@spacecowboy thanks! Maybe the docs should be updated. |
This does not work using latest or 3.0. |
With regards to
Currently running Neo4j Enterprise 3.4.6 via Docker on Windows 10 [Version 10.0.17134.228] Have same problem where mounted config directory, However using command line options with This can be verified in cypher-shell
Note that while the command line argument names appear to be the same as in Configuration settings take care to read the Neo4j Operations Manual when using Docker; see section 2.5.3.1. Environment variables
It would be nice if these important notes were in more than one place, but then again when important notes are in several places, they do not always get updated consistently and then in the future when you find conflicting notes it can be harder to understand. |
I'm using the docker neo4j as my graph database. However, when I make some Cypher queries, it always runs to "java heap space" error. And I tried to change the configure file under $neo4j/conf dir, which contains two files: neo4j.conf and neo4j-wrapper.conf. I changed the neo4j-wrapper.conf to enlarge the dbms.memory.heap.initial_size=2048 and dbms.memory.heap.max_size=4096. But when I start the container again, it was modified to the original one again. What can I do to make the memory size be larger?
The text was updated successfully, but these errors were encountered: