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 SP6 Administrator’s Configuration File Reference.
To configure CGI variables for a class:
Access the Class Manager, click CGI Settings on the Virtual Server tab, and then specify the nice value as desired before clicking OK and applying your changes.
Access the Server Manager, click the Virtual Server Class tab, and then click Edit Classes. Click Advanced, and specify the nice value as desired before clicking OK and applying your changes.
All virtual servers in the specified class will inherit the value from the class. You can override this by setting the value for an individual virtual server, as described below.