View Full Version : More CGI jobs
ktoole
01-25-2010, 09:34 AM
How can I set the server to run more than 5 CGI jobs? I checked the apache config file for Valence and it is set to run up to 40 CGI jobs. When the main HTTP job starts for Valence it looks like this:
CALL PGM(QHTTPSVR/QZHBMAIN) PARM('-S' 'VALENCE20' '-uiMin' '3' '-uiMax' '5
' '-cEAMap' '*CCSID' '-cAEMap' '*CCSID' '-uiCCSID' '819' '-apache' '-d' '/
www/valence20' '-f' 'conf/httpd.conf' '-AutoStartY')
The -uiMax parm appears to be set to 5 and that is keeping more CGI jobs from running. Where can I set this value? I can't find it as part of the server setup.
richard.milone
01-25-2010, 02:41 PM
I have yet to discover any documentation on -uiMax but yes, that does seem to control the maximum number of CGI jobs that will run. You can override that directly on the STRTCPSVR command. For example, if you wanted to have a maximum of 100 jobs you could issue the command:
STRTCPSVR SERVER(*HTTP) RESTART(*NONE) HTTPSVR(VALENCE20 '-uiMax 100')
Alternatively if you want it to start always with a uiMax of 100 then you can modify the QATMHINSTC file for member VALENCE20. If you edit that file member you'll see a single record that looks something like this:
-apache -d /www/valence20 -f conf/httpd.conf -AutoStartY
If you want the uiMax to be set to 100 on startup, change the record to this:
-apache -d /www/valence20 -f conf/httpd.conf -AutoStartY -uiMax 100
If anyone knows where to find the documentation for these startup flags that would be helpful. They do not appear to be documented in the IBM HTTP Apache Server manual, unless I'm just missing it.
ktoole
01-26-2010, 06:55 AM
I added the parm to the field that is part of member VALENCE20 in the file. I restarted the VALENCE20 server and checked the start up job. This is what I got:
>> CALL PGM(QHTTPSVR/QZHBMAIN) PARM('-S' 'VALENCE20' '-uiMin' '3' '-uiMax' '5
' '-cEAMap' '*CCSID' '-cAEMap' '*CCSID' '-uiCCSID' '819' '-apache' '-d' '/
www/valence20' '-f' 'conf/httpd.conf' '-AutoStartY' '-uiMax' '35')
I tried running a job that would require more than 5 CGI jobs and a 6th one did appear. I'll check and see if more jobs start as they are requested.
I did find a setting in the config file that IBM has that sets the max CGI jobs at 40, so I'm not sure what would happen if you told it 100 the file. The CGI setting in IBM's server admin screen is under Dynamic Content and CGI then on the General Settings tab for the Valence20 server.
vBulletin® v3.7.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.