First, as I said in message number 6933:

"
Assuming you are using CGIDEV2 Version 2004-09-02 17:40:18 or later, CGIDEV2's HTML output buffer can grow up to about 2 terabytes.

See "Externally described HTML subprocedures - maximums" in the CGIDEV2 readme, http://www-922.ibm.com/cgidev2h/readme.htm#funcHTMLMax "

Given the message you are seeing, it is likely that you are using an older
CGIDEV2 version.

Second, one should seldom, if ever, need to send anywhere near 16 MB in response to an HTTP request.  However, you can exceed 16 MB if you use the latest CGIDEV2 distribution.


Mel Rothman
Mel Rothman, Inc.

"Version 2004-09-02 17:40:18


davidhanlan wrote:
Hello,

I have an AS400 running OS 5.2 NON Apache (Soon to upgrade)
Using CGIDEV2 - Not sure when the last update was done!

I am having an issue where the CGI pgm initiated by the desktop URL
fails.

Steps:
1) initiate the html URL
2) A screen appears and I enter a single character value of 'R'
3) Normally the CGI program reads the file and displays it to the
screen in html format. Today however it attempts to read the file
but after a minute or so the process fails and I get a page cannot
be displayed message
(HTTP 500 - Internal server error) . 

On the AS/400 in the HTTP joblog the following message appears:
                                                                    
Message ID .. :   RNX0425       Severity . . . :   50        
Message type . . . . . :  
Escape                                             
Date sent  . :   02/01/06      Time sent  . . :   10:53:13  
                                                                    
         
Message: The length requested for storage allocation is out of     
range.                                                              
       
Cause:  RPG procedure WRTSECTION in program CGIDEV2/CGISRVPGM2    
  tried to allocate storage with a length that was not a value
between 1 and 16776704.  
                                                                    
Recovery  . . . :   Contact the person responsible for program
maintenance to determine the cause of the
problem.                                         

4) Troubleshooting
Nothing has changed in HTTP, CGI or the program so I suspected the
input file size as the cause of the problem. The input file was
broken down into smaller file segments and things seem to work fine.

IBM indicates that it like a program or CGI configuration causing
the limitation and not HTTP.

Any assistance in resolving this issue would be greatly appreciated.

Dave



SPONSORED LINKS
How to format a computer hard drive Cobol programmer Iseries 400
How to format a computer How to format your computer How to format computer


YAHOO! GROUPS LINKS




Reply via email to