The first time that I run my weblogic admin server after installing and configuring oracle soa in weblogic 10.3.6, I encountered the following error:
I resolved this by creating a new environment variable called EXTRA_JAVA_PROPERTIES with the following value "-Xms512m -Xmx512m". From the JDeveloper 11g Release Notes:
Could not reserve enough space for object heap
Could not create the Java virtual machine. "
Reason for this error is when we make changes memory variable and assign more memory and we don't have enough memory available... server startup is failed with this error.
Could not reserve enough space for object heap.
Could not create the Java virtual machine.
I resolved this by creating a new environment variable called EXTRA_JAVA_PROPERTIES with the following value "-Xms512m -Xmx512m". From the JDeveloper 11g Release Notes:
Running applications with limited free memory (7343786)
Under certain circumstances, if you do not have enough free memory available, you may receive an error when running an application:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Normally you would resolve this by adding -Xms and -Xmx arguments to the project's Run/Debug profile. However, there are existing entries for these settings in the WebLogic startup that will override the project's settings. The proper way to resolve this error is to add EXTRA_JAVA_PROPERTIES to your environment, as follows:
On Linux
setenv EXTRA_JAVA_PROPERTIES "-Xms512m -Xmx512m"
On Windows
set EXTRA_JAVA_PROPERTIES="-Xms512m -Xmx512m"
Important update to this post!
"-Xmx512" is not sufficient to run and test an application in a SOA server, because it would be incredibly slow. If you encounter the above issue using the default config of "-Xmx1024m", then try to decrease the number until it will work. There is no hard rule, you could try "-Xmx1000m" for instance. If it still doesn't work, then try decreasing the number again.
Alternate Method :
Error
"Error occurred during initialization of VMCould not reserve enough space for object heap
Could not create the Java virtual machine. "
Reason for this error is when we make changes memory variable and assign more memory and we don't have enough memory available... server startup is failed with this error.
Solution
You can remove this error while decreasing heap size in setSOADomainEnvt.cmd
%ORACLE_HOME%\user_projects\domains\DOMAIN\BIN\setSOADomainEnvt.cmd
set DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m
set PORT_MEM_ARGS=-Xms768m -Xmx1536m
set PORT_MEM_ARGS=-Xms768m -Xmx1536m
set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=512m
set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=512m
set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=512m
I have lowered my heap to below values
set DEFAULT_MEM_ARGS=-Xms768m -Xmx768m
set PORT_MEM_ARGS=-Xms768m -Xmx768m
instead of
set DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m
set PORT_MEM_ARGS=-Xms768m -Xmx1536m
set DEFAULT_MEM_ARGS=-Xms768m -Xmx768m
set PORT_MEM_ARGS=-Xms768m -Xmx768m
instead of
set DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m
set PORT_MEM_ARGS=-Xms768m -Xmx1536m
By DeepthiReddy
No comments:
Post a Comment