Visual Studio 2015 RC及Cordova:无法为对象堆保留足够的空间 [英] Visual Studio 2015 RC & Cordova: Could not reserve enough space for object heap

查看:86
本文介绍了Visual Studio 2015 RC及Cordova:无法为对象堆保留足够的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环境


  • VS 14.0.22823.1 D14REL

  • VS 14.0.22823.1 D14REL

jdk1.7.0_55 32位(当前Android SDK附带)

jdk1.7.0_55 32 bit which comes with current Android SDK

Windows 8.1

Windows 8.1

问题:


  • 创建新建类型为 Appache Cordova Apps的项目,保留默认名称 BlankCordovApp3

  • 使用默认设置构建应用程序:正常

  • Doubleclick配置。 xml;配置编辑器打开;转到平台,然后将Cordova CLI更改为 5.0.0。

  • 重新构建解决方案几次,并且/或者选择清理解决方案

  • 错误消息: VM初始化期间发生错误; 无法为对象堆保留足够的空间

  • Create new Project of type "Appache Cordova Apps", leave default name "BlankCordovApp3"
  • Build the app with default settings: Works fine
  • Doubleclick config.xml; the config editor opens; goto "platforms" and change Cordova CLI to "5.0.0."
  • Rebuild solution it several times and/or select "Clean Solution"
  • Error message: "Error occurred during initialization of VM; Could not reserve enough space for object heap"

推荐答案

解决方案:


  • 不要更改任何JVM参数,Cordova脚本就有理由使用最小最大堆大小的那些设置。

  • 在我的情况下: C:\Program文件\Java\jdk1.8.0_31

  • 相反,使用64位JDK并将其设置为PATH环境变量(控制面板=>环境变量)或在VS中转到工具=>选项=> Apache Cordova的工具=>环境变量替代

  • 清洁和/或重建解决方案

  • 为我解决了问题

  • 不知道确切的问题是什么。我是Cordova的新手。可能是Windows 8.1上的32位JVM的大小限制,或者是在多次运行后无法正确释放内存的守护进程。

  • Do not change any JVM arguments, there is a reason for the Cordova scripts to use those settings of minimum an maximum heap size.
  • In my case: C:\Program Files\Java\jdk1.8.0_31
  • Instead, use a 64 bit JDK and either set it to the PATH environment variable (Control Panel => Environment Variables) or in VS goto "Tools => Options => Tools for Apache Cordova => Environment Variable Overrides"
  • Clean and/or rebuild solution
  • Solved the problem for me
  • Don't know what the exact problem is. I'm new to Cordova. Could be a size limitation of a 32 bit JVM on Windows 8.1 or the daemon process which does not correctly free memory after several runs.

这篇关于Visual Studio 2015 RC及Cordova:无法为对象堆保留足够的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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