Re: Reg: Apache HTTP Server with CGI Scripts

<stefan-6HgPSzB/[email protected]> Fri, 21 Jun 2024 13:22:20 +0200
Newsgroups gmane.comp.systems.as400.web
Message-ID <[email protected]>
Hi Suren,

This is from my notes in one of my cgi-programs:

 To speed things up the Apache server can be configured to call a program at startup. Apache then issues a GET with a specific url: init=yes and that is taken care of at the beginning of this program.
 This is not foolproof however, as the init call does only happen at server startup, never when the server later starts additional worker jobs. When additional jobs are started  initialisation takes place in the first served transaction.
 Further analysis about program startup time reveals that most of the time spent is for the RPGLE programs to open files the first time they are called.

Best regards

Stefan

-- 
No trees were killed in the sending of this message, but a large number of electrons were terribly upset.

Stefan Tageson
+46 732 369934
stefan-6HgPSzB/[email protected]

-----Original Message-----
From: WEB400 <[email protected]> On Behalf Of Suren K
Sent: Friday, June 21, 2024 4:41 AM
To: Web Enabling the IBM i (AS/400 and iSeries) <[email protected]>
Subject: [WEB400] Reg: Apache HTTP Server with CGI Scripts

Hi All,

I have deployed web services using IBMi HTTP Server and added CGI scripts to directly call the RPGLE program based on URL.
I am noticing after every restart the first transaction takes more time to process (almost 10 to 15 seconds), then all other transactions are processed faster (in milliseconds).


-- 
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.