Monday, November 14, 2016

How to increase the Heap Size on Oracle SOA Servers to fix Java Out of Memory Exception

In the startManagedWeblogic script for the managed servers  $DOMAIN_HOME/bin/startManagedWebLogic.cmd
  
                        set JAVA_OPTIONS=-Xms1024m -Xmx1024m %JAVA_OPTIONS%


    In the setDomainEnv script for the managed servers and admin server (domain wide)

                       set USER_MEM_ARGS=-Xms1024m -Xmx1024m -XX:PermSize=256m

How to handle the space between Program Files while setting JAVA_HOME

Its always a confusion how to handle space between Program Files. Some times this space creates an issue. 

Windows provide a shortened path  to resolve this issue. As per that the shortened path for Program Files and Program Files(x86) are as shown below

Progra~1 = 'Program Files'Progra~2 = 'Program Files(x86)'

If your JRE installed on C:\Program Files (x86)\Java\jre1.8.0_111

Now you can set the JAVA_HOME as follows

SET JAVA_HOME= C:\Progra~2\Java\jre1.8.0_111

Missing "server" JVM at `C:\Program Files (x86)\Java\jre1.8.0_111\bin\server\jvm­­.dll'

This is a common error while we set the JAVA_HOME to the JRE directory. To resolve this issue:

Go to

C:\Program Files (x86)\Java\jre1.8.0_111\bin\
Create a directory called server under the bin
copy all the contents from C:\Program Files (x86)\Java\jre1.8.0_111\bin\client to this newly created server folder