Java堆空间错误neo4j [英] Java heap space error neo4j

查看:118
本文介绍了Java堆空间错误neo4j的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是第一次设置neo4j 2.1.3社区,在尝试加载大约17M的数据集时遇到了Java堆空间OutOfMemoryError.

I've just setup neo4j 2.1.3 community for the first time and I run into a java heap space OutOfMemoryError when trying to load a dataset of about 17M.

我正在使用具有16GB内存和OS X 10.9.4 Java版本1.7.0_21的Mac,并且尝试通过以下命令通过命令行增加堆大小:

I'm working on a Mac with 16GB memory and OS X 10.9.4 java version 1.7.0_21 and I tried increasing the heap size via the command line with:

java -Xmx2048m

问题是jvm似乎没有意识到这一点.我没有以这种方式设置Java设置的经验.

Problem is that the jvm doesn't seem to recongize this. I'm not experienced in setting java settings this way.

有什么建议吗?

推荐答案

您可以在配置文件neo4j-wrapper.conf

You can change settings of JVM heap in configuration file neo4j-wrapper.conf

# Java Heap Size: by default the Java heap size is dynamically
# calculated based on available system resources.
# Uncomment these lines to set specific initial and maximum
# heap size in MB.
#wrapper.java.initmemory=512
#wrapper.java.maxmemory=512

http://neo4j.com/docs/stable/server-performance.html

这篇关于Java堆空间错误neo4j的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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