Wednesday, December 3, 2008

Request URI: OA_HTML OA.jsp Exception: java.lang.OutOfMemoryError

Recently we face this Out of Memory error when users try to login to our ERP application. This happend because suddenly a huge users are trying to login from internet to the iRecruitment module to submit their CV in recent job cercular.

So to solve this problem we performed the bellow action plan:

ACTION PLAN
============
1. Please do the following changes on both middle tiers:
in jserv.conf
from
ApJServGroup OACoreGroup 1 1 /appl/erprodora/iAS/Apache/Jserv/etc/jserv.properties
to
ApJServGroup OACoreGroup 4 1 /appl/erprodora/iAS/Apache/Jserv/etc/jserv.properties


in jserv.properties

from
wrapper.bin.parameters=-verbose:gc -hotspot -Xmx512M -Xms128M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB

to
wrapper.bin.parameters=-verbose:gc -hotspot -Xmx512M -Xms256M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB

(we can increase later to 1024 but let test with Xmx512M)

2. bounce Apache

3. Retest

After finding the the problem is resolved, we fix this parameter in XML file and run autoconfig to make the change parmanent:

from 1

to 4

and

s_jvm_options

from
-verbose:gc -hotspot -Xmx512M -Xms128M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB

to
-verbose:gc -hotspot -Xmx512M -Xms256M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB

Then run Autoconfig the make the change parmanent.