image\cslogo3d1.gif

Running in Multi-threaded Mode

As discussed in "Choosing a Threading Mode," you can choose one of two basic engine modes in which to run the Chili!Soft ASP Server: multi-threaded or multi-process. The mode you choose can affect the performance of the server. When running in multi-threaded mode, as load increases, Chili!Soft ASP spawns new threads for servicing page requests, up to a configurable maximum number. Multi-threaded mode can provide the best performance for certain types of ASP applications, such as those making heavy use of the Application Object.

The number of simultaneous threads is 5 by default. If there are very many pages with 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. A maximum number of 20 threads is recommended.

To configure Chili!Soft ASP to run in multi-threaded mode and specify the number of threads, 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-threaded 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-Thread.

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

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

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

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