Page 1 of 1

Cannot change memory_limit - new value in config not used in execution

Posted: Mon Sep 23, 2019 10:42 pm
by chiefbeef
I'm having some issues changing the memory_limit configuration.
When i run a script from the cli, i am getting the message:
Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 32768 bytes) in.....
Now 2097152 is the default of 2mb. From Zend Server (9) admin interface, i have set memory limit to 1024M. From the cli i run:

Code: Select all

$ php -r "echo ini_get('memory_limit');"
...returns 1024M. Yet i still get the above Fatal Error.
I've even tried changing the memory limit to 1073741824 (bytes), and still same message.
From the cli,

Code: Select all

$ php --ini
outputs:

Code: Select all

Configuration File (php.ini) Path: C:\WINDOWS
Loaded Configuration File: C:\Program Files (x86)\Zend\ZendServer\etc\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
...and the memory_limit value for the php.ini in the ZS directory is 1024M
ZS and Apache have been restarted multiple times. Cmd run as user and admin. Just seems like memory_limit is being ignored.

Re: Cannot change memory_limit - new value in config not used in execution

Posted: Wed Oct 02, 2019 8:42 pm
by chiefbeef
Is this the official support forum for Zend products, or is there somewhere else i should be asking?

Re: Cannot change memory_limit - new value in config not used in execution

Posted: Sun Oct 20, 2019 6:31 pm
by 3f62010
Did you try Zend Support?