Sun Java System Web Server 6.1 SP11 Programmer's Guide

Setting the Priority of a CGI Program

The priority of a CGI program can be set using the nice parameter of the send-cgi function. This is a UNIX-only parameter and accepts an increment that determines priority of the CGI program relative to the server. The server is run with a nice value of 0 and the nice increment would be between 0 (the CGI program runs at same priority as server) and 19 (the CGI program runs at much lower priority than server). As with all other CGI variables, this can be configured per class or per virtual server.

For more information about send-cgi, see the Sun Java System Web Server 6.1 SP11 Administrator’s Configuration File Reference.

To configure CGI variables for a class:

ProcedureTo configure CGI variables for a virtual server

  1. Access the Class Manager, and then click Manage Virtual Servers on the Virtual Servers tab.

  2. Select a virtual server, click Manage, and then click Settings.

  3. Specify the nice value as desired, and then click OK to apply your changes.

    The value overrides any value set at the class level.