• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[SOLVED] More CGI jobs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED] More CGI jobs

    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.

  • #2
    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.

    Comment


    • #3
      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.

      Comment


      • #4
        Just a note, the QATMHINSTC file is in QUSRSYS library on our system.
        Last edited by robert.swanson; 03-17-2012, 09:41 AM. Reason: typo

        Comment


        • #5
          I have 10 jobs automatically start on my system. In the apache configuration I added the following to accomplish this.

          StartCGI 10 QTMHHTP1

          Comment

          Working...
          X