IIS 7 and Above
FastCGI / CGI - php-cgi.exe - Memory usage
Re: FastCGI / CGI - php-cgi.exe - Memory usage
Jan 01, 2019 03:26 AM|Brando Zhang|LINK
As lextm says, the php-cgi.exe memory usage is according to your php application size.
If you want to reduce the memory usage for the php-cgi.exe, I suggest you could try below ways:
1.php.ini - located in the root folder. Edit in TextPad and change the value for momory_limit. if 4M is not enough up to 8M, etc.
2.In admin.php (if your error is in here) add a memory limit line after ini_set 'memory_limit', '12M' if 12MB of memory is what you're looking to add
3.You can add a line to .htaccess: php_value memory_limit 32M
4.wp-config.php can control memory. You put a line in that looks like this define('WP_MEMORY_LIMIT', '32M');