Oracle EBS R12.0.6 - 禁用Command Line JVM System Properties设置的全局Low-level logging

时间:2023-01-02 20:22:31

Oracle EBS R12.0.6 - 禁用Command Line JVM System Properties设置的全局Low-levellogging

 

功能顾问报告系统启用了全局log,希望disable掉,log消息及截图如下.

Low-level logging iscurrently enabled. Your application will not perform as well while Low-levellogging is on.

Oracle EBS R12.0.6 - 禁用Command Line JVM System Properties设置的全局Low-level logging

 

检查了profile- “FND: Debug Log Enabled” 设置和oc4j.properties等配置文件后,没有发现AFLOG_ENABLED的设置信息. 但是在OAM的logsetup(System Administrator/Logs/Log Setup)和进程里面能发现AFLOG_ENABLED的选项,并且debug log文件指向了production的路径(/ptesti/applcsf/tmp/iem_java.log),应该是clone后没有改过来导致的.

Oracle EBS R12.0.6 - 禁用Command Line JVM System Properties设置的全局Low-level logging

 

bash-3.2$ ps -ef | grep apdtesti | grep ptesti

apdtesti  779032168  0 04:05 ?        00:00:02/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE-DAFLOG_LEVEL=STATEMENT -DAFLOG_MODULE=IEM%-DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID=7790 -server-Xmx1024m -XX:NewRatio=2 -XX:+UseSerialGC-Doracle.apps.fnd.common.Pool.leak.mode=stderr:off -verbose:gc-Ddbcfile=/dtesti/inst/apps/ DTESTI_appnode/appl/fnd/12.0.0/secure/dtesti.dbc-Dcpid=1255880 -Dconc_queue_id=1041 -Dqueue_appl_id=535-Dlogfile=/dtesti/applcsf/log/DTESTI_appnode/XDPQEVTS1255880.txt-DLONG_RUNNING_JVM=true -DOVERRIDE_DBC=true -DFND_JDBC_BUFFER_MIN=1-DFND_JDBC_BUFFER_MAX=2 oracle.apps.xdp.dequeuer.core.QueueService

apdtesti  850230483  3 12:28 ?        00:00:21 /dtesti/product/1013/appsutil/jdk/bin/java-DAFLOG_ENABLED=TRUE -DAFLOG_LEVEL=STATEMENT -DAFLOG_MODULE=IEM%-DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID=8502-server -verbose:gc -Xmx1024M -Xms1024M -XX:MaxPermSize=256M -XX:NewRatio=2-XX:+PrintGCTimeStamps -XX:+UseTLAB -XX:+UseParallelGC-XX:ParallelGCThreads=2-Dcom.sun.management.jmxremote-Djava.security.policy=/dtesti/product/1013/j2ee/oacore/config/java2.policy-Djava.awt.headless=true -Dhttp.webdir.enable=false-Doracle.security.jazn.config=/dtesti/inst/apps/DTESTI_appnode /ora/10.1.3/j2ee/oacore/config/jazn.xml-Dhttp.cookie.ignoreCommaInCookiesNamed=X_NoMatchingCookies -Doracle. ons.oraclehome=/dtesti/product/1013-Doracle.home=/dtesti/product/1013 -Doracle.ons.oracleconfighome=/dtesti/inst/apps/DTESTI_appnode/ora/10.1.3-Doracle.ons.clustername=default -Doracle.ons.instancename=DTESTI_appnode.appnode.oracleoutsourcing.com-Dopmn.compatible=904 -Doracle.ons.indexid=oacore.default_group.1-Doracle.ons.numprocs=1 -Doracle.ons.uid=53818304 -Doracle.oc4j.groupname=default_group-Doracle.oc4j.instancename=oacore -Doracle.oc4j.islandname=default_group-Doracle.opmn.routingid=g_rt_id -DOPMN=true -jar oc4j.jar -config/dtesti/inst/apps/DTESTI_appnode/ora/10.1.3/j2ee/oacore/config/server.xml-properties -out /dtesti/mtlog/DTESTI_appnode/logs/ora/10.1.3/opmn/oacorestd.out-err /dtesti/mtlog/DTESTI_appnode/logs/ora/10.1.3/opmn/oacorestd.err -portsdefault-web-site:ajp:22700,rmi:22720,jms:22740

apdtesti 18021 6328  0 12:39 pts/2    00:00:00 grep ptesti

apdtesti 30663 32351 0 10:40 ?        00:00:01/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE -DAFLOG_LEVEL=STATEMENT-DAFLOG_MODULE=IEM% -DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log-DCLIENT_PROCESSID=30663 -client -Ddbcfile=/dtesti/inst/apps/DTESTI_appnode/appl/fnd/12.0.0/secure/dtesti.dbc-Drequest.requestid=37369202 -Drequest.logfile=/dtesti/applcsf/log/DTESTI_appnode/l37369202.req-DOVERRIDE_DBC=true -DFND_JDBC_BUFFER_MIN=1 -DFND_JDBC_BUFFER_MAX=2oracle.apps.fnd.cp.request.Run oracle.apps.xdo.oa.cp.JCP4XDODataEngine

apdtesti 31048 30483 0 03:56 ?        00:00:14/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE -DAFLOG_LEVEL=STATEMENT-DAFLOG_MODULE=IEM% -DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log-DCLIENT_PROCESSID=31048 -server -                                       

verbose:gc -Xmx1024M -Xms512M -XX:MaxPermSize=128M-XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB -XX:+UseParallelGC -XX:ParallelGCThreads=2-Djava.security.policy=/dtesti/product/1013/j2ee/oacore/config/java2.policy-Djava.awt.headless=true -Dhttp.webdir.enable=false-Doracle.security.jazn.config=/dtesti/inst/apps/DTESTI_appnode/ora/10.1.3/j2ee/oafm/config/jazn.xml-Doracle.ons.oraclehome=/dtesti/product/1013 -Doracle.home=/dtesti/product/1013-Doracle.ons.oracleconfighome=/dtesti/inst/apps/DTESTI_appnode/ora/10.1.3-Doracle.ons.clustername=default -Doracle.ons.instancename=DTESTI_appnode.appnode.oracleoutsourcing.com-Dopmn.compatible=904 -Doracle.ons.indexid=oafm.default_group.1-Doracle.ons.numprocs=1 -Doracle.ons.uid=53818301-Doracle.oc4j.groupname=default_group -Doracle.oc4j.instancename=oafm-Doracle.oc4j.islandname=default_group -Doracle.opmn.routingid=g_rt_id-DOPMN=true -jar oc4j.jar -config /dtesti/inst/apps/DTESTI_appnode/ora/10.1.3/j2ee/oafm/config/server.xml-properties -out /dtesti/mtlog/DTESTI_appnode/logs/ora/10.1.3/opmn/oafmstd.out-err /dtesti/mtlog/DTESTI_appnode/logs/ora/10.1.3/opmn/oafmstd.err -portsdefault-web-site:ajp:22715,rmi:22735,jms:22755

apdtesti 31310    1  0 03:57 ?        00:00:14/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE-DAFLOG_LEVEL=STATEMENT -DAFLOG_MODULE=IEM%-DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID=31310-DICSMserver -ms16M -mx32M -classpath .:/dtesti/applmgr/common/java/lib/appsborg2.zip:/dtesti/applmgr/common/java/lib:/dtesti/applmgr/common/java/classes:/dtesti/applmgr/common/java/classes/apps.zip:/dtesti/product/1013/appsutil/jdk/jre/classes:/dtesti/product/1013/appsutil/jdk/jre/lib:/dtesti/product/1013/appsutil/jdk/jre/lib/classes.zip:/dtesti/product/1013/appsutil/jdk/jre/lib/classes.jar:/dtesti/product/1013/appsutil/jdk/jre/lib/rt.jar:/dtesti/product/1013/appsutil/jdk/jre/lib/i18n.jaroracle.apps.ieo.icsm.server.Main -dbc /dtesti/inst/apps/DTESTI_appnode/appl/fnd/12.0.0/secure/dtesti.dbc-home /dtesti/inst/apps/DTESTI_appnode/admin/scripts/ieo start -nopromptmsg

apdtesti 31813    1  0 03:57 ?        00:00:01/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE-DAFLOG_LEVEL=STATEMENT -DAFLOG_MODULE=IEM%-DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID=31813-Doracle. apps.mwa=/dtesti/applmgr/1200/mwa/12.0.0-Doracle.apps.inst=/dtesti/inst/apps/DTESTI_appnode -mx512m -ms128moracle.apps.mwa.presentation.telnet.Listener 32702

apdtesti 31853    1  0 03:57 ?        00:00:02/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE -DAFLOG_LEVEL=STATEMENT-DAFLOG_MODULE=IEM% -DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log-DCLIENT_PROCESSID=31853 -Doracle. apps.mwa=/dtesti/applmgr/1200/mwa/12.0.0-Doracle.apps.inst=/dtesti/inst/apps/DTESTI_appnode -mx512m -ms128moracle.apps.mwa.presentation.telnet.Listener 32704

apdtesti 31890    1  0 03:57 ?        00:00:01/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE -DAFLOG_LEVEL=STATEMENT-DAFLOG_MODULE=IEM% -DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log-DCLIENT_PROCESSID=31890 -Doracle. apps.mwa=/dtesti/applmgr/1200/mwa/12.0.0-Doracle.apps.inst=/dtesti/inst/apps/DTESTI_appnode -mx512m -ms128moracle.apps.mwa.presentation.telnet.Listener 32706

apdtesti 31930    1  0 03:57 ?        00:00:02/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE -DAFLOG_LEVEL=STATEMENT-DAFLOG_MODULE=IEM% -DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID=31930-Doracle.apps.mwa=/dtesti/applmgr/1200/mwa/12.0.0-Doracle.apps.inst=/dtesti/inst/apps/DTESTI_appnode -mx512m -ms128moracle.apps.mwa.presentation.telnet.Listener 32709

apdtesti 31992    1  0 03:57 ?        00:00:02/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE-DAFLOG_LEVEL=STATEMENT -DAFLOG_MODULE=IEM%-DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID=31992-Doracle.apps.mwa=/dtesti/applmgr/1200/mwa/12.0.0-Doracle.apps.inst=/dtesti/inst/apps/DTESTI_appnode -mx512m -ms128moracle.apps.mwa.presentation.telnet.Listener 32711

apdtesti 32033    1  0 03:57 ?        00:00:01/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE -DAFLOG_LEVEL=STATEMENT-DAFLOG_MODULE=IEM% -DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID=32033-Doracle.apps.mwa=/dtesti/applmgr/1200/mwa/12.0.0-Doracle.apps.inst=/dtesti/inst/apps/DTESTI_appnode -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener32713

apdtesti 32282 32168 0 03:57 ?        00:00:04 /dtesti/product/1013/appsutil/jdk/bin/java-DAFLOG_ENABLED=TRUE -DAFLOG_LEVEL=STATEMENT -DAFLOG_MODULE=IEM%-DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID=32282-server -Xmx1024m -XX:NewRatio=2 -XX:+UseSerialGC -Doracle.apps.fnd.common.Pool.leak.mode=stderr:off-verbose:gc -Ddbcfile=/dtesti/inst/apps/DTESTI_appnode/appl/fnd/12.0.0/secure/dtesti.dbc-Dcpid=1255851 -Dconc_queue_id=1139 -Dqueue_appl_id=0 -Dlogfile=/dtesti/applcsf/log/DTESTI_appnode/FNDCPGSC1255851.txt-DLONG_RUNNING_JVM=true -DOVERRIDE_DBC=true -DFND_JDBC_BUFFER_MIN=1-DFND_JDBC_BUFFER_MAX=2 oracle.apps.fnd.cp.gsm.GSMSvcComponentContainer

apdtesti 32292 32168 0 03:57 ?        00:00:04/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE-DAFLOG_LEVEL=STATEMENT -DAFLOG_MODULE=IEM%-DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID=32292-server -Xmx1024m -XX:NewRatio=2 -XX:+UseSerialGC-Doracle.apps.fnd.common.Pool.leak.mode=stderr:off -verbose:gc -Ddbcfile=/dtesti/inst/apps/DTESTI_appnode/appl/fnd/12.0.0/secure/dtesti.dbc-Dcpid=1255852 -Dconc_queue_id=1259 -Dqueue_appl_id=0-Dlogfile=/dtesti/applcsf/log/DTESTI_appnode/FNDCPGSC1255852.txt-DLONG_RUNNING_JVM=true -DOVERRIDE_DBC=true -DFND_JDBC_BUFFER_MIN=1-DFND_JDBC_BUFFER_MAX=2 oracle.apps.fnd.cp.gsm.GSMSvcComponentContainer

apdtesti 32302 32168 0 03:57 ?        00:00:04/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE -DAFLOG_LEVEL=STATEMENT-DAFLOG_MODULE=IEM% -DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID=32302-server -Xmx1024m -XX:NewRatio=2 -XX:+UseSerialGC-Doracle.apps.fnd.common.Pool.leak.mode=stderr:off -verbose:gc -Xmx3072m -Ddbcfile=/dtesti/inst/apps/DTESTI_appnode/appl/fnd/12.0.0/secure/dtesti.dbc-Dcpid=1255853 -Dconc_queue_id=5281 -Dqueue_appl_id=0-Dlogfile=/dtesti/applcsf/log/DTESTI_appnode/FNDOPP1255853.txt -DLONG_RUNNING_JVM=true-DOVERRIDE_DBC=true -DFND_JDBC_BUFFER_MIN=1 -DFND_JDBC_BUFFER_MAX=2oracle.apps.fnd.cp.gsf.GSMServiceController

apdtesti 32326 32168 0 03:57 ?        00:00:06/dtesti/product/1013/appsutil/jdk/bin/java -DAFLOG_ENABLED=TRUE -DAFLOG_LEVEL=STATEMENT-DAFLOG_MODULE=IEM% -DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log-DCLIENT_PROCESSID=32326 -server -Xmx1024m -XX:NewRatio=2 -XX:+UseSerialGC-Doracle.apps.fnd.common.Pool.leak.mode=stderr:off -verbose:gc -Ddbcfile=/dtesti/inst/apps/DTESTI_appnode/appl/fnd/12.0.0/secure/dtesti.dbc-Dcpid=1255854 -Dconc_queue_id=1140 -Dqueue_appl_id=0 -Dlogfile=/dtesti/applcsf/log/DTESTI_appnode/FNDCPGSC1255854.txt-DLONG_RUNNING_JVM=true -DOVERRIDE_DBC=true -DFND_JDBC_BUFFER_MIN=1-DFND_JDBC_BUFFER_MAX=2 oracle.apps.fnd.cp.gsm.GSMSvcComponentContainer

bash-3.2$

 

排除了profile和配置文件设置的debuglog后,就只有JVM的设置可查了,事实证明问题也确实在这里.

bash-3.2$ cd $ADMIN_SCRIPTS_HOME

bash-3.2$ vi java.sh

JAVA_ADDITIONAL_ARGS=" -DAFLOG_ENABLED=TRUE-DAFLOG_LEVEL=STATEMENT -DAFLOG_MODULE=IEM%-DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID=$$ "

exec $JSERVJAVA $JAVA_ADDITIONAL_ARGS $ARGV

==> 注视掉log参数,重启应用后,log消失.

# JAVA_ADDITIONAL_ARGS=" -DAFLOG_ENABLED=TRUE-DAFLOG_LEVEL=STATEMENT -DAFLOG_MODULE=IEM%-DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log -DCLIENT_PROCESSID= $$ "

JAVA_ADDITIONAL_ARGS=" -DCLIENT_PROCESSID=$$ "

exec $JSERVJAVA $JAVA_ADDITIONAL_ARGS $ARGV

bash-3.2$ diff java.sh java.sh_bk03mar2014

50,51c50

< # JAVA_ADDITIONAL_ARGS=" -DAFLOG_ENABLED=TRUE-DAFLOG_LEVEL=STATEMENT -DAFLOG_MODULE=IEM% -DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log-DCLIENT_PROCESSID=$$ "

< JAVA_ADDITIONAL_ARGS=" -DCLIENT_PROCESSID=$$"

---

> JAVA_ADDITIONAL_ARGS=" -DAFLOG_ENABLED=TRUE-DAFLOG_LEVEL=STATEMENT -DAFLOG_MODULE=IEM% -DAFLOG_FILENAME=/ptesti/applcsf/tmp/iem_java.log-DCLIENT_PROCESSID=$$ "

bash-3.2$

 

REF:

 

How to Configure Logging

http://docs.oracle.com/cd/E18727_01/doc.121/e12893/T174296T359301.htm

 

Logging Framework Overview

http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T359300.htm