The run instruction neo4j console
displays the following error messages
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Starting Neo4j Server console-mode...
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xms512m -Xmx1024 #as large as you canm
Error occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified
I suspected that the problem was the configuration of my Neo4j parameters. so I open the file neo4j-wrapper.conf,(sudo) vim neo4j-wrapper.conf
later, I delete the note “`#as large you kan“ after the wrapper.java.maxmemory=10240
, it can run normally, and the results are as follows:
root@VM-12-7-ubuntu:/home/thicker/GNN/FIRST/neo4j/bin# neo4j console
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Starting Neo4j Server console-mode...
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xms512m -Xmx10240m
2022-07-23 08:15:48.452+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2022-07-23 08:15:48.508+0000 INFO [Configuration] WARNING! Physical memory(8003MB) is less than assigned JVM memory(10451MB). Continuing but with available JVM memory set to available physical memory
2022-07-23 08:15:49.724+0000 INFO [API] Successfully started database
2022-07-23 08:15:49.777+0000 INFO [API] Starting HTTP on port :7474 with 40 threads available
2022-07-23 08:15:49.904+0000 INFO [API] Enabling HTTPS on port :7473
2022-07-23 08:15:49.905+0000 INFO [API] No SSL certificate found, generating a self-signed certificate..
2022-07-23 08:15:50.133+0000 INFO [API] Mounted discovery module at [/]
2022-07-23 08:15:50.159+0000 INFO [API] Loaded server plugin "GremlinPlugin"
2022-07-23 08:15:50.160+0000 INFO [API] GraphDatabaseService.execute_script: execute a Gremlin script with 'g' set to the Neo4j2Graph and 'results' containing the results. Only results of one object type is supported.
2022-07-23 08:15:50.160+0000 INFO [API] Mounted REST API at [/db/data/]
2022-07-23 08:15:50.162+0000 INFO [API] Mounted management API at [/db/manage/]
2022-07-23 08:15:50.162+0000 INFO [API] Mounted webadmin at [/webadmin]
2022-07-23 08:15:50.162+0000 INFO [API] Mounted Neo4j Browser at [/browser]
2022-07-23 08:15:50.204+0000 INFO [API] Mounting static content at [/webadmin] from [webadmin-html]
2022-07-23 08:15:50.243+0000 INFO [API] Mounting static content at [/browser] from [browser]
16:15:50.245 [main] WARN o.e.j.server.handler.ContextHandler - o.e.j.s.ServletContextHandler@21da484c{/,null,null} contextPath ends with /
16:15:50.245 [main] WARN o.e.j.server.handler.ContextHandler - Empty contextPath
16:15:50.247 [main] INFO org.eclipse.jetty.server.Server - jetty-9.0.5.v20130815
16:15:50.267 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.MovedContextHandler@6d97768d{/,null,AVAILABLE}
16:15:50.340 [main] INFO o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /webadmin, did not find org.apache.jasper.servlet.JspServlet
16:15:50.349 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.w.WebAppContext@660e8081{/webadmin,jar:file:/home/thicker/GNN/FIRST/neo4j/system/lib/neo4j-server-2.1.5-static-web.jar!/webadmin-html,AVAILABLE}
16:15:50.703 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@31621b95{/db/manage,null,AVAILABLE}
16:15:50.903 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@12fb3db8{/db/data,null,AVAILABLE}
16:15:50.917 [main] INFO o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /browser, did not find org.apache.jasper.servlet.JspServlet
16:15:50.918 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.w.WebAppContext@3fe9713a{/browser,jar:file:/home/thicker/GNN/FIRST/neo4j/system/lib/neo4j-browser-2.1.5.jar!/browser,AVAILABLE}
16:15:51.097 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@21da484c{/,null,AVAILABLE}
16:15:51.105 [main] INFO o.e.jetty.server.ServerConnector - Started ServerConnector@db18be0{HTTP/1.1}{0.0.0.0:7474}
16:15:51.497 [main] INFO o.e.jetty.server.ServerConnector - Started ServerConnector@56a2b12b{SSL-HTTP/1.1}{0.0.0.0:7473}
2022-07-23 08:15:51.497+0000 INFO [API] Server started on: http://0.0.0.0:7474/
2022-07-23 08:15:51.498+0000 INFO [API] Remote interface ready and available at [http://0.0.0.0:7474/]
Then run the instruction “`neo4j start“ to display the following error messages
root@VM-12-7-ubuntu:~# neo4j start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xms512m -Xmx10240m
Starting Neo4j Server...process [17130]... waiting for server to be ready.... Failed to start within 120 seconds.
Neo4j Server failed to start, please check the logs for details.
If startup is blocked on a long recovery, use '/home/thicker/GNN/FIRST/neo4j/bin/neo4j start-no-wait' to give the startup more time.
Follow the prompt and run the command ` ` ` neo4j start-no-wait “
Read More:
- Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap
- [Solved] Neo4j error: Import-Module & neo4j Neo.ClientError.Security.Unauthorized
- [Solved] elasticsearch.bat Running Flashback.: Error occurred during initialization of VM, Error occurred during initializatio
- [Solved] Neo4j error: Cannot merge the following node because of null property value for ‘casualty’
- [neo4j] error report when visiting neo4j in spring boot project
- [Solved] NPM run build package error: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- [Solved] FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of me
- Node Memory Overflow: FATAL ERROR: Reached heap limit Allocation failed – JavaScript heap out of memory
- log4j Error: Please initialize the log4j system properly [How to Solve]
- [Solved] Build Error Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- [Solved] MindSpore Error: ValueError: Minimum inputs size 0 does not match…
- Apiserver Error: OpenAPI spec does not exists [How to Solve]
- [Solved] Initialization error encountered by JUnit unit test: Method initialization error not found
- Android studio version 3.0 import version 2.2.2 error Error:This Gradle plugin requires Studio 3.0 minimum
- [Solved] Disconnected from the target VM, address : ‘127.0.0.1:6847’ , transport : ‘socket’
- log4j:WARN No appenders could be found for logger (freemarker.cache)
- K8S error validating data: ValidationError(Deployment.spec): missing required field selector
- [Solved] Junit.test use error: log4j:WARN No appenders could be found for logger
- [Solved] Hexo FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
- Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least