简体   繁体   中英

Get neo4j uptime using cypher

I need to make a query to get the uptime of a neo4j database that I connect to remotely. I have been looking at the documentation, especially the cypher console as it is the one I use to connect to neo4j but I can't find anything about the uptime. Thank you very much.

Seems like there is an option to get the uptime with the following Cypher statement:

call dbms.queryJmx("java.lang:type=Runtime") 
yield attributes 
return attributes.Uptime

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM