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).

Anything I need to tune in to the HTTP Server to make the first transaction
faster?

HTTP Configuration file as below

# Configuration originally created by Create HTTP Server wizard on Thu Jun
20 05:28:43 PDT 2024
Listen *:38080
DocumentRoot /www/testserv/htdocs
TraceEnable Off
Options -FollowSymLinks
LogFormat "%h %T %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%{Cookie}n \"%r\" %t" cookie
LogFormat "%{User-agent}i" agent
LogFormat "%{Referer}i -> %U" referer
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log combined
LogMaint logs/access_log 7 0
LogMaint logs/error_log 7 0
SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0
SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0
SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0
SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
ServerUserId TESTUSER
HTTPStartJobDesc TESTLIB/TESTJOBD
SetEnv QIBM_CGI_CHANGE_CURDIR N
SetEnv QIBM_CGI_CHANGE_CURLIB N
<Directory />
Require all denied
</Directory>
<Directory /www/testserv/htdocs>
Require all granted
</Directory>
<Directory /qsys.lib/testlib.lib>
Require all granted
</Directory>
ScriptAlias /CGI/1.0/students /qsys.lib/ testlib.lib/TESTPGM1.pgm
ScriptAliasMatch /CGI/1.0/getAddress/(.*) /qsys.lib/testlib.lib/TESTPGM3.pgm
ScriptAlias /CGI/1.0/enroll /qsys.lib/testlib.lib/TESTPGM2.pgm
#HTTPSubsystemDesc QHTTPSVR/QHTTPSVR
#HTTPStartJobDesc QHTTPSVR/QZHBHTTP
#HTTPStartJobQueue *JOBD
#HTTPRoutingData *JOBD

Any suggestions will be very much appreciated.

Regards,
Suren

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.