Skip navigation.

Performance Tuning Guide

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

General Performance Tuning Guidelines

Application performance is affected by many factors. This chapter discusses a few of the initial aspects that can affect performance and provides links to documentation resources that can assist you.

 


Understanding Performance Tuning and BEA WebLogic Portal

Performance tuning is a process which spans development, staging and deployment. During all phases, performance should be monitored and appropriate adjustments made. If you are new to performance testing, see Approaches to Performance Testing on BEA's dev2dev website.

BEA recommends that you establish an environment where you can performance test the installation for the following reasons:

The recommended approach for performance testing is to start with the simplest aspect of the installation and then move into areas of increased complexity. If you observe slow behavior in any portion of this testing process, you should begin a more thorough investigation into its causes.

General Architecture

First, perform the following steps to identify performance issues with your network, database, or other software that is independent of WebLogic Portal.

  1. Test your database (independent of any web components) to determine how well your schema and SQL work. Note any areas where the schema or SQL may not be optimized for performance. For more information about configuring database connection pools, see http://download.oracle.com/docs/cd/E13222_01/wls/docs81/ConsoleHelp/jdbc_connection_pools.html#1106131
  2. Test your network for sufficient bandwidth, and check that the TCP/IP parameters on the server's operating system can sufficiently handle the application load you expect. It is possible that the network is the slowest aspect of your deployment.
  3. Test your web server, ensuring that it has sufficient capacity to serve static HTML pages when many concurrent threads are running.
  4. Ensure that you have enough resources available to meet application requirements.Most large applications are clustered, but keep in mind that a clustering environment requires resources to perform load-balancing tasks. For more information, see Understanding Cluster Configuration and Application Deployment.
  5. Test your servlet engine by running a load test against a trivial servlet such as a HelloWorld servlet. If this simple servlet does not perform and scale horizontally (meaning that as you add Java Virtual Machines, performance increases accordingly), the performance problems you encounter may be related to an infrastructure or resource issue.

WebLogic Portal

Now, perform the following steps to identify performance issues with WebLogic Portal:

  1. Verify that your BEA WebLogic Server database configuration is optimal. WebLogic Portal makes extensive use of the database. Check that your connection pool is large enough, and verify that your database handles connection failures in an efficient manner. For example, you may want to increase the number of connections at start up, increase the wait time before requesting new connections, determine whether your pool can shrink, and so on.
  2. Verify that each portlet is optimized for speed as follows:
  3. Test your application's components, starting from the data access layer. Then proceed toward the GUI one step at a time. Pay attention to performance and scalability differences at each component and between each layer of your application. Finally, do end-to-end testing from a browser-based load-testing tool using a proxy server,
  4. Test the behavior and performance of your application under simulated, real-world conditions. (Many tools are available to help you do this.) Be sure to use both anonymous and logged-in users simultaneously.

 


Tuning Your WebLogic Server

Because WebLogic Portal runs on WebLogic Server, factors impacting the performance of WebLogic Server will also impact the performance of WebLogic Portal.

For more information about tuning WebLogic Server, see http://download.oracle.com/docs/cd/E13222_01/wls/docs81/perform/index.html.

 


Tuning Your JVM

Your Java Virtual Machine is key to running your Portal efficiently. For more information about tuning WebLogic JRocket, see Tuning WebLogic JRocket JVM.

Recommendations

When using JRockit, adjust the -gcx:parallel flag, as mentioned in Identify the Best JVM Settings as found in the WebLogic Server Performance and Tuning Guide. JRockit typically gives better performance with WebLogic Server than SunMicrosystem's HotSpot.

When using Sun Hotspot, adjust the -server and -client flags to see which offers the maximum throughput for your application.

 


Tuning Your Database

Keeping your database tuned is an important part of using WebLogic Portal. Portal uses the database to store content, rules, portal framework customizations, and user profile data.

See your vendor database documentation on how best to tune your database for your needs and production environment.

For more information about database tuning for WebLogic Portal see, the WebLogic Portal Database Administration Guide.

 


Tuning Your Operating System

Tune your operating system according to your operating system documentation. BEA certifies WebLogic Server on multiple operating systems on the Supported Configurations pages.

For Windows platforms, the default settings are usually sufficient. However, the Solaris and Linux platforms usually need to be tuned appropriately.

If you plan on using WSRP portlets, be sure to modify the file descriptor parameters in the /etc/system/limits.conf file, as noted in the WebLogic Server Performance and Tuning Guide.

 


Upgrading to the Latest Service Packs

Service packs almost always include improvements to some area of performance. Service packs are available individually for download to Contract Support Customers. Go to the http://support.bea.com to login to eSupport. Navigate to Product Download and Service packs in the left navigation bar. Choose the product of interest and follow links to the version and service pack you are interested in.

In addition to WebLogic Portal service packs, you should also check available improvements with WebLogic Server. For example, the WebLogic Server proxy plug-in for SP4 contains several performance improvements. For more information about proxy plug-ins, see Using Web Server Plug-ins with WebLogic Server.

Table 1-1 lists the available services packs for WebLogic Portal 8.1 and the performance improvements found in each.


 

Table 1-1 WebLogic Portal Service Pack Information 

WebLogic Portal 8.1 SP2

  • Improved performance of 25%-35% over 8.1 GA

  • Faster control tree creation

  • Faster content repository operations in a cluster

  • Faster portal rendering when the first user logs in

  • More caching (for example, caching web.xml)

  • Faster data binding engine (NetUI)

  • Faster User/Group tree performance in the Administration Portal for large group hierarchies

WebLogic Portal 8.1 SP3

  • Faster portal rendering by bypassing servlet filters for framework JSPs

  • Faster entitlement evaluation, especially with a large number of entitlements

  • Faster algorithm for portal creation in the Administration Portal

  • New feature to replace the group tree with a text box in the Administration Portal, useful when you have a very large number of groups

  • Optimized framework-related JSPs

  • Faster WSRP by caching registration handles in the producer

WebLogic Portal 8.1 SP4

  • Improved performance of 15%-70% over previous service packs.

  • Optimized entitlement role calculations.

  • Optimized content searches against the BEA repository. The degree of improvement depends on the type of search and the complexity of the expression.

  • Control tree optimization that allows partial generation of the tree where appropriate; performance improvements are substantial with large portals.

  • More robust control tree state management that improves scalability and performance in a clustered environment.

  • Improved Portal Preferences and Portlet Event/Event Handlers using a new lightweight UIControlData object that reduces overhead

  • Reduced memory requirements for Portal customizations that reduce memory requirements. User customizations are now internally optimized. As a result, the memory requirements for customizations have been significantly reduced from SP3.


 

 


Other Resources

Remember that WebLogic Portal uses many components from WebLogic Platform. See the following documentation for more information about tuning WebLogic Portal.

 

Skip navigation bar  Back to Top Previous Next