Comment 10 for bug 1677578

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

If I try to get "too much" via the var alloc I hit:
"Allowed memory size of 134217728 bytes exhausted (tried to allocate 528384 bytes)"

That matches the default conf of:
memory_limit = 128M

If I do so via the Imagick on Heap I get an exception at some point into the loop:
   for ($i = 0; $i<100; $i++){
     $image[$i] = new \Imagick();
     $image[$i]->newImage(8192, 8192, new ImagickPixel('red'), 'jpg');
   }
Throws: "ImagickException: Unable to create new image"
That seems to be out of mem as well, as I can avoid it with lower counts or lower image sizes.

So not leaking but also not getting over its max amount?

Ok, I need some random images to get closer to your original case now ...

Along the way @Vasya - what is your php memory-limit set to for this - still the default 128M?