Dynamo’s startup behavior is affected by Dynamo’s CONFIGPATH and CLASSPATH, the Java arguments passed to the Java Virtual Machine, and any custom environment variables you define. You can modify the startup behavior of these parameters as follows:

You can customize the CONFIGPATH, CLASSPATH, and JAVA_ARGS settings, as well as define custom environment variables, by editing the postEnvironment.sh (on UNIX) or postEnvironment.bat (on Windows) file in your <ATG2006.5dir>/home/localconfig or <ATG2006.5dir>/home/servers/<servername>/localconfig directory. See Modifying the Environment Settings Automatically and Modifying the Environment Settings Manually for details. If you create a custom module, you can use the module’s MANIFEST.MF file to specify paths to the module’s resources. For more information, see Modifying Custom Module Resource Settings.

Modifying the Environment Settings Automatically

You can use the Dynamo Administration UI to configure the CONFIGPATH, CLASSPATH, and JAVA_ARGS environment settings. You can also use it to add your own custom environment variables. Dynamo creates a localconfig/postEnvironment file with the settings you specify. Note that you must recreate and redeploy your EAR for the changes to take effect.

To configure the CONFIGPATH and CLASSPATH environment settings through the Dynamo Administration UI, follow these steps:

To append a Java argument to the JAVA_ARGS environment variable, follow these steps:

To add custom environment variables, follow these steps:

Modifying the Environment Settings Manually

To configure the CONFIGPATH, CLASSPATH, and JAVA_ARGS environment settings manually, do the following:

The following table lists some common values for JAVA_ARGS:

Java Argument

Description

-Djava.security.policy=
lib/java.policy

Gives the path to the Java 2 security policy file (java.policy) in <ATG2007.3dir>/home/lib.

-Djava.rmi.server.hostname=
IP_Address

Configures Java Remote Method Invocation (RMI) to export RMI objects on a particular IP address; for more information, see Starting the ATG Control Center in the Running Nucleus-Based Applications chapter

-Djava.compiler=NONE

Turns off the JIT compiler so that stack traces include full line number information

-Xmssize

Minimum size of memory heap for Java Virtual Machine on startup

-Xmxsize

Maximum size of memory heap for Java Virtual Machine

-Xnoclassgc

Prevents garbage collection of classes

-verbose[:class|gc|jni]

Enables verbose output about each class loaded, garbage collection, or Java Native Interface (JNI) messages

By default, Dynamo sets the following JAVA_ARGS parameters in dynamoEnv.sh/.bat:

-Xms256m -Xmx384m

If you manually set JAVA_ARGS parameters as system variables, Dynamo does not set any JAVA_ARGS parameters in dynamoEnv.sh/.bat.

For more information about arguments you can use with the java command, enter the command java -help.

Example postEnvironment.bat for Windows:

set CONFIGPATH=%CONFIGPATH%;c:\myConfigDir
set CLASSPATH=%CLASSPATH%;c:\myClassDir
set JAVA_ARGS=%JAVA_ARGS% -Djava.compiler=NONE

Example postEnvironment.sh for UNIX:

CONFIGPATH="${CONFIGPATH}:/myConfigDir"
export CONFIGPATH
CLASSPATH="${CLASSPATH}:/myClassDir"
export CLASSPATH
JAVA_ARGS="${JAVA_ARGS} -Djava.compiler=NONE"
export JAVA_ARGS

Note: When setting CONFIGPATH and CLASSPATH, be careful to append or prepend your values onto the original value of the environment variable or you will omit directories that Dynamo needs to start properly.

Modifying Custom Module Resource Settings

If you create a custom module, you can use the module’s MANIFEST.MF file to specify paths to the module’s resources, as follows:

In the MANIFEST.MF file, the ATG-Required attribute specifies which modules start up. ATG-Required ensures that a given module’s manifest is processed after it processes all the modules that the module depends on. For example, if you want to place the config directory for your custom module after the DPS config directories in the CONFIGPATH, configure the attributes as follows:

ATG-Config-Path: config/
ATG-Required: DPS
 
loading table of contents...