Skip Headers
Oracle® Fusion Middleware Quick Start Guide for Oracle WebLogic Portal
10g Release 3 (10.3.4)

Part Number E14246-02
Go to Documentation Home
Home
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

11 Server Memory and Other Settings

This chapter includes the following topics:

11.1 Start-up Scripts

Settings for your server should go in the command line or start-up scripts. To localize the default overrides and make it easier to share the changes with your team, add them to the startWebLogic scripts:

To edit the startWebLogic script in Oracle Enterprise Pack for Eclipse:

  1. In the Server view, double-click the server.

  2. In the Server Overview view, click Edit to the right of the Startup script entry.

  3. Edit the script as necessary. Figure 11-1 shows an example for both Windows and Linux.

    Common environment variables you might want to set are:

Figure 11-1 Example Start WebLogic Scripts

Description of Figure 11-1 follows
Description of "Figure 11-1 Example Start WebLogic Scripts"

11.2 JVM

When creating a domain in the Domain Configuration Wizard, you set the default JVM, as described in Chapter 6. If you need to change or override the default JVM, in the startWebLogic script, set JAVA_VENDOR to either BEA for JRockit, or Sun for Hotspot. This triggers the domain to use the specified JVM as supplied by the WebLogic Portal installer and any JVM-specific settings for memory and other options.

11.3 Memory Settings

The default memory settings for WebLogic Portal are:

JVM Type Default Settings
JRockit -Xms256m -Xmx768m
Sun Hotspot -Xms256m -Xmx768m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m

To override these, set USER_MEM_ARGS in the startWebLogic script. This is useful for gaining more heap or PermSize.

In general, JRockit requires more heap than the same server run on Hotspot. This is probably because Hotspot separates some objects out into Permanent Generation, while JRockit uses heap for these objects.

Servers running either JVM startup and perform initial application deploys faster if you provide enough initial memory (Xms and PermSize) so that server startup does not require extra allocations and the associated garbage collection passes. Generally, set the initial and maximum sizes the same.

For more information, see Tuning the Memory Management System in the JRockit Diagnostics Guide at http://download.oracle.com/docs/cd/E13188_01/jrockit/geninfo/diagnos/memman.html.

11.4 Class path

The two ways to deploy into the Java class path are:

11.5 Other Java Options

You can set other Java options in the startWebLogic script using the JAVA_OPTIONS setting. This setting is additive; it does not override anything else. This is a good place to put things like system properties.

11.6 Derby

The startup of the Derby database server is controlled in the startWebLogic script by the command line argument noderby There is not an environment variable to control this setting.

To start the server without Derby, run the command:

startWebLogic noderby

To permanently set noderby for a domain, add this argument to where DOMAIN_HOME/startWebLogic.sh or DOMAIN_HOME/startWebLogic.cmd calls the DOMAIN_HOME/bin/startWebLogic script.

This is useful when you are using an external database, such as Oracle or SQL Server.

For information about using databases, see the Oracle Fusion Middleware Database Administration Guide for Oracle WebLogic Portal.

11.7 Autonomy

If you have Autonomy installed in your environment, the startup of Autonomy is controlled by the CONTENT_SEARCH_OPTION in the startWebLogic script. To turn off Autonomy startup, set this option to none. Use this option when you do not need to run Autonomy or when it is already running as an external daemon.

For information about using Autonomy, see Oracle Fusion Middleware Autonomy Search Integration Sample Guide for Oracle WebLogic Portal.

11.8 Using the nodebug Argument

For production mode servers, the default is nodebug. However, for development environments, although the startWebLogic script accepts a nodebug command line argument, it is not advisable to try to override this setting with your scripts because it confuses Oracle Enterprise Pack for Eclipse. Instead use the Server or Debug buttons in the Server view.

If you are not using Oracle Enterprise Pack for Eclipse, you can use the nodebug argument. The debug mode sets the following arguments in the JVM:

-Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n
-Djava.compiler=NONE

11.9 More Complex Settings

If you have complex requirements, such as starting external processes or significant changes to server settings, you should create your own domain template to capture and replay these changes. A domain template facilitates sharing complex domain configurations with the rest of your team. For information about creating your own domain templates, see: