Page 1 of 1

[ASK] About memory_limit ?

Posted: Tue Feb 02, 2010 9:55 am
by zipcoi
hi .. I want to ask ..

I set in php.ini, memory_limit = 7168M (meaning 7GB) .. 8GB of memory my computer .. but after I run a large script that holds the data in the array so that large memory-consuming .. why array only able to accommodate only up to about 2GB and print out error message like this: "Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes )...".. but there's still about 5GB that have not been used according to the previously located ..

if anyone has ever experienced and knows the solution?

thanks for the solution .. :D

Re: [ASK] About memory_limit ?

Posted: Tue Feb 02, 2010 10:02 am
by Eran
Did you restart your web server after changing the memory limit? as an aside, this doesn't sound like a healthy script to say the least

Re: [ASK] About memory_limit ?

Posted: Tue Feb 02, 2010 12:08 pm
by pickle
Great Caesar's Ghost!!! What script needs 7GB of RAM?!?!?!

Re: [ASK] About memory_limit ?

Posted: Tue Feb 02, 2010 8:02 pm
by zipcoi
pytrin wrote:Did you restart your web server after changing the memory limit? as an aside, this doesn't sound like a healthy script to say the least
yes I've restrart.. it's not about healthy script.. I just want to test, how about performance of PHP to handle large execution of script..
pickle wrote:Great Caesar's Ghost!!! What script needs 7GB of RAM?!?!?!
I just want to test..

Re: [ASK] About memory_limit ?

Posted: Sat Feb 06, 2010 8:32 am
by zipcoi
I've found the answer now..

in windows 32bit.. memory only limit for about 2gb to used by application..