[gollem] file not found

Jānis je at ktf.rtu.lv
Wed Mar 20 17:19:03 UTC 2013


Citēts Jan Schneider <jan at horde.org>
Tue, 19 Mar 2013 12:00:17 +0100:

>>>> I met a problem with gollem's ability to ensure file download  
>>>> from server - I use ssh2 backend and browsing files works well,  
>>>> but if i try to download any file (i tried files larger than 20  
>>>> MB) i get error message "file not found" and message in error log:
>>>>
>>>> [Sun Mar 17 22:19:43.044589 2013] [:error] [pid 1724:tid  
>>>> 140138499778304] [client IP:38047] PHP Fatal error
>>>> :  Allowed memory size of 67108864 bytes exhausted (tried to  
>>>> allocate 24422666 bytes) in Unknown on line 0, referer:  
>>>> https://server/gollem/
>>>>
>>>> does it need to preload file into memory for download?
>>>
>>> No, it reads the file in 8KB chunks directly from the ssh stream.
>>
>> so, what then causes the mentioned behaviour? The root of a problem  
>> lies with the size of the file, but if gollem works as you write,  
>> what tries to allocate the memory and for what purpose?
>>
>> Janis
>
> No idea, and the error message doesn't provide a code location  
> either. Which indicates that this might happen  in a shutdown  
> function or an object destructor.

it has some connection with the PHP setting memory_limit - after  
increasing of it from 64M to 96M I was able to download 25 MB file,  
but 55 MB were "zu viel", ending with the similar message as above,  
just increasing the memory limit's numbers.
In the same time, 'top' did not indicate any increase in memory usage  
by apache during unsuccessful request.

Still hoping on ideas (except increasing memory limit, which is not a  
solution in my case),

Janis



More information about the gollem mailing list