获取摇篮错误"无法预留足够的空间对象堆"在不断的IntelliJ IDEA [英] Getting Gradle error "Could not reserve enough space for object heap" constantly in Intellij IDEA

查看:252
本文介绍了获取摇篮错误"无法预留足够的空间对象堆"在不断的IntelliJ IDEA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我有内存分配的问题。有时工作,有时没有。我读过<一个href="http://stackoverflow.com/questions/4401396/could-not-reserve-enough-space-for-object-heap">this螺纹并试图建议有多次。有时 -Xms512m -Xmx768m 的作品,有时候 -Xms256m -Xmx512m 。我厌倦了不得不下的IntelliJ调整此设置的构建,执行,部署&GT;构建工具&gt;摇篮&GT;摇篮VM 选项设置。是否有解决这个一劳永逸没有​​设置?

So I have a problem with memory allocation. Sometimes it works, and sometimes it doesn't. I've read this thread and tried the advice there multiple times. Sometimes -Xms512m -Xmx768m works, sometimes -Xms256m -Xmx512m. I'm sick and tired of having to tweak this setting in IntelliJ under the Build, Execution, Deployment > Build Tools > Gradle > Gradle VM options setting. Is there no setting that solves this once and for all?

我有16GB的RAM在我的Windows 7电脑,我跑的IntelliJ IDEA EAP 14构建138.2210.3,64位版本。 Android的摇篮构建插件v0.12。

I have 16GB of RAM on my Windows 7 computer, I'm running IntelliJ IDEA EAP 14 build 138.2210.3, 64 bit version. Android Gradle build plugin v0.12.

我怀疑摇篮未在64位模式下运行,否则将有空闲内存从吃〜7 GB。为什么不利用呢?

I'm suspecting gradle is not running in 64 bit mode, or else it would have ~7 GB of free memory to eat from. Why is it not utilizing this?

编辑:

我在的Visual Studio 2015年科尔多瓦5.1.1 的Windows 10 同样的错误。 请参阅下面我的解决方案。

I got the same error in Visual Studio 2015 with cordova 5.1.1 under Windows 10. See my solution below.

推荐答案

安装64位Java解决了这个问题对我来说

Installing 64 bit Java solved it for me

这篇关于获取摇篮错误&QUOT;无法预留足够的空间对象堆&QUOT;在不断的IntelliJ IDEA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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