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

General discussion forum for the Zend Server
Post Reply
chiefbeef
Posts: 63
Joined: Wed Jul 29, 2009 9:04 pm

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

Post by chiefbeef » Mon Sep 23, 2019 10:42 pm

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.

chiefbeef
Posts: 63
Joined: Wed Jul 29, 2009 9:04 pm

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

Post by chiefbeef » Wed Oct 02, 2019 8:42 pm

Is this the official support forum for Zend products, or is there somewhere else i should be asking?

3f62010
Posts: 37
Joined: Mon Dec 20, 2010 5:15 pm
Contact:

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

Post by 3f62010 » Sun Oct 20, 2019 6:31 pm

Did you try Zend Support?
Conversions and Calculations
https://www.aqua-calc.com

Post Reply