简体   繁体   中英

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. 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

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.
JDeveloper: Could not reserve enough space for object heap

Currently I have the jdev.conf set at

AddVMOption -Xmx512M
AddVMOption -XX:MaxPermSize=512M

and in the ide.conf I have

AddVMOption -Xms256M
AddVMOption -Xmx512M

I have also tried changing the ant-sca-compile.xml

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

and adding the environment variable EXTRA_JAVA_PROPERTIES .

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 :

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

The jdev.conf file config should be as follows:

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

And the composite now builds.

Thanks,

Tom

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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