I installed Neo4j Community Edition 3.4.7 on a Linux server, then loaded it with several gigabytes of data. There are no queries running, but there is one Java thread stuck at 100% CPU. There is no disk I/O. If I try to stop neo4j using sudo systemctl stop neo4j it does not shut down in time and is killed by the system. If I start neo4j again, the 100% thread comes back.
The last part of my debug log is:
2018-10-03 01:34:24.247+0000 INFO [o.n.k.i.t.l.p.LogPruningImpl] No log version pruned, last checkpoint was made in version 548
2018-10-03 01:35:01.874+0000 INFO [o.n.k.i.a.i.IndexPopulationJob] Completed node store scan. Flushing all pending updates.
BatchingMultipleIndexPopulator{activeTasks=3, executor=java.util.concurrent.ThreadPoolExecutor@12cd0ed2[Running, pool size = 7, active threads = 3, queued tasks = 0, completed tasks = 1791], batchedUpdates = [0 updates], queuedUpdates = 0}
2018-10-03 01:35:01.874+0000 INFO [o.n.k.i.a.i.IndexPopulationJob] Shutting down executor.
BatchingMultipleIndexPopulator{activeTasks=3, executor=java.util.concurrent.ThreadPoolExecutor@12cd0ed2[Running, pool size = 7, active threads = 3, queued tasks = 0, completed tasks = 1792], batchedUpdates = [0 updates], queuedUpdates = 0}
2018-10-03 01:35:10.957+0000 INFO [o.n.k.i.a.i.IndexPopulationJob] Index creation finished. Index [:Diagnosis(IsCancer) [provider: {key=lucene+native, version=2.0}]] is ONLINE.
2018-10-03 01:49:24.276+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Checkpoint triggered by scheduler for time threshold @ txId: 3981434 checkpoint started...
2018-10-03 01:49:26.639+0000 INFO [o.n.k.i.s.c.CountsTracker] Rotated counts store at transaction 3981434 to [/data/neo4j/data/databases/graph.db/neostore.counts.db.b], from [/data/neo4j/data/databases/graph.db/neostore.counts.db.a].
2018-10-03 01:49:52.672+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Checkpoint triggered by scheduler for time threshold @ txId: 3981434 checkpoint completed in 28s 395ms
2018-10-03 01:49:52.672+0000 INFO [o.n.k.i.t.l.p.LogPruningImpl] No log version pruned, last checkpoint was made in version 548
The last part of the neo4j log:
Oct 02 23:26:49 nomad-neo4j-qa systemd[1]: Stopping Neo4j Graph Database...
Oct 02 23:26:49 nomad-neo4j-qa neo4j[7082]: 2018-10-02 23:26:49.358+0000 INFO Neo4j Server shutdown initiated by request
Oct 02 23:26:49 nomad-neo4j-qa neo4j[7082]: 2018-10-02 23:26:49.401+0000 INFO Stopping...
Oct 02 23:28:49 nomad-neo4j-qa systemd[1]: neo4j.service: State 'stop-sigterm' timed out. Killing.
Oct 02 23:28:52 nomad-neo4j-qa systemd[1]: neo4j.service: Main process exited, code=killed, status=9/KILL
Oct 02 23:28:52 nomad-neo4j-qa systemd[1]: Stopped Neo4j Graph Database.
Oct 02 23:28:52 nomad-neo4j-qa systemd[1]: neo4j.service: Unit entered failed state.
Oct 02 23:28:52 nomad-neo4j-qa systemd[1]: neo4j.service: Failed with result 'signal'.
Oct 02 23:30:52 nomad-neo4j-qa systemd[1]: Started Neo4j Graph Database.
Oct 02 23:30:52 nomad-neo4j-qa neo4j[21313]: Active database: graph.db
Oct 02 23:30:52 nomad-neo4j-qa neo4j[21313]: Directories in use:
Oct 02 23:30:52 nomad-neo4j-qa neo4j[21313]: home: /var/lib/neo4j
Oct 02 23:30:52 nomad-neo4j-qa neo4j[21313]: config: /etc/neo4j
Oct 02 23:30:52 nomad-neo4j-qa neo4j[21313]: logs: /var/log/neo4j
Oct 02 23:30:52 nomad-neo4j-qa neo4j[21313]: plugins: /var/lib/neo4j/plugins
Oct 02 23:30:52 nomad-neo4j-qa neo4j[21313]: import: /data/neo4j/import
Oct 02 23:30:52 nomad-neo4j-qa neo4j[21313]: data: /data/neo4j/data
Oct 02 23:30:52 nomad-neo4j-qa neo4j[21313]: certificates: /var/lib/neo4j/certificates
Oct 02 23:30:52 nomad-neo4j-qa neo4j[21313]: run: /var/run/neo4j
Oct 02 23:30:52 nomad-neo4j-qa neo4j[21313]: Starting Neo4j.
Oct 02 23:30:54 nomad-neo4j-qa neo4j[21313]: 2018-10-02 23:30:54.387+0000 INFO ======== Neo4j 3.4.7 ========
Oct 02 23:30:54 nomad-neo4j-qa neo4j[21313]: 2018-10-02 23:30:54.433+0000 INFO Starting...
Oct 02 23:31:03 nomad-neo4j-qa neo4j[21313]: 2018-10-02 23:31:03.997+0000 INFO Bolt enabled on 0.0.0.0:7687.
Oct 02 23:31:31 nomad-neo4j-qa neo4j[21313]: 2018-10-02 23:31:31.887+0000 INFO Started.
Oct 02 23:31:36 nomad-neo4j-qa neo4j[21313]: 2018-10-02 23:31:36.549+0000 INFO Remote interface available at http://localhost:7474/
I have a java thread dump as well, but it's too big to put in this message.