Windows中的Neo4j中的内存,缓存和堆配置 [英] Memory, cache and heap configuration in Neo4j in Windows

查看:4211
本文介绍了Windows中的Neo4j中的内存,缓存和堆配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我理解当使用大图运行Neo4j时,必须显式配置映射内存,缓存和堆。

I understand that explicit configuration of mapped memory, cache and heap is necessary when running Neo4j with large graphs.

请告诉我如何更改这些设置?

Please provide me with some pointers on how can I change these settings? I realise you need to test with different settings, but what is a good starting point?

Neo4j社群版本:2.2RC01 Java Embedded数据库

Neo4j Community version: 2.2RC01 Java Embedded database

机器:8GB RAM

Machine: 8GB RAM

图表大小:20M节点(5个属性),220M边(2个属性)

Graph size: 20M nodes(5 properties), 220M edges(2 properties)

推荐答案

查看配置的手册,对于RC01你只需要设置页面缓存大小,例如到2G

See the manual for the config, for RC01 you only have to set the page-cache size, e.g. to 2G

dbms.pagecache.memory = 2g

您可以将设置提供给

new GraphDatabaseFactory()
.newGraphDatabaseBuilder(PATH)
.setConfig )
.newDatabase()

通过JVM参数运行Java程序时配置堆。

Heap is configured when you run your java program, via JVM parameters.

这篇关于Windows中的Neo4j中的内存,缓存和堆配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆