db2 - How to allocate more memory to a PHP job on the iSeries? -
when running php scripts on iseries, though set memory limit -1 in php.ini... php says runs out of memory around 256mb. i'm curious if there way allocate more memory job on iseries allow php allocate more memory.
finally figured out!
on iseries apache configuration must set following environment variable in httpd.conf file:
setenv="ldr_cntrl=maxdata=0x80000000"
this allow access 2.25gb of memory in 1 php script via web server instead of 256mb
(in case using zendserver , had edit config file fastcgi.conf)
ref :
Comments
Post a Comment