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:

  1. (for second opinion) should manually configure memory limit? lower ram?
  2. what best memory_limit size should put if ram 512m ?
  3. if case, configured successfully, allocation memory error vanish?
  4. will lessen performance of website?
  5. 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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -