Saturday, July 9, 2011

11i :How To Enable and Collect Debug for Apache

1. Delete the existing logfiles.

a-1. $ cd $IAS_ORACLE_HOME/Apache/Apache/logs
b-1. $ pwd (verify that you are in the "logs directory")
c-1. $ rm -r *

a-2. $ cd $IAS_ORACLE_HOME/Apache/Jserv/logs/jvm
b-2. $ pwd (verify that you are in the "jvm" directory)
c-2. $ rm -r *

a-3. $ cd $IAS_ORACLE_HOME/Apache/Jserv/logs
b-3. $ pwd (verify that you are in the "logs" directory)
c-3. $ rm *

2. Edit both the $IAS_ORACLE_HOME/Apache/Apache/conf/httpd.conf file
and $IAS_ORACLE_HOME/Apache/Apache/conf/httpd_pls.conf to enable debugging for apache.

LogLevel debug

3. Edit the $IAS_ORACLE_HOME/Apache/Jserv/etc/jserv.conf to enable debug for the jserv module.

ApJServLogLevel debug
ApJServLogFile

4. Edit the $IAS_ORACLE_HOME/Apache/Jserv/etc/jserv.properties to enable debug for the java
portion of the Apache jserv.

log=true
log.file=
log.timestamp=true
log.channel=true
log.channel.info=true
log.channel.servletException=true
log.channel.jservException=true
log.channel.warning=true
log.channel.servletLog=true
log.channel.critical=true
log.channel.debug=true

5. Edit the $IAS_ORACLE_HOME/Apache/Jserv/etc/zone.properties to enable debug for
framework provider in portal.

Sample Excerpt from zone.properties:
--------------------------------------
# ----- OACore Framework -----
servlet.framework.code=oracle.apps.fnd.framework.provider.OAFrameworkHttpProvider

servlet.framework.initArgs=dbcFileName=/visappl/fnd/11.5.0/secure/buffett_lvis.dbc
servlet.framework.initArgs=sessiontimeout=1800000
servlet.framework.initArgs=appPath=/OA_HTML
servlet.framework.initArgs=appRealPath=/lviscomn/html
*** servlet.framework.initArgs=debuglevel=1

6. Start the apache server. UNIX users will typically use "adapcctl.sh start"
while windows users will simply start the service from the services applet.

7. Reproduce the problem

8. Immediately shutdown the apache server. UNIX users will typically use "adapcctl.sh stop"
while windows users will simply stop the service from the services applet.

9. Gather up all of the following logfiles and configuration files for analysis
put these into the following zip file, which will be placed under /tmp directory...

zip -r /tmp/`uname -n`_`date +%m%d%y.%H%M`_iAS.zip \
$IAS_ORACLE_HOME/Apache/Apache/conf/* \
$IAS_ORACLE_HOME/Apache/Apache/logs/* \
$IAS_ORACLE_HOME/Apache/Jserv/etc/* \
$IAS_ORACLE_HOME/Apache/Jserv/logs/* \
$CONTEXT_FILE

# apache conf directory - $IAS_ORACLE_HOME/Apache/Apache/conf
# apache log directory - $IAS_ORACLE_HOME/Apache/Apache/logs
# jserv etc directory - $IAS_ORACLE_HOME/Apache/Jserv/etc
# jserv log directory - $IAS_ORACLE_HOME/Apache/Jserv/logs

No comments:

Post a Comment