C H A P T E R 2 |
Performance Tuning |
This section provides tuning suggestions to assist you in obtaining the best performance from your Content Delivery Server system.
This section presents the following topics:
Configuration variables are used for the database connection pool size, memory settings, and database memory allocations. The values set for these variables can affect the performance of your system.
This section provides some guidelines for setting the configuration variables to improve performance.
The Content Delivery Server uses two connection pools, one for the Catalog Manager schema and one for the Vending Manager schema. If there is more than one Vending Manager, each Vending Manager schema has its own connection pool. The Catalog Manager and Developer Portal share a connection pool. The Vending Manager, Fulfillment Manager, Subscriber Portal, Event Service, Postpaid Service, and Report Service share a connection pool. If the Event Service is deployed with only a Catalog Manager, the Event Service shares the Catalog Manager's pool.
The maximum number of database connections allowed for a pool is determined by the first application that is loaded. Therefore, specify the same number of database connections for each component that shares a connection pool. For optimal performance, set the number of database connections as described in the following guidelines.
Each database used for the Content Delivery Server schemas must be configured to support the number of connections specified for each schema. Set the sessions parameter for the database to a number greater than the sum of connections specified. For example, using the sample numbers given in the guidelines and assuming that the Catalog Manager and one Vending Manager share a database, set the sessions parameter to at least 20.
Changes take effect when the Content Delivery Server is restarted.
If you are using WebLogic Server and you deployed all components to the same server, Content Delivery Server works well with 50% of a host's memory assigned to the Java virtual machine. Reduce this value if the host is running database or other resource-intensive processes.
1. Edit the $CDS_HOME/deployment/deployment-name/bin/start_server.sh file.
2. Modify the statement export JAVA_MEM="-ms1024m -mx1024m" and set each value to half the size of system memory.
Changes take effect when the Content Delivery Server is restarted.
The optimal database configuration is dependent on many factors. Use the information provided in this section as a starting point for your database management and tuning.
For systems with up to 5000 items of content and 50 devices, use the following guidelines for memory allocation:
10 megabytes * the maximum number of database connections
See Section 2.1.1, Set the Database Connection Pool Size for information on database connections.
200 megabytes + the User Global Area (UGA)
UGA = 0.5 megabytes * the maximum number of database connections. See Section 2.1.1, Set the Database Connection Pool Size for information on database connections.
(10 megabytes * the maximum number of database connections) + UGA
UGA = 0.5 megabytes * the maximum number of database connections. See Section 2.1.1, Set the Database Connection Pool Size for information on database connections.
As more content or devices are added to your system, more memory might be required, especially for the buffer cache. Insufficient memory allocations might result in database error messages or slower performance.
See the Oracle web site (http://technet.oracle.com) for tips on tuning database performance.
Performance might also be improved by tuning your application server.
See the Sun Java System Application Server web site (http://wwws.sun.com/software/sunone/) for tips on tuning Sun Java System Application Server.
See the WebLogic Server web site (http://www.weblogic.com/) for tips on tuning WebLogic Server. Use the WebLogic Server console to set the following parameters as described:
If you are using WebLogic Server, disable dynamic reloading of web pages created using JavaServer Pages technology by following these steps:
1. Change to the $CDS_HOME/deployment/deployment-name/weblogic/domains/domain-name/applications directory.
2. Edit each of the following files and set the param-name element pageCheckSeconds to -1 as shown in CODE EXAMPLE 2-1.
Changes take effect when the Content Delivery Server is restarted.
Copyright © 2005, Sun Microsystems, Inc. All Rights Reserved.