Differences between PHP memory limit and RAM

PHP memory limit setting applies to the maximum memory limit which is used by a single request/script/process. It helps prevent poorly written scripts from consuming all available memory on a server. For example, if 3 PHP scripts are simultaneously using 100 MB of memory each, that would total to 300 MB of memory usage, and a PHP limit of 128 MB wouldn’t be hit.

 

The RAM memory is responsible for storing and making all the data needed to run a process or script available. Basically, the system’s RAM itself is what will allocate memory to these processes or scripts, as well as leave some reserved memory to ensure the proper function of other programs/services in a system.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to switch php version

  How to switch php version in cpanel To change the PHP version used for your account, follow...

Fast CGI for PHP

FastCGI for PHP makes all your PHP applications persistent. There is no pre-request startup and...

How To Increase The PHP Memory Limit

Generating a new php.ini file Using the File ManagerLocate the Files section Click the File...

How to change PHP version for subfolders or subdomains?

  In case you'd like to change the PHP version for a specific subdomain or subfolder, all you...

How can I modify the PHP time zone setting for my website?

Open Hosting → Manage → PHP Configuration page. There, open the PHP options tab and edit the...