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


Tuesday, September 29, 2015

Port forwarding in VM : How to access the guest weblogic console from the host machine

If we want to access the weblogic console of the guest VM from the host machine we need to do the port forwarding

On the VBox goto settings->Network->Adapter1

Select the type as NAT

Choose the Port forwarding and give the host port corresponding to the default guest port


Now from the guest VM the console can be accessed using http://localhost:7001/console

Where as from the host the same console can be accessed using http://localhost:7201/console

Please note the port number change

jdev fails to open in linux java.lang.UnsatisfiedLinkError

Sometimes the jdev installer or the jdev itself fails to load on linux with the error java.lang.UnsatisfiedLinkError.

In such cases look at the error message. It will tell about the missing libraries/shared files in the OS
For .eg
java.lang.UnsatisfiedLinkError: /opt/app/oracle/Middleware/JDEV/jdk160_24/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory


/


To resolve such issues open the terminal and change to root user, the install the missing libraries using the yum install command




yum install libXtst.so.6




There are cases where in the jdev installer itself may not open in graphical mode due to the missing libraries
Two such libraries are  libXp.so.6   and libXtst.so.6

Try to install these libraries and then  try to start jdev

yum install libXp.so.6
yum install libXtst.so.6

Friday, September 25, 2015

Command to find out ipaddress on linux

on the terminal type the following command

/sbin/ifconfig | grep 'inet addr:'

How to run a bin installer on Linux

Say for e.g we need to install jdeveloper on linux we need to run the  jdevstudio11117install.bin file as follows

[root@fmw12c JDEV]# chmod +x jdevstudio11117install.bin
[root@fmw12c JDEV]# ./jdevstudio11117install.bin