Neo4j: JVM tuning properties ignored - neo4j

I installed Neo4j Community Edition 2.3.3 on a macbook air with 8GB of RAM. I'm trying to connect to a local database using the web interface.
My local db is quite large: ~200GB, ~600,000,000 nodes and ~1,000,000,000 of relationships.
Using the GUI I went to the options and I edited the file:
/Users/<user>/Documents/Neo4j/.neo4j-community.vmoptions
adding these two lines:
-server
-Xmx4096M
as explained here: http://neo4j.com/docs/stable/performance-guide.html
but those parameters are ignored.
When I try to start the db I get:
Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#b14302e' was successfully initialized, but failed to start. Please see attached cause exception.
And the messages.log file shows:
JVM memory information:
Free memory: 74.67 MB
Total memory: 123.00 MB
Max memory: 1.78 GB
P.S.:
The database was create on a linux (more powerful) machine where everything works fine. I copied the data/ directory locally.
EDIT
I tried with a fresh database, and the problem persists. It looks like neo4j 2.3.3 for mac is just broken. The server runs but the jvm parameters in
.neo4j-community.vmoptions
are ignored. I also tried to write random characters in that file and the JVM runs smoothly. I opened up an issue on github: https://github.com/neo4j/neo4j/issues/6810
UPDATE
The issue has been tagged as an operability bug. No clear solution yet.

Related

Ubuntu 20.04 memory leak with Docker and Tomcat 9

My setup is as follows:
Ubuntu 20.04 server (16GB RAM) which runs Docker and Elasticsearch 6.8.16 image in a container with following env values -e JAVA_OPTS="-Xmx2g -Xms1g -XX:MaxPermSize=1g".
It also hosts two apps on Tomcat 9, and I have also set up these envs for Tomcat via setenv.sh in Tomcat's bin folder.
However, after a few hours, my remaining memory is less than 100MB and it happens every day. It stabilizes after I reboot the server, but after a few hours it falls under 100MB again.
Does anyone know how can I fix this?
If anyone needs any additional information, I am more than happy to provide it.
P.S. For some reason, my CPU always has 100% usage on one core while the other one is below 10%.
Thanks in advance!

Neo4J Community 4.1.6 Stops after starting

I try to run Neo4J Community Edition 4.1.6 and need a hint. I have downloaded the winzip-package and unzipped it on a Windows 10 PC. I created a folder for the Neo4j files and another for the current JDK 15 package. The path for JDK has been put into system path variables. The log-flags in the neo4j conf has been set to DEBUG for HTPP. JAVA version throws the correct "15.0.2". No JAVA error message while starting.
I can start the service and the status gives back "Neo4j Service started...". After roughly 10 seconds the status shows that Neo4j has stopped without any further notice.
I can't see any logs in the \logs folder - the folder is empty.
I do not see a graphdb been created under neo4j-community-4.1.6\data\databases - the folder is empty
I cannot access the DB by localhost:7474
I do not see any error messages in the cmd windows.
I restarted the system several times but I still have the same outcome. Any hints?
Thank you
I believe we only support JDK 11 when using Neo4j 4.x.
https://neo4j.com/docs/operations-manual/current/installation/requirements/#deployment-requirements-java
Your errors may be because you are using JDK 15.
When diagnosing issues, it also helps to check the neo4j.log and debug.log files in the logs directory.

Neo4j 3.3.0 community edition Open NLP

Installed Neo4j CE 3.3.0 on windows RAM 8GB. I referred to https://medium.com/#david.allen_3172/using-nlp-in-neo4j-ac40bc92196f for installation of the open NLP and APOC packages.
Plugins were copied to the plugins folder (graphaware-nlp-3.3.0.51.1, graphaware-server-enterprise-all-3.3.0.51 and nlp-opennlp-3.3.0.51.1).
The configuration setting were added to neo4j.conf file as given in https://github.com/graphaware/neo4j-nlp
When I restart the Neo4j server, it takes a lot of time and then gives me the following error mesasge:
Caused by: java.lang.OutOfMemoryError: Java heap space Exception in
thread "GraphAware Starter" java.lang.RuntimeException: Error while
initializing model of class: class
opennlp.tools.namefind.TokenNameFinderModel
at
com.graphaware.nlp.processor.opennlp.OpenNLPPipeline.loadModel(OpenNLPPipeline.java:504)
at
com.graphaware.nlp.processor.opennlp.OpenNLPPipeline.lambda$loadNamedEntitiesFinders$2(OpenNLPPipeline.java:162)
at java.util.HashMap$EntrySpliterator.forEachRemaining(Unknown
Without the plugins of NLP, Neo4j starts fine. Any help appreciated here on the minimum requirements of RAM/hardware.
The language models require memory to be loaded. So I would suggest to use at least 4GB or more. Furthermore you should use Enterprise version not CE.

neo4j on CENTOS 6.9 keeps stopping

I'm running Neo4j 3.2.6 on CENTOS 6.9. I have two problems:
First, Neo4j keeps stopping (typically about 5 times per day). There is nothing in the debug.log at the time of the failure (although there are many lines from the time I restart the service). How can I identify the problem? Which log files would give me a clue to the problem? Happy to share log files here if someone tells me which files to share.
Second, the above problem is compounded by the fact that I can't get Neo4j to restart automatically when it fails. I believe CENTOS 6.9 uses Upstart but I'm not having much luck setting this up. How do I set up Neo4j to restart on failure in CENTOS 6.9?

Delays browsing neo4j server

I've installed Neo4J 3.2.1 server on an Ubuntu 14.04 machine with 16G of RAM. I'm connecting to this Neo4J server from my Windows 10 laptop via browser (http://server_ip_address:7474).
I'm working with 3 different graphs with 280MB, 6MB and 13MB. No problem when I activate one of the two smaller ones but impossible to work (make cypher queries in the NEO4J-browser) with the larger because it blocks for long periods (over one minute each).
I've tried to fix this myself. Read https://neo4j.com/docs/operations-manual/current/performance/ and set the following values in neo4j.conf file: - dbms.memory.heap.initial_size=12g; - dbms.memory.heap.max_size=12g; - dbms.memory.pagecache.size=4g.
I also tried: - echo noop > /sys/block/sda/queue/scheduler; - mount -o remount,noatime /.
Since none of these attempts worked, I would appreciate some help!
I'm not sure but it seems that there's some kind of cyclic script running causing the delays.
I only have trouble using the http browser server. I wrote a simple java application to make remote queries without using the http browser, produced a executable jar with it and when I run that jar and make the queries the response times are normal.

Resources