The priority of a CGI program can be set using the nice parameter of the send-cgi function. This UNIX-only parameter accepts an increment that determines the CGI program’s priority relative to the priority of the server process. Typically, the server is run with a nice value of 0. The nice increment can be between 0 and 19.
The CGI program runs at the same priority as the server
The CGI program runs at a much lower priority than the server
Do not increase the priority of the CGI program above that of the server by specifying a nice increment of -1.
For more information about send-cgi, see the Sun Java System Web Server 7.0 Update 2 Administrator’s Configuration File Reference.
You can configure CGI variables for a virtual server either using the Admin Console or using the CLI. The following procedure describes the steps:
In the Admin Console, select the Common Tasks tab.
Select CGI Directories from the Virtual Server Tasks list.
The CGI Settings window is displayed.
Specify the nice value as desired.
Click Save to apply your changes.
./wadm set-cgi-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 nice=5