How to enable more Java memory for BW on IBM AIX machines to avoid 'OOM' errors?
book
Article ID: KB0086846
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks
-
Not Applicable
-
Description
Resolution: While running BW_application on AIX environment below error is thrown: ************************** [java.lang.OutOfMemoryError]: [Failed to fork OS thread at java.lang.Thread.startImpl (Native Method)] at com.tibco.plugin.java.JavaActivity.eval(JavaActivity.java:395) at com.tibco.pe.plugin.Activity.eval(Activity.java:209) at com.tibco.pe.core.TaskImpl.eval(TaskImpl.java:540) at com.tibco.pe.core.Job.a(Job.java:712) at com.tibco.pe.core.Job.k(Job.java:502) at com.tibco.pe.core.JobDispatcher$JobCourier.a(JobDispatcher.java:249) at com.tibco.pe.core.JobDispatcher$JobCourier.run(JobDispatcher.java:200)
**************************
Setting the below property on AIX environment helps to resolve the issue:
Set the above property in the tra file; set MAXDATA to lower value, if you need to set the heap to a larger value.
Please also refer to the below links as it explains how to tune java apps to allocate more memory on AIX platform and ‘LDR_CNTRL’ environment variable settings information resp.
Likewise setting java max heap size beyond 512 mb on AIX requires setting above mentioned property to be set in the tra.
This property can be added into the bwengine.xml located at <install_dir>\<TIBCO_home>\bw\<bw_version>\lib\com\tibco\deployment\ As shown below before creating the ear
To change the default values for any deployment specify a new value in the Value column. ********** <property> <name>AIX tuning property for heap size allocation</name> <option>tibco.env.LDR_CNTRL=MAXDATA</option> <default>0x40000000</default> <description>set MAXDATA to lower value for higher heap value</description> </property> **********
Issue/Introduction
How to enable more Java memory for BW on IBM AIX machines to avoid 'OOM' errors?