image\cslogo3d1.gif

Running in Multi-process Mode

As discussed in "Choosing a Threading Mode," you can select one of two basic modes in which to run ASP Server: multi-threaded or multi-process. The mode you choose can affect the performance of the server. Like Apache Web Server, the ASP Server provides excellent performance in multi-process mode, and at the same time can take advantage of the stability benefits of a multi-process architecture. Multi-process mode increases server stability because if one process goes down, another processes can pick up the load while the failed process is restarted.

For more information about multi-threaded mode, see "Running in Multi-threaded Mode" in this chapter.

Note

Chili!Soft ASP 3.6 for Linux or Cobalt platforms does not support multi-process mode.

The number of simultaneous processes is 5 by default. If there are very many ASP pages that include blocking operations (e.g., database access) it is a good idea to increase this number. Keep in mind, however, that doing this creates more system overhead. In internal Chili!Soft testing, a setting of 7 yielded the best performance under most circumstances.

Caution

The following procedure includes information about changing the Application variables setting. In multi-process mode, this setting is Read-Only by default, which prevents you from modifying, setting, or changing application-level variables once the global.asa file has been read. If you change Application variables to Read/Write you can modify, set, and change application-level variables; however, if you do this, the ASP Server can become unstable under stress.

To configure Chili!Soft ASP to run in multi-process mode, use the following procedure.

Note

The last step of this procedure is to restart both the ASP Server and the Web server. Be aware that restarting the ASP Server resets all Session and Application variables.

To configure Chili!Soft ASP to run in multi-process mode

1.   If necessary, open the Chili!Soft ASP Administration Console by using the following URL:

http://[HOSTNAME]:[PORT]

where [HOSTNAME] is the hostname of your Web server and [PORT] is the port on which the Administration Console is running (5100 by default).

2.   On the ASP tab of the Server Management page (the first page that displays when you open the Administration Console), click Settings.

image\settings_c.gif

The Server Settings page displays.

image\server_settings.gif

3.   In the ASP engine mode list box, select Multi-Process.

4.   In the Number of processes box, type the maximum number of processes you want to have running at once. This number is 5 by default.

5.   If necessary, in the Application variables list box select Read-Only (the default) or Read/Write. Before changing the default value, read Caution earlier in this topic.

6.   Click Save, and then click Yes to restart the Web server and ASP Server.

Note

Restarting the ASP Server resets all Session and Application variables.

Copyright 2001 Sun Microsystems, Inc. All rights reserved. Legal Notice.