php memory_limit unlimited
//Unlimited momory limit
ini_set('memory_limit', '-1');
//Fixed memory limit
ini_set('memory_limit','2048M');
php memory_limit unlimited
//Unlimited momory limit
ini_set('memory_limit', '-1');
//Fixed memory limit
ini_set('memory_limit','2048M');
php memory usage view
PHP has it's own memory testing functions, I don't know if that's any use to you, but if you just want to log it you could use: http://php.net/manual/en/function.memory-get-peak-usage.php
echo "Using ", memory_get_peak_usage(1), " bytes of ram.";
Increase the PHP memory limit
/*
To increase the PHP memory limit setting, edit your PHP.ini file found under /usr/local/etc/php/7.4/.
Increase the default value (example: Maximum amount of memory a script may consume = 128MB) of the PHP memory limit line in php.ini.
*/
memory_limit = 256M
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us