memory - PHP memory_limit in a shared hosting environment -
i on shared hosting environment , got memory allocation errors. then, checked php in cpanel, , saw memory limit 1024m, ram 512m. searched , saw post saying ram needs greater php memory limit. , said that, can use ini_set()
manually set memory limit lower ram.
my questions are:
- (for second opinion) should manually configure memory limit? lower ram?
- what best
memory_limit
size should put if ram 512m ? - if case, configured successfully, allocation memory error vanish?
- will lessen performance of website?
- what happen performance of website? [good , bad]
update
here got error again:
couldn't create child process: /opt/suphp/sbin/suphp
first of (answer #1) php memory located in ram, can't allocate more ram capacity. keep in mind 512mb ram users on site together, not each request separately.
second (answer other): if have 512mb php limit , it's exceeded, scripts taking resources , slow down/stop website. optimize operations , queries.
Comments
Post a Comment