You can use either the Admin Console or the CLI to change the global CGI settings:
Using the Admin Console:
Click the Configuration tab.
List of available configurations is displayed.
Select a configuration from the list.
Select Performance tab > CGI subtab.
The CGI Settings window is displayed.
Specify the values for the following settings:
CGI Timeout Settings:
Timeout (CGIExpirationTimeout) Specifies the time in seconds after which the server terminates a long-running CGI program.
Idle Timeout(CGIStubIdleTimeout) Causes the server to kill any CGIStub processes that have been idle for the number of seconds set by this directive. Once the number of processes is at MinCGIStubs, the server does not kill any more processes.
CGI Stub Process Settings:
Timeout Time in seconds after which an unused CGI stub process is terminated.
CGI Stub Excecutable Controls the number of processes that are started by default. The first CGIStub process is not started until a CGI program has been accessed. The default value is 2. If you have a init-cgi directive in the magnus.conf file, the minimum number of CGIStub processes are spawned at startup. Controls the number of processes that are started by default.
Minimum Stub Size Controls the maximum number of CGIStub processes the server can spawn. This is the maximum concurrent CGIStub processes in execution, not the maximum number of pending requests. The value must be less than the Maximum Stub Size.
Maximum Stub Size Controls the maximum number of CGIStub processes the server can spawn. This is the maximum concurrent CGIStub processes in execution, not the maximum number of pending requests.
For more information about these global CGI settings, see the description of the magnus.conf file in the Sun Java System Web Server 7.0 Update 1 Administrator’s Configuration File Reference.
Click Save to apply your changes.
Using the set-cgi-prop command.
Example:
./wadm set-cgi-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 timeout=10 max-cgistubs=20 idle-timeout=600 min-cgistubs=10 cgistub-idle-timeout=60 cgistub-path=../../lib/Cgistub
For more information on the set-cgi-prop command, see the Sun Java System Web Server 7.0 Update 1 CLI Reference Manual.