[Owncloud] PHP memory allocation

Robin Appelman icewind at owncloud.com
Fri May 11 09:33:18 UTC 2012


On Friday 11 May 2012 10:39:36 Csordás Csaba Ifj. wrote:
> Hi,
> 
> when I'm trying to download a 900MB file from my local installation of
> OwnCloud, I get the following error messages:
> 
> 
> 
> [Mon May 07 13:45:47 2012] [error] [client 172.16.234.5] PHP Fatal
> error:  Allowed memory size of 536870912 bytes exhausted (tried to
> allocate 947070977 bytes) in
> /var/www/owncloud/lib/filestorage/local.php on line 62
> [Mon May 07 13:46:38 2012] [error] [client 172.16.234.5] PHP Fatal
> error:  Allowed memory size of 536870912 bytes exhausted (tried to
> allocate 947070977 bytes) in
> /var/www/owncloud/lib/filestorage/local.php on line 62
> [Mon May 07 13:55:58 2012] [error] [client 172.16.234.5] PHP Fatal
> error:  Allowed memory size of 134217728 bytes exhausted (tried to
> allocate 947070977 bytes) in
> /var/www/owncloud/lib/filestorage/local.php on line 62
> [Mon May 07 13:56:41 2012] [error] [client 172.16.234.5] PHP Fatal
> error:  Out of memory (allocated 3145728) (tried to allocate 947070977
> bytes) in /var/www/owncloud/lib/filestorage/local.php on line 62
> [Mon May 07 13:56:42 2012] [error] [client 172.16.234.5] PHP Fatal
> error:  Out of memory (allocated 3145728) (tried to allocate 947070977
> bytes) in /var/www/owncloud/lib/filestorage/local.php on line 62
> [Mon May 07 13:56:45 2012] [error] [client 172.16.234.5] PHP Fatal
> error:  Out of memory (allocated 3145728) (tried to allocate 947070977
> bytes) in /var/www/owncloud/lib/filestorage/local.php on line 62
> [Mon May 07 13:56:46 2012] [error] [client 172.16.234.5] PHP Fatal
> error:  Out of memory (allocated 3145728) (tried to allocate 947070977
> bytes) in /var/www/owncloud/lib/filestorage/local.php on line 62
> 
> 
> I think it is not the way it supposed to work.
> 
> The environment is the following:
> 
> # cat /proc/version
> Linux version 2.6.32-5-openvz-amd64 (Debian 2.6.32-39)
> (dannf at debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Thu
> Nov 3 04:22:10 UTC 2011
> 
> # cat /proc/meminfo
> MemTotal:         262144 kB
> MemFree:          193588 kB
> SwapTotal:             0 kB
> SwapFree:              0 kB
> 
> # php --version
> PHP 5.3.3-7+squeeze8 with Suhosin-Patch (cli) (built: Feb 10 2012 13:05:56)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>     with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
>     with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
> 
> The appliance is inside an OpenVZ container. Of course, I can give it
> more memory...
> 
> Any suggestions?
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud

Are you using owncloud 3.x? the problem should be fixed in git master/4.0-beta

 - Robin Appelman



More information about the Owncloud mailing list