Could not reserve enough space for object heap
while running weblogic on virtual machines you might have encountered Could not reserve enough space for object heap error while starting the java/weblogic servers.
JAVA Memory arguments: -Xms512m -Xmx768m -XX:CompileThreshold=8000 -XX:PermSize= 128m -XX:MaxPermSize=768m . WLS Start Mode=Development . CLASSPATH=C:\oracle\MIDDLE~1\WLSERV~1.3\server\ext\jdbc\oracle\11g\ojdbc6dms.jar;C:\oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\patch_ocp352\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\JDK160~1.0-6\lib\tools.jar;C:\oracle\MIDDLE~1\utils\config\10.3\config-launch.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.3.0.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~1\modules\ORGAPA~1.0/lib/ant-all.jar;C:\oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\oracle\MIDDLE~1\ORACLE~1\soa\modules\commons-cli-1.1.jar;C:\oracle\MIDDLE~1\ORACLE~1\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar . PATH=C:\oracle\MIDDLE~1\patch_wls1033\profiles\default\native;C:\oracle\MIDDLE~1\patch_ocp352\profiles\default\native;C:\oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~1\modules\ORGAPA~1.0\bin;C:\oracle\MIDDLE~1\JDK160~1.0-6\jre\bin;C:\oracle\MIDDLE~1\JDK160~1.0-6\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8. *************************************************** To start WebLogic Server, use a username and * password assigned to an admin-level user. For * server administration, use the WebLogic Server * console at http:\\hostname:port\console * *************************************************** starting weblogic with Java version: java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode) Starting WLS with line: C:\oracle\MIDDLE~1\JDK160~1.0-6\bin\java -client -Xms512m -Xmx768m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=768m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Xverify:none -da -Dplatform.home=C:\oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\oracle\MIDDLE~1\WLSERV~1.3\server -Ddomain.home=C:\oracle\MIDDLE~1\USER_P~1\domains\ODI11G~1 -Dcommon.components.home=C:\oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.domain.config.dir=C:\oracle\MIDDLE~1\USER_P~1\domains\ODI11G~1\config\FMWCON~1-Doracle.server.config.dir=C:\oracle\MIDDLE~1\USER_P~1\domains\ODI11G~1\config\FMWCON~1\servers\AdminServer -Doracle.security.jps.config=C:\oracle\MIDDLE~1\USER_P~1\domains\ODI11G~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.carmlloc=C:\oracle\MIDDLE~1\USER_P~1\domains\ODI11G~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\oracle\MIDDLE~1\USER_P~1\domains\ODI11G~1\config\FMWCON~1\arisidprovider -Dweblogic.alternateTypesDirectory=C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=false -Dem.oracle.home=C:\oracle\middleware\oracle_common -Djava.awt.headless=true -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\oracle\MIDDLE~1\patch_wls1033\profiles\default\sysext_manifest_classpath;C:\oracle\MIDDLE~1\patch_ocp352\profiles\default\sysext_manifest_classpath weblogic.Server Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.
Though you have enough RAM to accommodate this much of memory usage but it will fail as there are other processes which are using the RAM apart from the vmware player.
Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.
This error comes when the Heap size is larger than your computer’s physical memory (Even though the physical RAM is xGB there might be other applications already occupied memory and the JVM could not get the specified free memory to allocate)
-Xms512m -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=768m
This says there is no free memory (atleast approximately around 900MB to 1GB based on the above setting) for the VM to allocate.
You free up memory by closing the applications and try again.
Or else resolve the issue by changing the memory parameters to some lower values to accommodate the memory requirement.
Example:
Changing the parameter from -XX:MaxPermSize=768m to -XX:MaxPermSize=512m
In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.
Thanks. It worked for me.
Glad it helped!!