This guide discusses adjustments you can make that may improve the performance of Sun JavaTM System Web Server (henceforth known as Web Server). The guide provides tuning, scaling, and sizing tips and suggestions; possible solutions to common performance problems; and data from scalability studies. It also addresses miscellaneous configuration and platform-specific issues.
This guide is intended for advanced administrators only. Be sure to read this guide and other relevant server documentation before making any changes. Be very careful when tuning your server, and always back up your configuration files before making any changes.
Web Server can be installed as a stand-alone product or as a component of Sun Java Enterprise System (Java ES), a software infrastructure that supports enterprise applications distributed across a network or Internet environment. If you are installing Web Server as a component of Java ES, you should be familiar with the system documentation at http://docs.sun.com/coll/1286.2.
The Web Server documentation set describes how to install and administer the Web Server. The URL for Web Server documentation is http://docs.sun.com/coll/1308.3. For an introduction to Web Server, refer to the books in the order in which they are listed in the following table.
Table P–1 Books in the Web Server Documentation Set
Documentation Title |
Contents |
---|---|
Web Server documentation topics organized by tasks and subject |
|
|
|
Sun Java System Web Server 7.0 Installation and Migration Guide |
Performing installation and migration tasks:
|
Performing the following administration tasks:
|
|
Using programming technologies and APIs to do the following:
|
|
Sun Java System Web Server 7.0 Update 1 NSAPI Developer’s Guide |
Creating custom NetscapeTM Server Application Programmer’s Interface (NSAPI) plug-ins |
Sun Java System Web Server 7.0 Developer’s Guide to Java Web Applications |
Implementing Java Servlets and JavaServer PagesTM (JSPTM) technology in Sun Java System Web Server |
Sun Java System Web Server 7.0 Administrator’s Configuration File Reference |
Editing configuration files |
Sun Java System Web Server 7.0 Performance Tuning, Sizing, and Scaling Guide |
Tuning Sun Java System Web Server to optimize performance |
Troubleshooting Web Server |
The URL for all documentation about Sun Java Enterprise System (Java ES) and its components is http://docs.sun.com/prod/entsys.5.
The following table describes the default paths and file names that are used in this book.
Table P–2 Default Paths and File Names
Placeholder |
Description |
Default Value |
---|---|---|
install_dir |
Represents the base installation directory for Web Server. |
Sun Java Enterprise System (Java ES) installations on the SolarisTM platform: /opt/SUNWwbsvr7 Java ES installations on the Linux and HP-UX platform: /opt/sun/webserver/ Java ES installations on the Windows platform: System Drive:\Program Files\Sun\JavaES5\WebServer7 Other Solaris, Linux, and HP-UX installations, non-root user: user's home directory/sun/webserver7 Other Solaris, Linux, and HP-UX installations, root user: /sun/webserver7 Windows, all installations: System Drive:\Program Files\Sun\WebServer7 |
instance_dir |
Directory that contains the instance-specific subdirectories. |
For Java ES installations, the default location for instances on Solaris: /var/opt/SUNWwbsvr7 For Java ES installations, the default location for instances on Linux and HP-UX: /var/opt/sun/webserver7 For Java ES installations, the default location for instance on Windows: System Drive:\Program Files\Sun\JavaES5\WebServer7 For stand-alone installations, the default location for instance on Solaris, Linux, and HP-UX: <install_dir> For stand-alone installations, the default location for instance on Windows: System Drive:\Program Files\sun\WebServer7 |
The following table describes the typographic changes that are used in this book.
Table P–3 Typographic Conventions
Typeface |
Meaning |
Example |
---|---|---|
AaBbCc123 |
The names of commands, files, and directories, and onscreen computer output |
Edit your .login file. Use ls -a to list all files. machine_name% you have mail. |
AaBbCc123 |
What you type, contrasted with onscreen computer output |
machine_name% su Password: |
AaBbCc123 |
A placeholder to be replaced with a real name or value |
The command to remove a file is rm filename. |
AaBbCc123 |
Book titles, new terms, and terms to be emphasized (note that some emphasized items appear bold online) |
Read Chapter 6 in the User's Guide. A cache is a copy that is stored locally. Do not save the file. |
The following table explains symbols that might be used in this book.
Table P–4 Symbol Conventions
Symbol |
Description |
Example |
Meaning |
---|---|---|---|
[ ] |
Contains optional arguments and command options. |
ls [-l] |
The -l option is not required. |
{ | } |
Contains a set of choices for a required command option. |
-d {y|n} |
The -d option requires that you use either the y argument or the n argument. |
${ } |
Indicates a variable reference. |
${com.sun.javaRoot} |
References the value of the com.sun.javaRoot variable. |
- |
Joins simultaneous multiple keystrokes. |
Control-A |
Press the Control key while you press the A key. |
+ |
Joins consecutive multiple keystrokes. |
Ctrl+A+N |
Press the Control key, release it, and then press the subsequent keys. |
-> |
Indicates menu item selection in a graphical user interface. |
File -> New -> Templates |
From the File menu, choose New. From the New submenu, choose Templates. |
The http://docs.sun.com (docs.sun.comSM) web site enables you to access Sun technical documentation online. You can browse the docs.sun.com archive or search for a specific book title or subject. Books are available as online files in PDF and HTML formats. Both formats are readable by assistive technologies for users with disabilities.
To access the following Sun resources, go to http://www.sun.com:
Downloads of Sun products
Services and solutions
Support (including patches and updates)
Training
Research
Communities (for example, Sun Developer Network)
Besides searching Sun product documentation from the docs.sun.com web site, you can use a search engine by typing the following syntax in the search field:
search-term site:docs.sun.com |
For example, to search for “Web Server,” type the following:
Web Server site:docs.sun.com |
To include other Sun web sites in your search (for example, java.sun.com, www.sun.com, and developers.sun.com), use “sun.com” in place of “docs.sun.com” in the search field.
Third-party URLs are referenced in this document and provide additional, related information.
Sun is not responsible for the availability of third-party web sites mentioned in this document. Sun does not endorse and is not responsible or liable for any content, advertising, products, or other materials that are available on or through such sites or resources. Sun will not be responsible or liable for any actual or alleged damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods, or services that are available on or through such sites or resources.
Sun is interested in improving its documentation and welcomes your comments and suggestions. To share your comments, go to http://docs.sun.com and click Send Comments. In the online form, provide the full document title and part number. The part number is a 7-digit or 9-digit number that can be found on the book's title page or in the document's URL. For example, the part number of this book is 819-2635.