{"action":"opened","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/15018","labels_url":"https://api.github.com/repos/owncloud/core/issues/15018/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/15018/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/15018/events","html_url":"https://github.com/owncloud/core/issues/15018","id":62818515,"number":15018,"title":"When downloading from web interface eats up the memory (8.0.2)","user":{"login":"Babzsak","id":8790318,"avatar_url":"https://avatars.githubusercontent.com/u/8790318?v=3","gravatar_id":"","url":"https://api.github.com/users/Babzsak","html_url":"https://github.com/Babzsak","followers_url":"https://api.github.com/users/Babzsak/followers","following_url":"https://api.github.com/users/Babzsak/following{/other_user}","gists_url":"https://api.github.com/users/Babzsak/gists{/gist_id}","starred_url":"https://api.github.com/users/Babzsak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Babzsak/subscriptions","organizations_url":"https://api.github.com/users/Babzsak/orgs","repos_url":"https://api.github.com/users/Babzsak/repos","events_url":"https://api.github.com/users/Babzsak/events{/privacy}","received_events_url":"https://api.github.com/users/Babzsak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T22:30:12Z","updated_at":"2015-03-18T22:30:12Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Log in to owncloud web interface\r\n2. select a folder with e.g. 1gb data in it and download it\r\n3. watch what happens with the memory usage\r\n\r\n### Expected behaviour\r\nNormally - I would expect 10 - 30 % increase in memory usage at such usage, and after the usage normally the memory usage drops down to normal stage\r\n\r\n### Actual behaviour\r\nThe folder I've tested this bug was about 1.9GB and the memory usage increased from 1.2 GB to 3.2 and after the download has finished the usage doesn't decreases\r\n\r\n### Server configuration\r\n**Operating system**: ubuntu 14.04 server\r\n\r\n**Web server:** Apache/2.4.7 (Ubuntu)\r\n\r\n**Database:** Mysql (MongoDB)\r\n\r\n**PHP version:** PHP 5.5.9-1ubuntu4.7 (cli) (built: Mar 16 2015 20:47:39)\r\nCopyright (c) 1997-2014 The PHP Group\r\nZend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies\r\n    with XCache v3.1.0, Copyright (c) 2005-2013, by mOo\r\n    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies\r\n    with XCache Optimizer v3.1.0, Copyright (c) 2005-2013, by mOo\r\n    with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo\r\n    with XCache Coverager v3.1.0, Copyright (c) 2005-2013, by mOo\r\n\r\n\r\n**ownCloud version:** 8.0.2\r\n\r\n**Updated from an older ownCloud or fresh install:** 8.0.1\r\n\r\n**List of activated apps:** - \r\n\r\n**The content of config/config.php:**\r\n<?php\r\n$CONFIG = array (\r\n  'instanceid' => 'xxxxxxxxxxx',\r\n  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxx',\r\n  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',\r\n  'trusted_domains' =>\r\n  array (\r\n    0 => 'xxxxxxxxxxxxxx',\r\n    1 => 'xxxxxxxxxx',\r\n    2 => 'xxxxxxxxxxx',\r\n    3 => 'xxxxxxxxxxxx',\r\n  ),\r\n  'datadirectory' => '/var/www/owncloud/data',\r\n  'overwrite.cli.url' => 'xxxxxxxxxxxxxxxx',\r\n  'dbtype' => 'mysql',\r\n  'version' => '8.0.2.0',\r\n  'dbname' => 'owncloud',\r\n  'dbhost' => 'localhost',\r\n  'dbtableprefix' => 'oc_',\r\n  'dbuser' => 'owncloud',\r\n  'dbpassword' => 'xxxxxxxxxxxxxxxxxx',\r\n  'installed' => true,\r\n  'logtimezone' => 'Europe/Berlin',\r\n  'logfile' => '/var/log/owncloud.log',\r\n  'loglevel' => '2',\r\n  'forcessl' => false,\r\n  'theme' => '',\r\n  'maintenance' => false,\r\n  'forceSSLforSubdomains' => false,\r\n);\r\nconfig.php (END)\r\n\r\n\r\n**Are you using external storage, if yes which one:** no\r\n\r\n**Are you using encryption:** no\r\n\r\n**Are you using an external user-backend, if yes which one:** no\r\n\r\n#### LDAP configuration (delete this part if not used)\r\n\r\n```\r\nrun: sqlite3 data/owncloud.db\r\nthen execute:  select * from oc_appconfig where appid='user_ldap';\r\n\r\nEventually replace sensitive data as the name/IP-address of your LDAP server or groups.\r\n```\r\n\r\n### Client configuration\r\n**Browser:** Mozilla 36.01\r\n\r\n**Operating system:** Windows 7 64bit\r\n\r\n### Logs\r\n#### Web server error log\r\n\r\nxxx.xxx.xxx.xxx - - [18/Mar/2015:23:17:32 +0100] \"GET /owncloud/index.php/apps/files/ajax/download.php?dir=%2F&files=xxxxxxxxx HTTP/1.1\" 200 27750192 \"https://xxx.xxxxxx.xxx/owncloud/index.php/apps/files?dir=%2F\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0\"\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n.......\r\n{\"reqId\":\"54e878b516701\",\"app\":\"core\",\"message\":\"Adding default user backend wordpress.\",\"level\":0,\"time\":\"2015-02-21T12:23:17+00:00\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"54e878b516701\",\"app\":\"PHP\",\"message\":\"Trying to get property of non-object at \\/var\\/www\\/owncloud\\/apps\\/user_wordpress\\/lib\\/wordpress.class.php#104\",\"level\":3,\"time\":\"2015-02-21T12:23:\r\n17+00:00\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"54e878b516701\",\"app\":\"PHP\",\"message\":\"Trying to get property of non-object at \\/var\\/www\\/owncloud\\/apps\\/user_wordpress\\/lib\\/wordpress.class.php#104\",\"level\":3,\"time\":\"2015-02-21T12:23:\r\n17+00:00\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"54e878b516701\",\"app\":\"PHP\",\"message\":\"Trying to get property of non-object at \\/var\\/www\\/owncloud\\/apps\\/user_wordpress\\/lib\\/wordpress.class.php#104\",\"level\":3,\"time\":\"2015-02-21T12:23:\r\n17+00:00\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"54e878b516701\",\"app\":\"PHP\",\"message\":\"Trying to get property of non-object at \\/var\\/www\\/owncloud\\/apps\\/user_wordpress\\/lib\\/wordpress.class.php#104\",\"level\":3,\"time\":\"2015-02-21T12:23:\r\n......\r\n(but I suppose the error in the owncloud.log has not much to do with this issue)\r\n\r\noutput of free -h \r\n\r\nbefore:\r\n\r\n             total       used       free     shared    buffers     cached\r\nMem:          3,9G       1,1G       2,7G       117M        39M       437M\r\n-/+ buffers/cache:       697M       3,2G\r\nSwap:         4,0G         0B       4,0G\r\n\r\nafter:\r\n\r\n             total       used       free     shared    buffers     cached\r\nMem:          3,9G       3,7G       117M       125M       4,6M       2,9G\r\n-/+ buffers/cache:       834M       3,0G\r\nSwap:         4,0G       572K       4,0G\r\n\r\n"}}