我正在设置一个新的neo4j v3.5.4社区实例。安装后,考虑到我的机器包含32G RAM,我将neo4j的初始和最大堆大小设置为16G,并将页面缓存设置为40G。然后,我执行以下步骤:
119263908 nodes
221814590 relationships
119263975 properties
CREATE CONSTRAINT ON (c:Contact) ASSERT c.tel IS UNIQUE
然后我遇到了无休止的重启...如下面的日志所示,neo4j开始填充索引,几分钟后,graph.db变得不可用,然后重新启动。重新启动后,它将尝试填充索引,几分钟后,它将再次重新启动,无休止。日志中没有异常或错误。
2019-04-25 06:08:57.100+0000 INFO [o.n.k.i.a.i.IndexPopulationJob] Index population started: [:Contact(tel) [provider: {key=native-btree, version=1.0}]]
2019-04-25 06:14:03.535+0000 INFO [o.n.g.f.m.e.CommunityEditionModule] No locking implementation specified, defaulting to 'community'
2019-04-25 06:14:03.718+0000 INFO [o.n.g.f.GraphDatabaseFacadeFactory] Creating 'graph.db' database.
2019-04-25 06:14:03.795+0000 INFO [o.n.k.a.DatabaseAvailabilityGuard] Requirement `Database available` makes database graph.db unavailable.
2019-04-25 06:14:03.798+0000 INFO [o.n.k.a.DatabaseAvailabilityGuard] Database graph.db is unavailable.
2019-04-25 06:14:03.853+0000 INFO [o.n.i.d.DiagnosticsManager] --- INITIALIZED diagnostics START ---
...
.....
.........
2019-04-25 06:14:06.222+0000 INFO [o.n.k.i.a.i.IndexPopulationJob] Index population started: [:Contact(tel) [provider: {key=native-btree, version=1.0}]]
2019-04-25 06:19:11.935+0000 INFO [o.n.g.f.m.e.CommunityEditionModule] No locking implementation specified, defaulting to 'community'
2019-04-25 06:19:12.106+0000 INFO [o.n.g.f.GraphDatabaseFacadeFactory] Creating 'graph.db' database.
2019-04-25 06:19:12.186+0000 INFO [o.n.k.a.DatabaseAvailabilityGuard] Requirement `Database available` makes database graph.db unavailable.
2019-04-25 06:19:12.188+0000 INFO [o.n.k.a.DatabaseAvailabilityGuard] Database graph.db is unavailable.
我不知道为什么会这样。任何建议将不胜感激!