Skip Headers

Oracle® Application Server 10g Release Notes
10g (9.0.4) for Linux x86

Part Number B12261-03
Go To Documentation Library
Home
Go To Table Of Contents
Contents

Go to previous page Go to next page

14
OracleAS Web Cache

This chapter describes the issues associated with OracleAS Web Cache. It includes the following topics:

14.1 General Issues and Workarounds

This section describes general issues and their workarounds for OracleAS Web Cache. It includes the following topics:

14.1.1 Security

When you configure OracleAS Web Cache to cache Web pages other users can access these pages if they know the URLs. For this reason, do not create cache secure content.

14.1.2 Compressed Content Not Displaying Correctly in Browsers

When you enable compression, some browser bugs effect compression and the output HTML. You may have to perform additional configuration to use compression for certain browsers types, or you may have to disable compression for specific browsers with bugs.

See Also:

  • Oracle Application Server Web Cache Administrator's Guide for an initial list of browser limitations

  • Vendor documentation for the browser

14.1.3 Cookie and JavaScript in Pages Monitored by End-User Performance Monitoring

End-user performance monitoring creates an additional cookie and inserts JavaScript into pages. If this behavior causes a problem for an application, then disable this feature in the End-User Performance Monitoring page (Logging and Diagnostics > End-User Performance Monitoring) of OracleAS Web Cache Manager.

14.1.4 Performance Degradation and Memory

Because OracleAS Web Cache is an in-memory cache, it is best to deploy OracleAS Web Cache on a dedicated computer. Unless the computer is dedicated to run OracleAS Web Cache, ensure the maximum cache size does not exceed 20 percent of the total memory.

If peaks in time taken to cache or invalidate objects occur, check if the computer is paging. If paging occurs on the computer on which OracleAS Web Cache is installed, performance can be severely degraded. To configure OracleAS Web Cache to work efficiently on a computer with paging, either deploy OracleAS Web Cache on a dedicated computer or reduce the maximum cache size and maximum cached object size.

If the amount of memory used by OracleAS Web Cache is greater than the maximum cache size, the growth in memory usage may be caused by numerous simultaneous requests for documents that are larger than the maximum cached object size. In this situation, because the documents are not cached, OracleAS Web Cache uses more memory processing the requests and forwarding them to the origin server than it would to cache the documents. Review access logs to determine if many simultaneous requests for large documents have been made and adjust the size of the maximum cached object size so that those documents are cached. In addition, check to be sure that a caching rule or response header specifies that the documents be cached.

To modify the maximum cache size or the maximum cached object size, set new limits for the Maximum Cache Size and Maximum Cached Object Size in the Resource Limits page (Properties > Resource Limits) of OracleAS Web Cache Manager.

See Also:

Oracle Application Server Web Cache Administrator's Guide for more information about recommended topologies

14.1.5 Disk Space and Service Interruption

A system without enough disk space can cause OracleAS Web Cache to fail. Ensure there is sufficient space on the partition that contains the log files.

14.1.6 Impact of HTTP Traffic Changes

When OracleAS Web Cache is added to an existing application Web server environment, HTTP traffic changes effect the following aspects of the application:

14.1.7 Change in Behavior of Responses to Range Requests

In previous releases, when OracleAS Web Cache received a request for a multi-part document with an HTTP Range request-header field and that document was not already cached, OracleAS Web Cache requested the entire document from the origin server and served it to the client. If the document was already cached, OracleAS Web Cache served only the part that the client requested.

In this release, when OracleAS Web Cache receives a request for a multi-part document with an HTTP Range request-header field and that document is not already cached, OracleAS Web Cache now requests the partial document from the origin server. OracleAS Web Cache correctly returns the response (which could be an entire or partial document depending on what it received from the origin server) to the client.

However, OracleAS Web Cache caches only responses that are entire documents; it does not cache responses that are range responses. This caching behavior will be fixed in a future release.

14.1.8 Client-Side Certificate Handling

This section describes issues with client-side certificate handling. It includes the following topics:

14.1.8.1 Server Gated Cryptography Certificates and Global Server IDs

The Oracle Application Server does not support Microsoft Server Gated Cryptography Certificates (SGC) or VeriSign Global Server IDs. This cryptography enables export version browsers to transparently upgrade to strong 128-bit encryption from weaker 40-bit encryption when communicating with an application server. Without this cryptography, browsers with the weaker 40-bit encryption cannot negotiate a secure connection to the Oracle Application Server. In a future release of the Oracle Application Server, Oracle plans to support SGC and Global Server IDs.

14.1.8.2 Client-Side Certificate Support in Cache Hierarchies

OracleAS Web Cache does not support the use of client-side certificates in distributed cache hierarchies.

In an ESI cache hierarchy, a provider cache must be able to accept the client-side certificate information in HTTP headers from the subscriber cache. However, with this configuration, the provider caches could inadvertently accept the certificate information in a header from a bogus entity. To prevent this, you must secure the provider caches, by methods such as installing them behind a firewall.

See Also:

Oracle Application Server Web Cache Administrator's Guide for more information about configuring OracleAS Web Cache for client-side certificates

14.2 Configuration Issues and Workarounds

This section describes configuration issues and their workarounds for OracleAS Web Cache. It includes the following topics:

14.2.1 How To Get Started with Configuration

Use OracleAS Web Cache Manager to configure OracleAS Web Cache. Once configuration is complete, you can use the Application Server Control to start, stop, or restart the cache, as well as monitor cache and origin server status.

To use OracleAS Web Cache Manager:

  1. If not currently logged on to the OracleAS Web Cache computer, log in with the user ID of the user that performed the installation.

  2. Start OracleAS Web Cache with the Oracle Process Manager and Notification (OPMN) Server. From the command line, enter:

    opmnctl startproc ias-component=WebCache
    
    
  3. Point your browser to the OracleAS Web Cache Welcome URL:

    http://web_cache_hostname:portno/webcacheadmin 
    
    
  4. When prompted for the administrator user ID and password, enter either the user name, ias_admin, or the OracleAS Web Cache administrator user name, administrator, for the user name. If you supplied a password during the installation, enter that password.

OracleAS Web Cache uses two configuration files: webcache.xml and internal.xml. The OracleAS Web Cache Manager writes its configuration information to the webcache.xml file. OracleAS Web Cache uses internal.xml file. These files are located in the $ORACLE_HOME/webcache directory on UNIX and ORACLE_HOME\webcache directory on Windows. Do not edit these configuration files manually, except in the cases described in these Release Notes, or when directed to do so by Oracle Support Services. Improper editing of these configuration files may cause problems in OracleAS Web Cache.

See Also:

Oracle Application Server Web Cache Administrator's Guide for complete configuration coverage

14.2.2 Common Configuration Mistakes

Common configuration mistakes include:

14.2.3 Port Conflicts

By default, OracleAS Web Cache is configured to use the following default HTTP ports:

If these ports are in use, then the installation procedure attempts to assign other port numbers from a range of possible port numbers.

The Oracle HTTP Server is configured to use the following default ports:

At the end of installation, OracleAS Web Cache attempts to start. If there are port conflicts, then OracleAS Web Cache may fail to start.

See Also:

Oracle Application Server Web Cache Administrator's Guide for more information about configuring ports, resolving port conflicts, and event log messages related to port conflicts.

14.2.4 Caching Large Objects

To specify a maximum cached object size, go to the Resource Limits page (Properties > Resource Limits) of OracleAS Web Cache Manager.

If you specify a maximum cached object size, only documents that are not larger than a specified size and that match the caching rules will be stored in the cache. Objects larger than the specified size will not be cached, even if they meet other caching rules. The default is 100 KB for 9.0.4 installations. For upgraded caches, the default is that no limit is specified. If you want to apply the default to upgraded caches, modify the entry for Maximum Cached Object Size in the Resource Limits page.

If you have documents that are larger than the maximum cached object size and those documents are requested frequently, consider increasing the maximum cached object size limit.

The setting for the maximum cached object size is ignored if no Content-Length header is present in the response.

See Also:

Oracle Application Server Web Cache Administrator's Guide for more information about configuring resource limits

14.2.5 Mismatched Oracle Home Definitions Causes Web Cache to Fail to Start

If the definition of Oracle home in the webcache.xml configuration file is different than the definition of Oracle home in your environment, OracleAS Web Cache may fail to start.

On UNIX, you may see the following alert message in the event log:

No matching CACHE element found in webcache.xml for current host name 
(webcache-host) and ORACLE_HOME (Oracle_home).

On Windows, you may see the following message:

The description for Event ID ( 1 ) in Source ( Oracle-Web-Cache ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. The following
information is part of the event: Cannot open log files because NULL socket
indicates problem.

During installation, the Oracle home is written to the ORACLEHOME attribute of the CACHE NAME element. in the webcache.xml file. The Oracle home is specified with the $ORACLE_HOME environment variable on UNIX and the ORACLE_HOME parameter located at HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE in the Windows registry.

If there is a mismatch, modify either the ORACLEHOME attribute in the webcache.xml file or the Oracle home environment setting. (In a cluster environment, there is more than one CACHE NAME element in the webcache.xml file, one for each cluster member. Be sure to modify the correct element.)

14.2.6 Logging Cache Clusters Peer Requests

By default, peer requests between two members of a cache cluster are not logged in the access log. Only client requests to the cluster are logged. Peer request logging can be enabled for individual cache cluster members by adding the ACCESSLOGIGNOREPEERREQUEST attribute to the MISCELLANEOUS element in the internal.xml configuration file.

The valid values for this attribute are:

The default value is YES.

The following example shows the MISCELLANEOUS element with peer-to-peer logging enabled:

<MISCELLANEOUS ACCESSLOGIGNOREPEERREQUEST="NO"/>

14.2.7 Removing a Cache from a Cluster Before Running chgiphost.sh

The script chgiphost.sh enables you to change the host name or IP address of a computer. If the computer contains a middle-tier instance that is part of OracleAS Web Cache cluster, remove the instance from the cluster prior to running this script.

See Also:

  • Oracle Application Server Web Cache Administrator's Guide for more information about removing cache clusters

  • Oracle Application Server 10g Administrator's Guide for more information about using the chgiphost.sh script

14.2.8 Sending Invalidation Requests Between Cache Cluster Members During Upgrade

If you have a OracleAS Web Cache cluster, you can upgrade one cache cluster member at a time. The caches will continue to respond to requests. However, because other cluster members have a different version of the configuration, the caches will not forward requests to those cache cluster members operating with a different version. Instead, if the requested document is not cached by that cache or by cluster members with the same version of the configuration, OracleAS Web Cache forwards the request to the origin server. In this situation, the Operations page (Operations > Cache Operations) in OracleAS Web Cache Manager indicates that the Operation Needed is Incompatible software version.

When the cache cluster members are not running the same version of OracleAS Web Cache, you can still invalidate documents and you can propagate the invalidation to other cluster members, but the invalidation request must originate with the cache that is operating with the earlier version, such as 9.0.2 or 9.0.3, of OracleAS Web Cache.

See Also:

Oracle Application Server 10g Upgrading to 10g (9.0.4) for more information about upgrading OracleAS Web Cache to 10g (9.0.4), including information about upgrading cache cluster members

14.2.9 Configuring OracleAS Web Cache Listen Port and Logical Site Ports

In a configuration in which the OracleAS Web Cache listen port is the same as the logical site port, changing the OracleAS Web Cache listen port in the Listen Ports page (Ports > Listen Ports) of OracleAS Web Cache Manager requires you to also change the logical site port in the Site Definitions and Site-to-Server Mapping pages (Origin Servers, Sites, and Load Balancing > Site Definitions or Site-to-Server Mapping).

14.2.10 admin server Process Not Starting After OracleAS Web Cache Manager Configuration Update

OracleAS Web Cache Manager does not enforce stringent validation checking. This is especially a problem when the admin server process is shut down after applying invalid configuration changes. In that case, the admin server process will not be able to start up, and the OracleAS Web Cache Manager will become inaccessible. If you suspect a problem, check the event_log file for startup errors or the Event Viewer on Windows.

To solve this problem:

14.2.11 Binding Session Associated with Multiple Cookies

To configure OracleAS Web Cache to bind user sessions to an origin server, you associate a site with a session definition name in the Session Binding page (Origin Servers, Sites, and Load Balancing > Session Binding). If you want OracleAS Web Cache to bind user sessions with multiple cookies when any cookie is set, select a session of Any Set Cookie. When selecting Any Set Cookie, in Session Binding Cookie, click Enable to instruct OracleAS Web Cache to include a Set-Cookie response-header in the response.

See Also:

Oracle Application Server Web Cache Administrator's Guide for more information about configuring session binding settings

14.2.12 Stopping the OracleAS Web Cache Processes Before Running webcache_setuser.sh Script

Prior to running the webcache_setuser.sh script, stop both the cache and admin server processes.

You cannot use the Restart option in the Cache Operations page to restart the admin server process.


Go to previous page Go to next page
Oracle
Copyright © 2003 Oracle.

All Rights Reserved.
Go To Documentation Library
Home
Go To Table Of Contents
Contents