Skip navigation.

Performance Tuning Guide

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

Tuning Your Portal Domain

Optimally, when you deploy, you need to create a new domain that is configured for your production environment, including clusters, production configuration settings, etc.

However, if you have deployed a development domain and wish to use it for production, you must change your domain environment settings to optimize performance.

Note: It is not recommended to use a development domain for production, see http://download.oracle.com/docs/cd/E13196_01/platform/docs81/confgwiz/newdom.html#1059076 for more information.

This topic discusses the following:

 


Tuning Your Domain Configuration

The domain settings are managed by the setDomainEnv.cmd (or setDomainEnv.sh) script which is found in your domain directory. By default, the script is found in: <bea-home>/user_projects/<domain name>/setDomainEnv.cmd or *.sh.

To edit this file, open it in a text editor.

The following is a table of the start script settings and their appropriate values for a production domain. Remember if you are using a domain that was created for production mode, you do not need to modify the configuration.

Flag Name

Production Mode Setting

Notes

WLS_PRODUCTION_MODE

true

  • Indicates whether you are in a production mode or a development mode. Default is false for domains created in development mode and true for domains created in production mode.

iterativeDevFlag

false

  • Disable this option to prevent checking for changed Workshop files, and if found, rebuilding and redeploying the application. Default is true for domains created in development mode and false for domains created in production mode.

debugFlag=""


false

  • Used in start scripts to set debugging options and indicate if the WebLogic Workshop Debugger should be started. When switched to false, you save the resource overhead used for debugging.

  • Default is debugFlag=true for domains created in development mode; debugFlag=false for domains created in production mode.

testConsoleFlag=""

false

  • Verify by checking the log for: "wlw. testConsole = false".

  • Enables the JWS test view.

  • Default is true for domains created in development mode; false for domains created in production mode.

logErrorsToConsoleFlag=""

false

  • Verify by checking the log for: wlw.logErrorsToConsole = false

  • Saves you additional logging although, the tradeoff is that you may see exceptions more easily when this is set to True (without checking the log).

  • Default is true for domains created in development mode and false for domains created in production mode.

verboseLoggingFlag=""

false

  • If true, override the default LOG4J_CONFIG_FILE (workshopLogCfg.xml) with workshopLogCfgVerbose.xml .

  • Priority value in the default file is "warn"; in the verbose version it's "debug".

  • Verify by checking the log for: "log4j.configuration = "workshopLogCfg.xml" instead of "workshopLogCfgVerbose.xml"

  • You can also start in verbose mode using "startWebLogic.cmd verbose".

  • Saves you debugging overhead.

  • Default is false for domains created in development mode and false for domains created in production mode.

pointbaseFlag=""

false

  • Indicates whether Pointbase should be started.

  • Verify by checking for a running Pointbase process.

  • Saves you the resource overhead of starting Pointbase when it's not needed.

  • Default is true for domains created with Pointbase as the database.


 

 


Removing Debugging Tools from Your Domain

When deploying a domain, you should remove the debug.properties file from the domain directory. Although this file is helpful during development, debugging should not be done in production environments.

 

Skip navigation bar  Back to Top Previous Next