Sun ONE Application Server 7 Performance Tuning Guide |
About This Guide
OverviewSun ONE Application Server 7 is a J2EE 1.3 specification-compatible application server which supports Java Web Services standards as well as standard HTTP server programming facilities. Three editions of the application server are offered to suit a variety of needs for both production and development environments:
Platform Edition
Platform Edition forms the core of the Sun ONE Application Server 7 product line. This, free for production use, product offers a high-performance, small-footprint J2EE 1.3 specification-compatible runtime environment that is ideally suited for basic operational deployments, as well as for embedding in third-party applications. Web-services ready, the Platform Edition includes technologies derived from the Sun ONE Web Server, Sun ONE Message Queue, and the J2EE Reference Implementation.
Platform Edition deployments are limited to single application server instances (i.e. single virtual machines for the Java platform (“Java virtual machine” or “JVM”)). Multi-tier deployment topologies are supported by the Platform edition, but the web server tier proxy does not perform load balancing. In Platform Edition, administrative utilities are limited to local clients only.
Platform Edition is integrated into Solaris 9.
Standard Edition
The Standard Edition layers enhanced, remote-management capabilities on top of the Platform Edition. Enhanced management capabilities, remote command-line, and web-based administration are all included as part of the Standard Edition. This edition also includes the ability to partition web application traffic through a web server tier proxy. Standard Edition supports configuration of multiple application server instances (JVMs) per machine.
Enterprise Edition
Enterprise Edition enhances the core application server platform with greater high availability, load balancing, and clustering capabilities suited for the most demanding J2EE-based application deployments. The management capabilities of the Standard Edition are extended in Enterprise Edition to account for multi-instance and multi-machine deployments.
Clustering support includes easy-to-configure groups of cloned application server instances to which client requests can be load balanced. Both external load balancers and load balancing web tier-based proxies are supported by this edition. HTTP session, stateful session bean instance, and Java Message Service (JMS) resource failover are included in the Enterprise Edition. The patented “Always On” highly available database technology forms the basis for the HA persistence store in the Enterprise Edition.
For more product information, see the Sun ONE Application Server page at http://www.sun.com/software/products/appsrvr/home_appsrvr.html.
Using the DocumentationThe Sun ONE Application Server documentation is available as online files in Portable Document Format (PDF) and Hypertext Markup Language (HTML) formats at:
The following table lists tasks and concepts described in the Sun ONE Application Server documentation. The left column lists the tasks and concepts, and the right column lists the corresponding document.
Documentation ConventionsThis section describes the typographical conventions used throughout this guide:
General Conventions
The following general conventions are used in this guide:
- Font conventions include:
- The monospace font is used for sample code and code listings, API and language elements (such as function names and class names), file names, pathnames, directory names, and HTML tags.
- Italic type is used for code variables.
- Italic type is also used for book titles, emphasis, variables and placeholders, and words used in the literal sense.
- Bold type is used as either a paragraph lead-in or to indicate words used in the literal sense.
- Installation root directories for most platforms are indicated by install_dir in this document. Exceptions are noted in "Conventions Referring to Directories".
By default, the location of install_dir on various product distributions are:
For the platforms listed above, default_config_dir and install_config_dir are identical to install_dir. See "Conventions Referring to Directories" for exceptions and additional information.
- Instance root directories are indicated by instance_dir in this document, which is an abbreviation for the following:
default_config_dir/domains/domain/instance
- UNIX-specific descriptions throughout this manual apply to the Linux operating system as well, except where Linux is specifically mentioned.
Conventions Referring to Directories
By default, when using the Solaris 8 and 9 package-based installation and the Solaris 9 bundled installation, the application server files are spread across several root directories. These directories are described in this section.
- For Solaris 9 bundled installations, this guide uses the following document conventions to correspond to the various default installation directories provided:
- install_dir refers to /usr/appserver/, which contains the static portion of the installation image. All utilities, executables, and libraries that make up the application server reside in this location.
- default_config_dir refers to /var/appserver/domains, which is the default location for any domains that are created.
- install_config_dir refers to /etc/appserver/config, which contains installation-wide configuration information such as licenses and the master list of administrative domains configured for this installation.
- For Solaris 8 and 9 package-based, non-evaluation, unbundled installations, this guide uses the following document conventions to correspond to the various default installation directories provided:
- install_dir refers to /opt/SUNWappserver7, which contains the static portion of the installation image. All utilities, executables, and libraries that make up the application server reside in this location.
- default_config_dir refers to /var/opt/SUNWappserver7/domainswhich is the default location for any domains that are created.
- install_config_dir refers to /etc/opt/SUNWappserver7/config, which contains installation-wide configuration information such as licenses and the master list of administrative domains configured for this installation.
Product SupportIf you have problems with your system, contact customer support using one of the following mechanisms:
Please have the following information available prior to contacting support. This helps to ensure that our support staff can best assist you in resolving problems:
- Description of the problem, including the situation where the problem occurs and its impact on your operation
- Machine type, operating system version, and product version, including any patches and other software that might be affecting the problem
- Detailed steps on the methods you have used to reproduce the problem
- Any error logs or core dumps
This guide is intended for advanced administrators of Sun ONE Application Server. This guide helps you tune Sun ONE Application Server for maximum performance and reliability. It is recommended that you backup your configuration files, before changing the configuration settings on Sun ONE Application Server.
What’s in this GuideThis guide discusses the various subsystems, features, and tools inside the Sun ONE Application Server and how to tune them for maximum performance and reliability. This guide is intended for server administrators, J2EE developers, network administrators, and evaluators.
What You Should KnowBefore you begin, you should already be familiar with the following topics:
How This Guide is OrganizedThis guide is organized as follows:
“About Sun ONE Application Server” gives an overview of Sun ONE Application Server features and components.
“About Sun ONE Application Server Performance” describes the techniques and processes involved in tuning Sun ONE Application Server.
“Tuning Your Application” describes practices and configuration settings you can use with your applications to ensure maximum performance.“Tuning Sun ONE Application Server” describes how you can configure the application server for your needs.“Tuning the Java Runtime System” describes how you can configure the Java Virtual Machine to work optimally with the Sun ONE Application Server.
“Tuning Operating System” describes how you can configure your operating system to work optimally with the Sun ONE Application Server.
“Common Performance Problems” describes common performance problems users face when the Sun ONE Application Server is used as a classic web server.An “Index” is provided for quick reference lookups to key performance terms.