Friday, February 8, 2019

Javacache.log Flooded With Java.lang.OutOfMemoryError Error Messages

Hello every one,


In one of our customer, a file Javacache.log growing rapidly around 250GB and consuming most  space on mount. By looking into the log file, we've seen  it filled with "Java.lang.OutOfMemoryError Error Messages" . The issue is caused by JVM debug log level was not be set.

we came across one ML doc 1604874.1. However we had to check with oracle for further action plan.


Solution
====


1) Take backup of oc4j.properties


2) Add below parameter in below files.
IASCACHELOGLEVEL=0   >> Value is Zero.

$ORA_CONFIG_HOME/10.1.3/j2ee/oacore/config/oc4j.properties


[appdi@Jauaua1 config]$ diff oc4j.properties_1303470_bkp oc4j.properties
129a130,131
> #Parameter for JavaCachelog_TKT_1303470
> IASCACHELOGLEVEL=0


If autoconfig runs, it overwrite the file and value will be diminish. Hence we changed in template file which associated with the autoconfig generated file oc4j.properties.


To review which configuration file changed as part of next  autoconfig run. Please use below command. It will generate a HTML file and review it. It shows which files will be overwrite in next autoconfig run.


adchkcfg.sh contextfile=<CONTEXT_FILE>


Reviewed generated HTML file and found template file oc4j_properties_1013.tmp associated with oc4j.properties file. Hence we modified in template file. So next autoconfig run wouldn't diminish the value.


$FND_TOP/admin/template/custom/oc4j_properties_1013.tmp


[appdi@uauauacustom]$ cp oc4j_properties_1013.tmp oc4j_properties_1013.tmp_1303470


Add below parameter in template file.


IASCACHELOGLEVEL=0   >>Value is Zero.


[appdi@uauauauacustom]$ diff oc4j_properties_1013.tmp oc4j_properties_1013.tmp_1303470
122,123d121
< ##Parameter for JavaCachelog_TKT_1303470
< IASCACHELOGLEVEL=0
3) Take backup of javacache.log file and nullified it.
4) Bounce OPMN Services.


Thanks.
Sreeharsha

No comments:

Post a Comment