Monday, January 12, 2015

How to install Apache Webserver in Oracle Linux

1. Following the link: http://www.dba-oracle.com/t_gogala_easyphp_apache_linux.htm [Thankful to Don Burleson ]

2. Download the httpd-2.2.27.tar.gz

3. Create the apache-2.2.27 folder in /homw/app

4. [oracle@abc apache-2.2.27]$ tar -zxvf httpd-2.2.27.tar.gz

5. [oracle@abc httpd-2.2.27]$ ./configure --prefix=/home/app/apache-2.2.27/ --with-included-apr

6. [oracle@abc httpd-2.2.27]$ su -

7. Important path to notice: make[1]: Leaving directory `/home/app/apache-2.2.27/httpd-2.2.27

8. [root@abc ~]# mkdir /opt/apache-2.2.27
[root@abc ~]# cd /home/app/apache-2.2.27/httpd-2.2.27
[root@abc httpd-2.2.27]# pwd
/home/app/apache-2.2.27/httpd-2.2.27

9. run # make install

10. To check whether Apache installs successfull, navigate to /home/app/apache-2.2.27/bin
then apachectl start

Ref. Links: https://issues.apache.org/bugzilla/show_bug.cgi?id=42089



Thanks
Vishwa





















Friday, January 9, 2015

Weblogic - There is danger of OutOfMemoryError

When you run ./startWeblogic.sh the in terminal you could see following error 


Jan 9, 2015 2:48:17 PM IST Error Default BEA-000000 Failed to communicate with any of configured Access Server, ensure that it is up and running 

Jan 9, 2015 2:48:32 PM IST Critical Health BEA-310003 Free memory in the server is 2,523,824 bytes. There is danger of OutOfMemoryError

$ vi setDomainEnv.sh
Search for the string USER_MEM_ARGS
After this line in the file:
# IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values
Add the following two lines:
USER_MEM_ARGS="-Xms512m -Xmx1024m -XX:MaxPermSize=512m"
export USER_MEM_ARGS
You can set "-Xms1g -Xmx1g -XX:MaxPermSize=512m" if you need higher, it depends on your system memory available.



Thanks
Vishwa