Monday, June 11, 2012

Could not create the Java virtual machine in weblogic

Could not create the Java virtual machine in weblogic :


After installing SOA server 11.1.1.6  as managed server when i started admin server it was giving  following error

"Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. in weblogic"

It came because server did not able to reserve space in JVM for server.


Solution :
1-Go to  directory where you have installed domain.In my case domain name is soa_domain
  E:\Oracle\MiddlewareWeblogicServer\user_projects\domains\soa_domain\bin

2-Then open  setSOADomainEnv.cmd if operation system is window or  setSOADomainEnv.sh if you are using UNIX.

By default  it has following setting

set JAVA_OPTIONS=%JAVA_OPTIONS%
set DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m
set PORT_MEM_ARGS=-Xms768m -Xmx1536m


3-Here PORT_MEM_ARGS has assigned wrong amount of memory.Replace with following code

set PORT_MEM_ARGS=-Xms512m -Xmx1024m

4-Start the server again .

Hope it will start successfully.


Thanks
Prateek

1 comment: