Neo4j-shell is not starting up

119 Views Asked by At

I have a problem using neo4j-shell in my mac. When I tried to start it up, these information showed up.

enter image description here

But I have Xms and Xmx set to 128 and 512 respectively and I did that in .bash_profile file

enter image description here

How can I fix this problem? Thx!

1

There are 1 best solutions below

2
On BEST ANSWER

You're getting caught by a typo. Instead of -Xmx512 it should be -Xmx512m.

You're specifying that the initial size should be 128MB, and that the maximum size should be 512 bytes. Without the m, that doesn't make sense. :)

EDIT - I tried your sample, and upped -XX:MaxPermSize to 512m, and it works for me:

export JAVA_OPTS="-Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m"