Oracle Application Server Web Cache Administrator's Guide 10g (9.0.4) Part Number B10401-01 |
|
This chapter explains how to perform basic administrative tasks for OracleAS Web Cache.
This chapter contains these topics:
Anytime the OracleAS Web Cache configuration is statically modified, you must stop and restart OracleAS Web Cache. Dynamic updates do not require a restart, as described in "Applying Static and Dynamic Configuration Changes". To start, stop, or restart OracleAS Web Cache, use either OracleAS Web Cache Manager or the opmnctl
utility. The OracleAS Web Cache Manager enables you to start, stop, or restart the cache server process; the opmnctl
utility enables you to start, stop, or restart the cache
server process or admin server process, or both:
The admin
server process manages the OracleAS Web Cache Manager interface.
cache
server process manages the cache.
The executable used for managing these process is webcached
, which resides in $ORACLE_HOME/webcache
directory on UNIX and the ORACLE_HOME
\bin
directory on Windows.
To initialize OracleAS Web Cache for the first time, use the opmnctl
utility rather than the OracleAS Web Cache Manager to start the processes.
When you stop OracleAS Web Cache, all objects are cleared from the cache. In addition, all statistics are cleared.
Note:
If you are running OracleAS Web Cache in a standalone environment (that is, you installed OracleAS Web Cache from a kit that included only this product; you did not install OracleAS Web Cache as part of an Oracle Application Server installation), you must use the
See Appendix C for information on using the |
To start, stop, or restart the processes, use the steps in the following table:
Use OracleAS Web Cache Manager... | Use the opmnctl Utility... |
---|---|
To start, stop, or restart the
To perform the operation on one cache in a cache cluster: Select one cache, choose Selected Cache from the Operate On field and then click Start, Stop, or Restart. To perform the operation on all caches in a cache cluster: |
To start, stop, or restart both the
See Also: "OPMN for Process Administration" for a complete list of the |
If you have made changes to the configuration of a cache cluster or if a cache cluster member is unreachable when OracleAS Web Cache tries to propagate the configuration to it, you must propagate the configuration to that cluster member when it is reachable again. Then, you must restart the cache.
OracleAS Web Cache keeps track of the configuration of all cluster members to ensure that all cluster members are using the same version of the configuration. It compares the configuration of the current cache (the cache to which you are connected) to that of the other cluster members.
To check that all cluster members are using the same configuration and to propagate the configuration, if necessary, perform following steps:
The Cache Operations page appears.
Propagate Configuration means that the configuration of the cluster member is different than the configuration of the current cache. You should verify that the configuration of the current cache is the most valid configuration before proceeding with propagation.
If it is not, connect to the cache with the valid configuration and view the Cache Operations page.
OracleAS Web Cache propagates the configuration from the current cache to the selected cluster member. When the operation completes, the Operation Needed column in the Cache Operations page indicates that the cache needs to be restarted.
With OracleAS Web Cache Manager, you can view a list of the most popular requests and a list of the contents of the cache, generating the following types of lists:
You specify the number of objects and OracleAS Web Cache Manager displays the list in the Popular Requests page.
You specify a file name and OracleAS Web Cache writes the list of URLs to a file. You can use this list to verify that the cacheability rules are caching the objects that you want cached.
To view the list of URLs of the most popular requests, perform the following steps:
The Popular Requests page appears in the right pane.
OracleAS Web Cache Manager displays a table containing the list of URLs of requests since the cache was last started. The table contains the following columns:
You can also generate a list of the URLs of all of the documents currently stored in the cache:
The Popular Requests page appears in the right pane.
The Export Cache Contents dialog box appears. It lists the file to which OracleAS Web Cache will write the URLs. By default, the file is written to the OracleAS Web Cache log directory and is named webcache_contents.txt
.
OracleAS Web Cache writes the list of URLs to the text file you specified. Each time you generate the list, OracleAS Web Cache appends the data to the existing file. It lists the date that the data was appended to the file, followed by the URLs of the objects currently cached. The following example shows an excerpt of the webcache_contents.tx
t file:
Cache Contents at Wed Aug 22 11:47:03 2003 www.company.com:80/images/lnav/lnav_products.gif www.company.com:80/images/rnav/rnav_red_line_1.gif www.company.com:80/images/bullets_and_symbols/blk_line_bullet_10.gif . . . Cache Contents at Wed Aug 22 13:01:24 2003 www.company.com:80/images/white_spacer_xp.gif www.company.com:80/images/white_spacer.gif www.company.com:80/images/miniappsnet.gif . . .
In addition to configuring event and access log rollover frequency, as described in Chapter 12, you can also use OracleAS Web Cache Manager to immediately roll over event and access logs. During the rollover process, OracleAS Web Cache saves current log file to the log_file
.
yyyymmdd
files and writes new log information to the log file.
To immediately rollover log files:
|
![]() Copyright © 2002, 2003 Oracle Corporation. All Rights Reserved. |
|