Oracle Web Cache Administration and Deployment Guide
Release 1.0.2.3

Part Number A86722-03

Library

Service

Contents

Index

Go to previous page Go to next page

E
Troubleshooting Oracle Web Cache Configuration

This appendix describes common configuration problems and debugging techniques for resolving them. It contains these topics:

Startup Failures

If Oracle Web Cache does not start, it can be because of the following problems:

Port Conflicts

During configuration, you configure a listening port from which Oracle Web Cache receives browser requests. By default, this port is 1100. You also configure listening ports for administration, invalidation, and statistics monitoring requests. By default, these ports are 4000, 4001, and 4002, respectively. In addition to configuring listening ports for Oracle Web Cache, you also configure the advertised port number from which the application Web server(s) can receive Oracle Web Cache requests.

When you start Oracle Web Cache, a port conflict check is performed. If there is a port conflict, Oracle Web Cache will fail to start. Port conflicts are reported to the event log file, event_log. The event_log file is located in $ORACLE_HOME/webcache/logs on UNIX and in ORACLE_HOME\webcache\logs on Windows NT. Figure E-1 shows an excerpt of event_log with port conflict event messages.

Figure E-1 Event Log with Port Conflict Messages

11/Jan/2001:11:04:42 -0800 -- Error: A failure occurred ( Address already in use
) when assigning a port ( domain: <NONE>, address: 0.0.0.0, port: 1100). Change
PORT attribute of the LISTEN element in the configuration file to a suitable
unused port.
11/Jan/2001:11:04:42 -0800 -- Error: Failed to start the server.
11/Jan/2001:11:04:42 -0800 -- Error: The server could not initialize
11/Jan/2001:11:04:42 -0800 -- Information: The server is exiting
11/Jan/2001:11:04:05 -0800 -- Warning: The admin server couldn't start the cache
server, running in admin-only mode.

Note that the last message will only appear when the admin server process is started for the first time.

To resolve port conflicts:

  1. Use Oracle Web Cache Manager to resolve the port conflicts.

    Typically, the Oracle Web Cache and the application Web server ports are in conflict. Verify the port assigned to Oracle Web Cache at Administering Web Sites > Oracle Web Cache Listen Port, and verify the host names and ports assigned to the application Web servers at Administering Web Sites > Application Web Servers.

  2. Restart Oracle Web Cache.

    See Also:

    "Starting and Stopping Oracle Web Cache" 

If the administration port is in conflict, the admin server process will not start, and the Oracle Web Cache Manager will not be accessible. The event log will contain event log messages that resemble the output in Figure E-2.

Figure E-2 Event Log with Administration Port Conflict Messages

11/Jan/2001:10:56:11 -0800 -- Error: A failure occurred ( Address already in use
) when assigning a port ( domain: <NONE>, address: 0.0.0.0, port: 4000 ). Change
PORT attribute of the LISTEN element in the configuration file to a suitable
unused port.
11/Jan/2001:10:56:11 -0800 -- Error: Failed to start the server.
11/Jan/2001:10:56:11 -0800 -- Error: The server could not initialize
11/Jan/2001:10:56:11 -0800 -- Information: The server is exiting

To resolve this port conflict, modify the webcache.xml file, an internal file that contains the configuration settings, and change the administration port number. The webcache.xml file is located in $ORACLE_HOME/webcache on UNIX and in ORACLE_HOME\webcache on Windows NT. Figure E-3 shows an excerpt of the webcache.xml file with the line for the administration port shown in boldface.

Figure E-3 webcache.xml File

<?xml version="1.0"?>
<!DOCTYPE CALYPSO SYSTEM "internal:///webcache.dtd">
<CALYPSO>
  <MULTIPORT>
    <LISTEN IPADDR="ANY" PORT="1100" PORTTYPE="NORM"/>
    <LISTEN IPADDR="ANY" PORT="4000" PORTTYPE="ADMINISTRATION"/>
    <LISTEN IPADDR="ANY" PORT="4003" PORTTYPE="INVALIDATION"/>
    <LISTEN IPADDR="ANY" PORT="4002" PORTTYPE="STATISTICS"/>
  </MULTIPORT>

Cache Memory

Oracle Web Cache pre-allocates a large memory pool for data storage. When Oracle Web Cache is started, the admin and the cache server processes require 200 MB of memory to start. If there is not enough physical or virtual memory for these processes, the cache server process will fail to start. The event log will contain event log messages that resemble the output in Figure E-4.

Figure E-4 Event Log with Cache Memory Messages

10/Oct/2000:10:58:02 -0600 -- Error: Oracle Web Cache Cache failed to initialize
10/Oct/2000:10:58:02 -0600 -- Error: The server could not initialize
10/Oct/2000:10:58:02 -0600 -- Information: The server is exiting
10/Oct/2000:10:58:02 -0600 -- Warning: The admin server couldn't start the cache 
server, running in admin-only mode

To resolve this cache memory issue:

  1. Allocate additional memory for the admin and the cache server processes to start.

  2. Restart Oracle Web Cache.

    See Also:

    "Starting and Stopping Oracle Web Cache" 

Privileged Ports

Port numbers below 1024 are reserved for use by privileged processes on UNIX. If you want to configure Oracle Web Cache to listen on a port below 1024, such as on port 80, change the ownership of the webcached executable to root and run it as root. By default, the user that performed the installation is the owner of Oracle Web Cache executable.

To configure a privileged port:

  1. Start Oracle Web Cache Manager.

    See Also:

    "Starting Oracle Web Cache Manager" 

  2. Configure the privileged port:

    1. In the navigator pane, select Administering Web Sites > Oracle Web Cache Listen Ports.

      The Oracle Web Cache Listen Ports page appears in the right pane.

    1. In the Oracle Web Cache Listen Ports page, choose Add.

      The Edit/Create Web Cache Listen Ports page dialog box appears.

    2. In the Oracle Web Cache IP Address field, enter the IP address of the computer running Oracle Web Cache.

    3. In the Oracle Web Cache Listening Port field, enter the listening port from which Oracle Web Cache will receive Web browser requests for the Web site. Ensure this port number is not already in use.

    4. Choose Submit.

  3. Change the process identify of the webcached executables.

    If Oracle Web Cache was installed by the root user, change the user ID and group ID to the desired running process identify for Oracle Web Cache. The webcached executable will still be owned by root, but it will take on the new process identify once the privileged port is opened.

    If Oracle Web Cache was installed by a non-root user, you may want to change the user ID and group ID to a different user and group ID, such as nobody/nobody.

    To change the process identity:

    1. In the navigator pane, select Administering Oracle Web Cache > Process Identity.

      The Process Identity page appears in the right pane.

    1. In the Process Identity page, choose Change IDs.

      The Change Process Identity dialog box appears.

    2. Enter the new user in the New User ID field and the group ID of the user in the New Group ID field.

    3. Choose Submit.

  4. In the Oracle Web Cache Manager main window, choose Apply Changes.

  5. If not already owned by root, change the ownership of the webcached executable to root.

    1. Exit from Oracle Web Cache Manager, stop Oracle Web Cache, and log out of the computer.

    1. Log back in as root.

    2. Change the ownership of the executable webcached to root.

      chown root $ORACLE_HOME/webcache/bin/webcached
      
      
      
  6. Change the group of the executable webcached to the group ID you configured in Step 3.

    chgrp group_id $ORACLE_HOME/webcache/bin/webcached
    
    
  7. Add set-user ID permission to the webcached executable.

    chmod u+s $ORACLE_HOME/webcache/bin/webcached
    
    
  8. Log out of the computer, and re-login as the user configured in the Process Identify page.

  9. Start Oracle Web Cache.

    When Oracle Web Cache starts, it will listen on the privileged port with the new process identity.

Application Web Server Capacity

If an application Web server has reached capacity the following error message appears when accessing pages of a Web site:

The application Web server is busy. Possible reach capacity.

This error indicates that the application Web server has reached capacity--that is, the number of concurrent connections has been exceeded. To resolve this problem, you can either:

Wrong or Older Cached Content

If Oracle Web Cache is serving wrong or older content, perform these steps:

  1. Check the correctness of rules.

  2. Check the precedence, or order, of rules.

    See Also:

    Chapter 6, "Creating Rules for Cached Content" 

  3. Validate caching rules by analyzing the content of the access log file, access_log, and the event log file, event_log. If verbose logging is turned on in the event log, error messages about the cacheability rules will be reported.

    See Also:

    "Configuring Event Logs" for further information about turning on verbose logging 

Configuration Changes Made in Oracle Web Cache Manager

Configuration changes made in Oracle Web Cache Manager require the following steps:

  1. In the Oracle Web Cache Manager main window, choose Apply Changes.

  2. Stop and then restart Oracle Web Cache.

    See Also:

    "Starting and Stopping Oracle Web Cache" 

If these steps are not followed, configuration changes will not take effect.

The currently displayed status message in Oracle Web Cache Manager informs you if one of these steps needs to be performed, or if the Oracle Web Cache is running with the current configuration.

See Also:

"Status Messages" for further information about status message in Oracle Web Cache Manager 


Go to previous page Go to next page
Oracle
Copyright © 1996-2001 Oracle Corporation.

All Rights Reserved.

Library

Service

Contents

Index