BEA Logo BEA WebLogic Portal Release 4.0

  BEA Home  |  Events  |  Solutions  |  Partners  |  Products  |  Services  |  Download  |  Developer Center  |  WebSUPPORT

 

   WebLogic Portal Documentation   |   Tuning Guide   |   Previous Topic   |   Next Topic   |   Contents

Additional Tuning Recommendations

 

This chapter recommends configurations for miscellaneous services and components:

For information on tuning the Behavior Tracking service, refer to "Persisting Behavioral Tracking Data" in the Guide to Events and Behavior Tracking.

All of the recommendations in this document are in addition to the recommendations in the BEA WebLogic Server Performance and Tuning guide.

 


Adjust Database Connections Available at Startup

To optimize the database pool performance for your production Web site, do the following:

  1. Start the WebLogic Server Administration Console for your domain.

  2. In the WebLogic Server Administration Console, under JDBC, click Connection Pools.

  3. On the JDBC Connection Pools page, in the Name column, click commercePool.

  4. On the commercePool page, click the Connections tab and do the following (see Figure 6-1):

    1. Increase the value in Initial Capacity to match the value in Maximum Capacity.

    2. Change Login Delay Seconds to 0.

    3. Clear the Allow Shrinking check box.

    4. Click Apply.

  5. Click the Testing tab and clear the Test Reserve Connections check box.

  6. Click Apply.

  7. Restart the server.

    Figure 6-1 Change Values on the commercePool Tab


     

For More Information

For more information on database connection pools, refer to the WebLogic Server Administration Console online help.

 


Increase the Size of the Display-Count Buffer

The Campaign service uses display counts to determine whether a campaign has met its end goals. Each time an ad placeholder finds an ad to display as a result of a scenario action, the Campaign service updates the display count.

By default, the Campaign service does not update the display count in the database until an ad placeholder has found 10 ads to display as a result of one or more scenario actions. If the server crashes before the Campaign service flushes this display-count buffer to the database, you can lose display-count updates, up to the number of display counts that are in the buffer.

You can use the WebLogic Server Administration Console to determine the number of display counts that are stored in memory before the Campaign service updates the database:

  1. Start the WebLogic Server Administration Console by entering the following URL in a Web browser:

    http://hostname:port-number/console

    For example, you started a server on a host named bonnie and it uses port 7001 as a listen-on port. Enter the following URL:

    http://bonnie:7001/console

  2. The WebLogic Server Administration Console prompts you to log in with a user account that has administrator privileges.

  3. After you log in, in the left pane, click Deployments -> Applications -> MyApplication -> Service Configuration -> Ad Service.

  4. In the Display Flush Size box, change the value. For sites with high traffic, increase this number to a range of 50 to 100. (See Figure 6-2.)

    Figure 6-2 Adjust the Ad Count


     

 


Display Metadata, Sort and Query Explicit Metadata

If you used the BulkLoader to load document metadata into the reference implementation document database, you can improve document management performance when retrieving documents by doing the following:

For more information about content management, see "Creating and Managing Content" in the Guide to Building Personalized Applications.

 


Use LDAP for Authentication Only

For improved performance, use LDAP for authentication only; do not use it to retrieve user and group properties. Instead of retrieving properties from LDAP servers, configure your system to use properties stored in the RDBMS by minimizing the number of properties registered for retrieval from LDAP in the user management tools.

For more information about changing LDAP settings, see "Using Other Realms" under "Creating and Managing Users" in the Guide to Building Personalized Applications.

 


Use the HotSpot Virtual Machine

Hot Spot enhances JDK 1.3 performance. It provides several implementations, which vary depending upon the operating system. HotSpot is an optimized VM with several variations.

For Windows:

WebLogic Portal supports the Client VM.

Note: If WebLogic Portal is configured to use the default Cloudscape database, the Classic VM is used. If WebLogic Portal is configured with any other database, the default is the Client VM using the -hotspot implementation.

To change this setting to the -client implementation of Client VM:

  1. Navigate to PORTAL_HOME\config\portalDomain.

  2. Open the startPortal.bat file for edit.

    Change:

    SET JAVA_VM=-hotspot

    To:

    SET JAVA_VM=-client

For Linux or Solaris:

WebLogic Portal is certified for both the Server VM and the Client VM, but the Server VM is the default setting.

To change the HotSpot VM:

  1. Navigate to PORTAL_HOME/bin/unix.

  2. Open the set-environment.sh file for edit.

    For Linux change the following line under the LINUX|Linux heading of the VM Options section (the following is an example entry):

    JAVA_VM_OPTIONS="-hotspot -Xms128m - Xmx128"

    To:

    JAVA_VM_OPTIONS="-ms160m -mx300m -XX:MaxNewSize=100m -XX:NewSize=100m -XX:MaxPermSize=128m"

For HP-UX or AIX:

WebLogic Portal does not specify this setting, so it defaults to the Client VM. Both Client and Server VMs are certified for WebLogic Portal.

The default startPortal startup script activates the HotSpot VM that is appropriate for each platform type. This script is located at PORTAL_HOME/config/portalDomain.

 


Deactivating HotSpot

To deactivate HotSpot, do the following:

For Windows:

  1. Open the startPortal.bat file in PORTAL_HOME\config\portalDomain for edit.

  2. Change the value of the JAVA_VM variable to -classic.

  3. Restart the server using a startup script that refers to the set-environment file that you modified.

For UNIX:

  1. Open the set-environment.sh file in PORTAL_HOME/bin/unix for edit.

  2. Change the value of the JAVA_VM_OPTIONS variable to -classic.

  3. Restart the server using a startup script that refers to the set-environment file that you modified.

Note: For information on shutting down and starting the server, refer to "Starting and Shutting Down the Server" in the Deployment Guide.

 

back to top previous page