简体   繁体   English

JDeveloper无法为对象堆保留足够的空间

[英]JDeveloper Could not reserve enough space for object heap

I have run into an issue with JDeveloper when I am trying to build a composite to deploy for Sugar. 我在尝试构建要为Sugar部署的组合时遇到了JDeveloper的问题。 I am running JDeveloper 11.1.1.7.0 running on Window 7 with 16GB of RAM and when I try to build the composite I see the following message 我正在Windows 16上运行具有16GB RAM的JDeveloper 11.1.1.7.0,当我尝试构建复合文件时,我看到以下消息

Buildfile: C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml

scac:
     [scac] Validating composite "C:\JDevProjects\NotificationService\NotificationServiceProject\composite.xml"
     [scac] Error occurred during initialization of VM
     [scac] Could not reserve enough space for object heap

BUILD FAILED
C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml:278: Java returned: 1 Check log file : C:\JDevProjects\NotificationService\NotificationServiceProject\SCA-INF\classes\scac.log for errors

Total time: 1 second

Searching around I have gotten numerous recommendations of changes to the ide.conf and jdev.conf. 到处搜索我已经获得了许多对ide.conf和jdev.conf进行更改的建议。
JDeveloper: Could not reserve enough space for object heap JDeveloper:无法为对象堆保留足够的空间

Currently I have the jdev.conf set at 目前,我将jdev.conf设置为

AddVMOption -Xmx512M
AddVMOption -XX:MaxPermSize=512M

and in the ide.conf I have 在ide.conf中,我有

AddVMOption -Xms256M
AddVMOption -Xmx512M

I have also tried changing the ant-sca-compile.xml 我也尝试过更改ant-sca-compile.xml

https://community.oracle.com/thread/2421702 https://community.oracle.com/thread/2421702

and adding the environment variable EXTRA_JAVA_PROPERTIES . 并添加环境变量EXTRA_JAVA_PROPERTIES

https://community.oracle.com/thread/2133213 https://community.oracle.com/thread/2133213

Nothing has been fruitful. 没有什么能取得成果。

I compiled this fine a few days ago and now I can't get it to work. 几天前,我对此进行了编译,但现在无法正常工作。 Occasionally before I would get this and I could remedy this by closing a few other applications, now that doesn't work any more. 有时候,在我得到这个信息之前,我可以通过关闭其他一些应用程序来补救此问题,现在它不再起作用了。

I made the following changes 我进行了以下更改

Edit the ant-sca-compile.xml to have the following values : 编辑ant-sca-compile.xml以具有以下值:

<jvmarg value="-Xms512m"/>
<jvmarg value="-Xmx512m"/>

The jdev.conf file config should be as follows: jdev.conf文件的配置应如下所示:

AddVMOption –Xmx1280M
AddVMOption -XX:MaxPermSize=256M
AddVMOption -XX:MaxHeapSize=512M

And the composite now builds. 现在,复合材料开始构建。

Thanks, 谢谢,

Tom 汤姆

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM