[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PHP and memory_limit



Jonas Mixter put forth on 2/8/2011 6:27 AM:

> Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate
> 40000 bytes) in /Users/jonas/mem_test on line 20

Looks like you have a problem with OSX as well.  Your test failed at allocating
40 KB when 128 MB was available.  So, it's not failing at all on Debian, and
it's failing incorrectly on OSX.

I'd say you should hit a PHP mailing list or IRC channel.  They'll likely know
this stuff better than anyone here.

BTW, if you're going to be processing images, there's not way around consuming
memory, thus you'll just have many fail if you set the memory limit low.  That
doesn't get any work done.

-- 
Stan


Reply to: