On z/OS the Apache Web Server sample started task procedure HAPBPROC is shipped via the SHAPJCL2 library.
The sample procedure contains the parameter MEMLIMIT=512M.
Should anyone be seeing memory errors specifically or unexplained errors in general try removing that parm and running REGION=0M.
Ed