1.neo4j节点数和边关系数达到千万上亿,频繁崩溃,查看内存显示java占用内存过高
1条回答 默认 最新
关注 解决方案:
使用命令:./neo4j-admin memrec --database=graph.db
得到如下信息:
# Memory settings recommendation from neo4j-admin memrec: # # Assuming the system is dedicated to running Neo4j and has 7800m of memory, # we recommend a heap size of around 3500m, and a page cache of around 1900m, # and that about 2500m is left for the operating system, and the native memory # needed by Lucene and Netty. # # Tip: If the indexing storage use is high, e.g. there are many indexes or most # data indexed, then it might advantageous to leave more memory for the # operating system. # # Tip: The more concurrent transactions your workload has and the more updates # they do, the more heap memory you will need. However, don't allocate more # than 31g of heap, since this will disable pointer compression, also known as # "compressed oops", in the JVM and make less effective use of the heap. # # Tip: Setting the initial and the max heap size to the same value means the # JVM will never need to change the heap size. Changing the heap size otherwise # involves a full GC, which is desirable to avoid. # # Based on the above, the following memory settings are recommended: dbms.memory.heap.initial_size=3500m dbms.memory.heap.max_size=3500m dbms.memory.pagecache.size=1900m # # The numbers below have been derived based on your current data volume in database and index configuration of database 'graph.db'. # They can be used as an input into more detailed memory analysis. # Lucene indexes: 0k # Data volume and native indexes: 14200m
根据给出的推荐配置,修改neo4j.conf如下三个选项,重启neo4j即可。
```bash dbms.memory.heap.initial_size dbms.memory.heap.max_size bms.memory.pagecache.size=1900m
```
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用
悬赏问题
- ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
- ¥15 gdf格式的脑电数据如何处理matlab
- ¥20 重新写的代码替换了之后运行hbuliderx就这样了
- ¥100 监控抖音用户作品更新可以微信公众号提醒
- ¥15 UE5 如何可以不渲染HDRIBackdrop背景
- ¥70 2048小游戏毕设项目
- ¥20 mysql架构,按照姓名分表
- ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
- ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
- ¥15 linux驱动,linux应用,多线程