Title
Disable AggreSpy servlet in OAS 10.1.2

Date
2008-02-14

Summary
The AggreSpy servlet that comes with 10g AS R2 and R3 monitors several AS parameters. Disabling it reduces load on the web/application server, but limits what can be monitored by AS Control.

The utility and the parameters it collects are described at the urls below for 10g R2 (10.1.2):
    http://download.oracle.com/docs/cd/B15904_01/core.1012/b14001/metrics.htm#i631670
    http://download.oracle.com/docs/cd/B15904_01/core.1012/b14001/monitor.htm#sthref91

Details
1. Edit $ORACLE_HOME/Apache/Apache/conf/mod_oc4j.conf and comment out the following lines:
#    <LocationMatch "/j2ee/.*/Spy">
#        Order deny,allow
#        Deny from all
#    </LocationMatch>

#    <LocationMatch "/j2ee/.*/AggreSpy">
#        Order deny,allow
#        Deny from all
#    </LocationMatch>

2. Add the following lines to $ORACLE_HOME/Apache/Apache/conf/mod_oc4j.conf:
    Oc4jMount /dmsoc4j home
    Oc4jMount /dmsoc4j/* home

3. Restart the Oracle HTTP Server:
opmnctl restartproc process-type=HTTP_Server

4. To confirm that AggreSpy is no longer enabled, try accessing it via its URL:
     http://hostname:port/dmsoc4j/AggreSpy

Applicable Versions
Oracle Application Server 10g (10.1.2)

References
http://download.oracle.com/docs/cd/B15904_01/core.1012/b14001/metrics.htm#i631670
http://download.oracle.com/docs/cd/B15904_01/core.1012/b14001/monitor.htm#sthref91
Ahmed Aboulnaga

.com .com