Configuring and Managing MPE/iX Internet Services (MPE/iX 6.5)

156 Chapter9
Apache for MPE/iX
Major Components
Performance
For best performance, files returned to the user should be in bytestream
format. For example, .html, .htm, .shtml, .shtm, .txt, .gif, .jpeg, and .jpg
files, should be in bytestream format instead of in MPE-type format.
Bytestream files are more compatible with Apache and with other
POSIX applications than are MPE-type files. If you have a web page
that calls many images which are not in bytestream format (BA), you
could have noticeable performance degradation.
If any of your files under the document root (htdocs) are either MPE
fixed ascii (FA), MPE variable ascii (VA), or MPE variable binary (VB)
files, you should consider converting them to bytestream files using the
"tobyte" utility. Program files (fixed binary (FB) files with an NMPROG
filecode) should never be converted.
A file's filetype can be determined using either the POSIX file
command or the CI listfile command:
shell/iX> file index*.html
index.html: MPE/iX 256-byte variable length binary (filecode: 0)
index1.html: MPE/iX 80-byte fixed length ascii (filecode:0)
shell/iX>callci listfile ./index.html,2
PATH= /APACHE/PUB/htdocs/
CODE ------------LOGICAL RECORD------- ----SPACE---- FILENAME
SIZE TYP EOF LIMIT R/B SECTORS #X MX
128W VB 19 204800 1 32 1 8 index.html
80B FA 54 204800 1 32 1 8 index1.html
To convert an ASCII-type file (.htm*, .shtm*, or .txt), use the tobyte
utility with the -at option. If it is a binary-type file (such as .jpeg, .jpg,
or .gif), do not use the -at option:
tobyte -at /APACHE/PUB/htdocs/index.html /APACHE/PUB/htdocs/newindex.html
For more information on the "tobyte" utility, use the POSIX help
facility (i.e. man tobyte).
If your Apache web server seems slow in responding, you might try
running the Apache job stream file, JHTTPD, in the C queue instead of
in the default D queue. The changes shown below allow Apache to run
in the C queue while keeping the default execution level for jobs in the
D queue. The jobpri command can be executed on the console or in a
systart file.
!job JHTTPD,www.apache;pri=cs;outclass=,2
jobpri cs