Académique Documents
Professionnel Documents
Culture Documents
0
Performance Tuning Guide
Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without
limitation, these intellectual property rights may include one or more U.S. patents or pending patent applications in the U.S. and in other countries.
U.S. Government Rights – Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions
of the FAR and its supplements.
This distribution may include materials developed by third parties.
Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other
countries, exclusively licensed through X/Open Company, Ltd.
Sun, Sun Microsystems, the Sun logo, the Solaris logo, the Java Coffee Cup logo, docs.sun.com, Java, and Solaris are trademarks or registered trademarks of Sun
Microsystems, Inc. or its subsidiaries in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of
SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc.
The OPEN LOOK and SunTM Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts
of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to
the Xerox Graphical User Interface, which license also covers Sun's licensees who implement OPEN LOOK GUIs and otherwise comply with Sun's written license
agreements.
Products covered by and information contained in this publication are controlled by U.S. Export Control laws and may be subject to the export or import laws in
other countries. Nuclear, missile, chemical or biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export
or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially
designated nationals lists is strictly prohibited.
DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO
THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
Copyright 2008 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A. Tous droits réservés.
Sun Microsystems, Inc. détient les droits de propriété intellectuelle relatifs à la technologie incorporée dans le produit qui est décrit dans ce document. En particulier,
et ce sans limitation, ces droits de propriété intellectuelle peuvent inclure un ou plusieurs brevets américains ou des applications de brevet en attente aux Etats-Unis
et dans d'autres pays.
Cette distribution peut comprendre des composants développés par des tierces personnes.
Certaines composants de ce produit peuvent être dérivées du logiciel Berkeley BSD, licenciés par l'Université de Californie. UNIX est une marque déposée aux
Etats-Unis et dans d'autres pays; elle est licenciée exclusivement par X/Open Company, Ltd.
Sun, Sun Microsystems, le logo Sun, le logo Solaris, le logo Java Coffee Cup, docs.sun.com, Java et Solaris sont des marques de fabrique ou des marques déposées de
Sun Microsystems, Inc., ou ses filiales, aux Etats-Unis et dans d'autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des marques de fabrique ou
des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d'autres pays. Les produits portant les marques SPARC sont basés sur une architecture
développée par Sun Microsystems, Inc.
L'interface d'utilisation graphique OPEN LOOK et Sun a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît les efforts de
pionniers de Xerox pour la recherche et le développement du concept des interfaces d'utilisation visuelle ou graphique pour l'industrie de l'informatique. Sun détient
une licence non exclusive de Xerox sur l'interface d'utilisation graphique Xerox, cette licence couvrant également les licenciés de Sun qui mettent en place l'interface
d'utilisation graphique OPEN LOOK et qui, en outre, se conforment aux licences écrites de Sun.
Les produits qui font l'objet de cette publication et les informations qu'il contient sont régis par la legislation américaine en matière de contrôle des exportations et
peuvent être soumis au droit d'autres pays dans le domaine des exportations et importations. Les utilisations finales, ou utilisateurs finaux, pour des armes nucléaires,
des missiles, des armes chimiques ou biologiques ou pour le nucléaire maritime, directement ou indirectement, sont strictement interdites. Les exportations ou
réexportations vers des pays sous embargo des Etats-Unis, ou vers des entités figurant sur les listes d'exclusion d'exportation américaines, y compris, mais de manière
non exclusive, la liste de personnes qui font objet d'un ordre de ne pas participer, d'une façon directe ou indirecte, aux exportations des produits ou des services qui
sont régis par la legislation américaine en matière de contrôle des exportations et la liste de ressortissants spécifiquement designés, sont rigoureusement interdites.
LA DOCUMENTATION EST FOURNIE "EN L'ETAT" ET TOUTES AUTRES CONDITIONS, DECLARATIONS ET GARANTIES EXPRESSES OU TACITES
SONT FORMELLEMENT EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS NOTAMMENT TOUTE GARANTIE
IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A L'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE CONTREFACON.
081210@21288
Contents
3
Contents
OPENSSOADMIN_USER .......................................................................................................... 27
OPENSSOSERVER_URL ........................................................................................................... 28
REALM_NAME ........................................................................................................................... 28
Sun Directory Server Settings ............................................................................................................ 28
DS_HOST ..................................................................................................................................... 29
DS_PORT ..................................................................................................................................... 29
ROOT_SUFFIX ........................................................................................................................... 29
DS_INSTANCE_DIR .................................................................................................................. 29
DS_TOOLS_DIR ......................................................................................................................... 30
DS_VERSION .............................................................................................................................. 30
DIRMGR_BIND_DN ................................................................................................................. 30
Special Performance Settings ............................................................................................................. 30
AMTUNE_PCT_MEMORY_TO_USE .................................................................................... 31
AMTUNE_MEM_MAX_HEAP_SIZE_RATIO ..................................................................... 32
AMTUNE_PER_THREAD_STACK_SIZE ............................................................................. 32
AMTUNE_*_MEMORY_TO_USE_IN_MB_* ...................................................................... 33
This chapter provides instructions for installing and using the amtune script to tune OpenSSO
Enterprise and related components. The following topics are contained in this chapter:
■ “About the OpenSSO Enterprise Tuning Script” on page 5
■ “Using the Tuning Script” on page 13
The OpenSSO Enterprise amtune tuning script enables you to tune the major components of
your deployment. Before you can use the tuning script, the following conditions must be met:
■ OpenSSO Enterprise must be deployed on a supported web container.
The following are supported web containers: Geronimo 2.x, JBoss 4.2.x, Oracle Application
Server 10g, Tomcat 5.5.x or 6.x, WebLogic 9.2, MP2/10, WebSphere 6.1, Sun Web Server 7,
and Sun Application Server 9.1 or GlassFish v2.
■ The host computer must be running a supported operating system.
The following are supported operating systems: Solaris 9 or 10, Red Hat Enterprise 4 or 5,
Windows 2003 or Vista, Ubuntu 8.04 for some containers, or AIX 5.3 for only WebSphere
6.1
The following table lists the tuning scripts contained in the amtune script.
5
About the OpenSSO Enterprise Tuning Script
Sun Web Server 7 ■ JVM heap and JVM per-thread stack sizes
■ JVM garbage collection algorithms
Sun Application Server 9.1 GlassFish v2
■ Container worker and acceptor threads and queue sizes
Theamtune script is not interactive. It does not prompt for more user input after the script is run
for the first time.
The amtune script relies on a list of DO NOT MODIFY parameters in the last section of the
amtune-env.properties file. The parameters in that section are mainly for internal use by
amtune. Do not modify the parameters in the DO NOT MODIFY list unless user tests show
significant improvement in performance.
Server String
Server String
For sample entries, see the sample passwords file. The file amtune-samplepasswordfile is
bundled with the amtune script in the following
directory:opensso/products/amserver/scripts/tune/
On Solaris, Linux, and AIX, the password file must be inaccessible to non-owners and only
readable by its owner . For example, you can change the permissions mode of the password file
by running the following command:
chmod 400
On Windows, amtune.bat does not check the permission on the password file.
In either mode, the scripts return a list of tuning recommendations to the terminal window and
to the following log file:
<TOOLS_DIR>\<OPENSSO_URI>\logs\amtune-config.<timestamp>.log
Any error messages due to missing or invalid data in the amtune-env.properties file are
displayed in the terminal window and written to the following file:
<TOOLS_DIR>\<OPENSSO_URI>\logs\amtune-errors. All other error messages triggered by
underlying components such as OpenSSO Enterprise or Sun Web Server are also written to the
amtune-errors file.
The amtune script tunes the operating system parameters only on Solaris and Linux. It does not
tune the operating system parameters on AIX, Windows, MacOS or BSD variants.
Solaris OS
Solaris SPARC Systems with CMT Processor with CoolThreads Technology (T1,
T2, T2 Plus Processors)
If OpenSSO Enterprise 8.0 is installed on a CMT machine, the tuning script for Web Server 7.0
UR3 and Application Server 9.1/Glassfish v2, amtune, sets the JVM GC ParallelGCThreads
parameter value to twice the number of cores.
In the case of T1 processor-based models, T1000 and T2000, there are four hardware threads
per core. Based on JVM garbage collection engineering's recommendations, amtunewill set the
value of -XX:ParallelGCThreads as one-half of the total number of virtual processors or
hardware threads. In the case of T2 (T5120 or T5220) and T2 plus ( T5140 or T5240 or T5440)
processor-based models, there are eight hardware threads per core. Simiarly, amtune will set the
value of -XX:ParallelGCThreads as one-fourth of the total number of virtual processors or
hardware threads.
Linux OS
To tune for maximum performance on Linux systems, make tuning adjustments to the
following items:
■ “File Descriptors” on page 8
■ “Virtual Memory” on page 10
■ “Disk I/O Settings” on page 10
■ “TCP/IP Settings” on page 10
File Descriptors
You might need to increase the number of file descriptors from the default. A higher number of
file descriptors ensures that the server can open sockets under high load and not abort requests
coming in from clients. Start by checking system limits for file descriptors with this command:
cat /proc/sys/fs/file-max
8192
The current limit shown is 8192. To increase it to 65535, use the following command (as root):
To make this value survive a system reboot, add it to /etc/sysctl.conf and specify the
maximum number of open files permitted:
fs.file-max = 65535
sysctl -a
sysctl -p /etc/sysctl.conf
To check and modify limits per shell, use the following command:
ulimit -a
cputime unlimited
filesize unlimit
datasize unlimited
stacksize 8192 kbytes
coredumpsize 0 kbytes
memoryuse unlimited
descriptors 1024
memorylocked unlimited
maxproc 8146
openfiles 1024
The open files and descriptors show a limit of 1024. To increase the limit to 65535 for all users,
edit /etc/security/limits.conf as root, and modify or add the nofile setting (number of
file) entries:
The asterisk (*) is a wildcard that identifies all users. You can also specify a user ID instead.
On many systems, this procedure will be sufficient. Log in as a regular user and try it before
performing the remaining steps. The remaining steps might not be required, depending on how
pluggable authentication modules (PAM) and secure shell (SSH) are configured.
Virtual Memory
OpenSSO 8 supports only Linux kernel 2. 6 systems such as Red Hat Enterprise Linux 4 and 5,
and Ubuntu 8.0.4. For more information, see "Chapter 4: Tuning the VM” in the
documenthttp://people.redhat.com/nhorman/papers/rhel4_vm.pdf.
To ensure that the network interface is operating in full duplex mode, add the following entry
into /etc/rc.local:
TCP/IP Settings
To tune the TCP/IP settings, follow these steps:
1. Add the following entry to /etc/rc.local:
Although the amtune script does not tune non-Sun web containers, it will tune OpenSSO
parameters if $AMTUNE _TUNE_OPENSSO is set to true.
By default, the amtune script runs based on the assumption that the following amount of
memory (megabytes) is available for tuning OpenSSO when the web container (both Sun and
non-Sun) is running with 32-bit JVM:
■ (Sparc/x86/AIX) AMTUNE_MAX_MEMORY_TO_USE_IN_MB_SOLARIS=3584
■ (Linux) AMTUNE_MAX_MEMORY_TO_USE_IN_MB_X86=2341
■ (Windows) AMTUNE_MAX_MEMORY_TO_USE_IN_MB_DEFAULT=1536
The amtune script also tunes OpenSSO Enterprise when it is deployed on WebSphere 6.1 and
AIX, although it does not tune AIX system parameters or WebSphere container parameters.
For 64-bit JVM, amtune limits the initial heap size (-Xms) to 12 GB for Web Server 7 and
Application Server 9.1/GlassFish v2, although it can be increased manually to a bigger heap size,
if the Solaris operating system has at least twice as much virtual memory (swap space) as the
desired initial JVM heap size. There is no limit for the maximum heap size (-Xmx).
Using 64–bit JVM, the user session cache size, number of sessions, and number of SDK cache
entries are calculated by amtune. The results can be many times more than those calculated for
32–bit JVM, depending upon available memory. Be sure to review these numbers and
determine whether or not they are apropriate.
-server
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-Xms3136M
-Xmx3136M
-XX:NewSize=392M
-XX:MaxNewSize=392M
-Xss128k
For more information on JVM tuning and use of 64-bit JVM, please go to Java Performance
Portal:
http://java.sun.com/javase/technologies/performance.jsp.
For WebLogic Application Servers, increase the MaxPermSize from the default value of 128m to
256m in setDomainEnv.sh as shown below:
2 In the directory which has the unzipped ssoAdminTools file, run the following command:
UNIX ./setup
Windows setup
2 If you have not run the scripts in REVIEW mode, ensure that AMTUNE_MODE is set to REVIEW in
the following file:
<TOOLS_DIR>\<OPENSSO_URI>\bin\amtune\amtune-env.properties file
3 Edit other parameters in the amtune-env.properties file, depending upon the components
you want to tune.
See the Appendix for detailed information about the properties.
5 When you are satisfied with the tuning recommendations from running amtune in REVIEW
mode, set AMTUNE_MODE to CHANGE in the amtune-env.properties file.
2 Unzip amtune.zip.
5 Run the amtune script with a password file for the Sun Directory Server Directory Manager.
The Directory Server Directory Manager password must be inaccessible to non-owners and
only readable by its owner . For example, you can run change the permissions mode of the
password file by running the following command:
chmod 400
UNIX or Linux amtune
Windows amtune.bat
On Windows, you must also execute amtune.bat with a password file. But
amtune.bat does not check its file permission on Windows.
In CHANGE mode, if AMTUNE_TUNE_DS=true, then the amtune script will restart the Sun
Directory Server instance.
If AMTUNE_TUNE_OS=true, then the amtune script will tune the operating system kernel
parameters and will recommend a system restart.
amtune Properties
A
This appendix lists properties in the amtune-env.properties you must modify and verify
before running the amtune script. After you have modified the file to suit your deployment, you
can run the amtune script.
Tuning Modes
AMTUNE_MODE
Description: Based on this setting, the amtune script will behave differently.
Required: Yes
Sample Values:
REVIEW Suggests tuning recommendations only. In this
mode, the amtune script suggests tuning
recommendations, but will not make any changes to
the deployment environment.
17
Tuning Modes
AMTUNE_LOG_LEVEL
Description: Controls the logging of configuration data (calculated tuning
values).
Required: Yes
Sample Values:
TERM The output is only displayed on the terminal.
FILE The output is displayed on both terminal and in
amtune-config.<time stamp>.log file.
Default Value: None
Additional Information: Check the
<TOOLS_DIR>/<OPENSSO_URI>/logs/amtune-config.<time
stamp>.log file for the tuning parameters and their recommended
values from each run.
Components to be Tuned
AMTUNE_TUNE_*
Description: Specifies components to be tuned by amtune.
AMTUNE_TUNE_WEB_CONTAINER=
Only Sun Application Server 9.1, GlassFish v2, or Sun Web
Server 7 are supported for tuning.
AMTUNE_TUNE_OPENSSO=
OpenSSO tuning.
Other Containers
The amtune script supports only 32–bit JVM.
Although the amtune script does not tune non-Sun web containers,
it will tune OpenSSO parameters if $AMTUNE _TUNE_OPENSSO is set
to true.
By default, the amtune script runs based on the assumption that the
following amount of memory (megabytes) is available for tuning
OpenSSO when the web container (both Sun and non-Sun) is
running with 32-bit JVM:
■ (Sparc/x86/AIX)
AMTUNE_MAX_MEMORY_TO_USE_IN_MB_SOLARIS=3584
■ (Linux) AMTUNE_MAX_MEMORY_TO_USE_IN_MB_X86=2341
■ (Windows)AMTUNE_MAX_MEMORY_TO_USE_IN_MB_DEFAULT=1536
WEB_CONTAINER
Description: Specifies OpenSSO web container name and version.
Required: Yes
Sample Values:
Sun Web Server 7 WS7
Sun Application Server 9.1 or GlassFish v2 AS91
BEA WebLogic 9.2 weblogic92
BEA WebLogic 10 weblogic10
IBM WebSphere 6.1 websphere61
JBOSS 4.1 jboss42
Tomcat 5.5 tomcat55
Tomcat 6 tomcat6
Geronimo 2 geronimo2
Oracle Application Server 10 oas10
Default Value: None
Additional Information: All web containers supported by OpenSSO can be specified here.
However, for only Web Server 7 and Application Server 9.1,
amtune tunes JVM heap and JVM per-thread stack sizes, JVM
garbage collection algorithms, container worker/acceptor threads
and queue sizes.
CONTAINER_INSTANCE_DIR
Description: Specifies the OpenSSO web container instance directory.
Required: If the you are using Sun Web Server 7 or Sun application Server
9.1, then this parameter is required.
Sample Values:
Sun Web Server 7 /sun/webserver7/https-localhost
Sun Application Server 9.1 /sun/appserver/domains/domain1
Default Value: None
Additional Information: If you have installed Sun Web Server or Sun Application Server in
a non-default location, then change this value before running
amtune.
WSADMIN_*
Set the following parameters when $WEB_CONTAINER= WS7.
■ “WSADMIN_DIR” on page 22
■ “WSADMIN_USER” on page 23
■ “WSADMIN_HOST” on page 23
■ “WSADMIN_PORT” on page 23
■ “WSADMIN_SECURE” on page 23
■ “WSADMIN_CONFIG” on page 24
■ “WSADMIN_HTTPLISTENER” on page 24
WSADMIN_DIR
Description: Specifies Sun Web Server 7 installation location.
Required: Yes, when $WEB_CONTAINER=WS7
Sample Values:
Solaris /opt/SUNWwbsvr7/bin
Linux /opt/sun/webserver7/bin
Windows E:/Progra~1/webserver7/bin
Default Value: None
WSADMIN_USER
Description: Specifies Sun Web Server administrator.
Required: Yes
Sample Values: admin ( Sun Web Server default)
Default Value: None
WSADMIN_HOST
Description: Specifies Sun Web Server administrative host name.
Required: Yes
Sample Values: localhost
Default Value: None
WSADMIN_PORT
Description: Specifies Sun Web Server 7 administration port.
Required: Yes
Sample Values: 8888
WSADMIN_SECURE
Description: Flag to indicate whether or not $WSADMIN_PORT is in SSL mode.
Required: Yes
Sample Values:
If the port is a secure port --ssl=true
If the port is not a secure port --ssl=false
Default Value: None
WSADMIN_CONFIG
Description: Specifies Sun Web Server instance name.
Required: Yes
Sample Values: hostname.domain.com
WSADMIN_HTTPLISTENER
Description: Specifies HTTP listener name.
Required: Yes
Sample Values: http-listener-1 (Sun Web Server default)
Default Value: None
ASADMIN_*
Set these parameters when $WEB_CONTAINER= AS91.
■ “ASADMIN_DIR” on page 25
■ “ASADMIN_USER” on page 25
■ “ASADMIN_HOST” on page 25
■ “ASADMIN_PORT” on page 25
■ “ASADMIN_SECURE” on page 26
■ “ASADMIN_TARGET” on page 26
■ “ASADMIN_HTTPLISTENER” on page 26
■ “AMTUNE_WEB_CONTAINER_JAVA_POLICY” on page 27
ASADMIN_DIR
Description: Specifies Sun Application Server 9.1 or GlassFish v2 installation location.
Required: Yes
Sample Values:
Solaris /opt/SUNWappserver/bin
Linux /opt/sun/appserver/bin
Windows E:/Progra~1/glassfish-v2/bin
Default Value: None
ASADMIN_USER
Description: Specifies Sun Application Server 9.1 or GlassFish v2 administrator.
Required: Yes
Sample Values: admin (Sun Application Server or GlassFish default)
Default Value: None
ASADMIN_HOST
Description: Specifies Sun Application Server or GlassFish administrative host name.
Required: Yes
Sample Values: localhost
Default Value: None
ASADMIN_PORT
Description: Specifies Sun Application Server or GlassFish administrative port.
Required: Yes
Sample Values: 4848
ASADMIN_SECURE
Description: Flag that indicates whether or not Sun Application Server or GlassFish is in
SSL mode.
Required: Yes
Sample Values:
If the port is a secure port --secure (Application Server 9.1 or
GlassFish v2 default)
If the port is not a secure port Leave this value blank.
Default Value: None
ASADMIN_TARGET
Description: This value is usually set to server with the assumption that this Application
Server 9.1 or GlassFish v2 installation is used exclusively for OpenSSO
Enterprise
Required: Yes
Sample Values: server (Default in Application Server 9.1 or GlassFish v2)
Default Value: None
ASADMIN_HTTPLISTENER
Description: Specifies Sun Application Server HTTP listener name.
Required: Yes
Sample Values: http-listener-1 (Default in Sun Application Server 9.1 or GlassFish v2)
Default Value: None
AMTUNE_WEB_CONTAINER_JAVA_POLICY
Description: Specifies whether Sun Application Server or GlassFish evaluates
java security policies listed in the Application Server
server.policy file.
Required: Yes
Sample Values: false (Application Server or GlassFish default)
Default Value: false
Additional Information: Do not modify this parameter setting unless it is a unique
deployment requirement. Evaluating Java security policies can add
a significant performance overhead.
SSOADM_LOCATION
Description: Specifies the directory where the ssoadm command-line interface is located.
Required: Yes
Sample Values: <TOOLS_DIR>/<OPENSSO_URI>/bin
OPENSSOADMIN_USER
Description: Specifies administrator of OpenSSO 8.x.
Required: Yes,
Sample Values: amadmin (Default in OpenSSO)
Default Value: None
OPENSSOSERVER_URL
Description: Specifies OpenSSO URL.
Required: Yes
Sample Values: http://<HOST_NAME>:<PORT>/<OPENSSO_URI> (OpenSSO Enterprise
default)
Default Value: None
REALM_NAME
Description: Realm names for which user data store LDAP connection pool
need to be modified.
■ “DS_TOOLS_DIR ” on page 30
■ “DS_VERSION ” on page 30
■ “DIRMGR_BIND_DN ” on page 30
DS_HOST
Description: Specifies Sun Directory Server fully qualified domain name (FQDN ).
Required: Yes
Sample Values: ldap://hostname.domain.com
Default Value: None
DS_PORT
Description: Specifies Sun Directory Server port.
Required: Yes
Sample Values: 386 (Sun Directory default)
Default Value: None
ROOT_SUFFIX
Description: Specifies the root suffix of the organization.
Required: Yes
Default Value: None
DS_INSTANCE_DIR
Description: Specifies Sun Directory Server instance location
Required: Yes
Default Value: None
Additional Information: Use a forward slash (/) for file separators on Windows Systems.
DS_TOOLS_DIR
Description: Sun Directory Server dsadm/dsconf tools bin directory.
Required: Yes
Default Value: None
Additional Information: Use a forward slash (/) for file separators on Windows Systems.
DS_VERSION
Description: Sun Directory Server version.
Required: Yes
Sample Values: 5.2 or 6.3
Default Value: None
Additional Information: Sun Directory Server 6.2 is not supported for tuning due to its data
corruption issues.
DIRMGR_BIND_DN
Description: Directory Manager BIND DN for $DS_INSTANCE_DIR.
Required: Yes
Sample Values: cn=Directory Manager (Directory Server default)
Default Value: None
Caution – Do not modify these parameters unless tests show significant improvement in
performance.
■ “AMTUNE_PCT_MEMORY_TO_USE ” on page 31
■ “AMTUNE_MEM_MAX_HEAP_SIZE_RATIO” on page 32
■ “AMTUNE_PER_THREAD_STACK_SIZE” on page 32
■ “AMTUNE_*_MEMORY_TO_USE_IN_MB_*” on page 33
AMTUNE_PCT_MEMORY_TO_USE
Description: Specifies a percentage value how much of the machine's available
memory will be used by OpenSSO Enterprise.
Required: Yes
Sample Values: 0 to 100
Default Value: 75
Additional Information: Do not modify this percentage unless tests show significant
improvement in performance.
For 64-bit JVM, amtune limits the initial heap size (-Xms) to 12
GB for Web Server 7 and Application Server 9.1/Glassfish v2,
although it can be increased manually to a bigger heap size, if the
Solaris operating system has at least twice as much virtual memory
(swap space) as the desired initial JVM heap size. There is no limit
for the maximum heap size (-Xmx).
Using 64-bit JVM, the user session cache size, and number of
sessions, and number of SDK cache entries are calculated by
amtune and can be many times of those calculated in case for
32-bit JVM, depending on the available memory. Be sure to review
these numbers and determine whether or not they are appropriate
.
AMTUNE_MEM_MAX_HEAP_SIZE_RATIO
Description: These parameters are used to calculate the maximum and
minimum heap sizes. Options include:
■ AMTUNE_MEM_MAX_HEAP_SIZE_RATIO
■ AMTUNE_MEM_MIN_HEAP_SIZE_RATIO
Required: Yes
Sample Values:
Maximum heap size ratio 7/8
Minimum heap size ratio 1/2
Additional Information: Do not modify these ratios unless tests show significant
improvement in performance.
AMTUNE_PER_THREAD_STACK_SIZE
Description: Specifies available stack space per thread in JVM. Per-thread stack
size is used to tune various thread-related parameters in OpenSSO
Enterprise and its web container. Options include:
■ AMTUNE_PER_THREAD_STACK_SIZE_IN_KB
■ AMTUNE_PER_THREAD_STACK_SIZE_IN_KB_64_BIT
Required: Yes
Sample Values:
32–bit JVM 128KB
64–bit JVM 512KB
AMTUNE_*_MEMORY_TO_USE_IN_MB_*
Description: Maximum amount of memory that should not be exceeded for
32-bit JVM on different platforms.
AMTUNE_MAX_MEMORY_TO_USE_IN_MB_X86 is used to limit the
maximum JVM heap size on Linux installed on x86 hardware due
to limitations on how much JVM heap size can be allowed even
with 32-bit JVM.
Options include:
■ AMTUNE_MIN_MEMORY_TO_USE_IN_MB
■ AMTUNE_MAX_MEMORY_TO_USE_IN_MB_SOLARIS
■ AMTUNE_MAX_MEMORY_TO_USE_IN_MB_X86
■ AMTUNE_MAX_MEMORY_TO_USE_IN_MB_DEFAULT (for Windows)
Required: Yes
Default Values AMTUNE_MIN_MEMORY_TO_USE_IN_MB=512
AMTUNE_MAX_MEMORY_TO_USE_IN_MB_SOLARIS=3584
(Sparc/x86/AIX)
AMTUNE_MAX_MEMORY_TO_USE_IN_MB_X86=2341 (Linux)
AMTUNE_MAX_MEMORY_TO_USE_IN_MB_DEFAULT=1536 (Windows)
Additional Information: Do not modify these values. If the maximum values are changed to
higher numbers, the web container will not start on these
platforms due to a JVM crash.