[1.6.2] Memory leak in sync-client
Expected behaviour
Memory use from sync client don't grow
Actual behaviour
Memory use from sync client grows
Steps to reproduce
- Start the sync client
- open monitor window (top in linux, task manager in windows or Activity Monitor in Mac)
- open Settings in sync-client
- Repeat many times pressing "Pause" and "Resume" (Slow, Waiting not to interrupt the syncing)
- Size increases in each syncing.
Same scenario can be seen when the computer stays on for many days (after many syncing).
Client configuration
1.6.1, 1.6.2
Operating system: Mac, Windows and Linux (only tested in Ubuntu)
@dragotin @danimo
Hi,
I have the same problem
Same problem here.
This shows owncloud after 5 hours of work to sync 5 folders.

@danimo @dragotin 1.6.2rc2 still has it: after a few hours grows from 50,000Kb to 80,000Kb
The last responses:
07-25 08:31:45:723 _csync_detect_update: file: (PATH)/pdmdh035.jpg, instruction: INSTRUCTION_NONE <<=
07-25 08:31:45:723 csync_ftw: Uniq ID from Database: (PATH)/pdmdh037.jpg -> 5362b54d39f1e
07-25 08:31:45:723 csync_walker: file: C:/Users/carlos/Personal Carlos/(PATH)/pdmdh037.jpg [file_id=]
07-25 08:31:45:723 _csync_detect_update: Database entry found, compare: 1398977746 <-> 1398977746, etag: 5362b54d39f1e <-> 5362b54d39f1e, inode: 16461 <-> 16461
07-25 08:31:45:723 _csync_detect_update: file: (PATH)/pdmdh037.jpg, instruction: INSTRUCTION_NONE <<=
07-25 08:31:45:723 csync_ftw: Uniq ID from Database: (PATH)/pdmdh038.jpg -> 5362b54d33f70
07-25 08:31:45:723 csync_walker: file: (LOCAL PATH) Carlos/(PATH)/pdmdh038.jpg [file_id=]
07-25 08:31:45:723 _csync_detect_update: Database entry found, compare: 1398977746 <-> 1398977746, etag: 5362b54d33f70 <-> 5362b54d33f70, inode: 16462 <-> 16462
07-25 08:31:45:723 _csync_detect_update: file: (PATH)/pdmdh038.jpg, instruction: INSTRUCTION_NONE <<=
07-25 08:31:45:723 csync_ftw: Uniq ID from Database: (PATH)/pdmdh043.jpg -> 5362b54d3ace0
07-25 08:31:45:723 csync_walker: file: (LOCAL PATH) (USER)/(PATH)/pdmdh043.jpg [file_id=]
07-25 08:31:45:723 _csync_detect_update: Database entry found, compare: 1398977746 <-> 1398977746, etag: 5362b54d3ace0 <-> 5362b54d3ace0, inode: 16463 <-> 16463
07-25 08:31:45:723 _csync_detect_update: file: (PATH)/pdmdh043.jpg, instruction: INSTRUCTION_NONE <<=
07-25 08:31:45:723 csync_ftw: Uniq ID from Database: (PATH)/pdmdh044.jpg -> 5362b54d36685
07-25 08:31:45:723 csync_walker: file: (LOCAL PATH) (USER)/(PATH)/pdmdh044.jpg [file_id=]
``
@ogoffart @dragotin Tested in 1.6.2 (Build 3463) and using Process Explorer to see the increase, after 2 hours:

(Windows 7 32 bits, 4 GB memory, Intel Core Duo CPU E7600 3.06 GHz)
in other machine:
after a few days memory usage has gone up to 825mb it has been gradual but it is still increasing.
@dragotin @danimo
Same here: 2 PC both running 8.1 Pro: 936 MB vs 726 MB of system memory used.
Another 2:
It happens on both my linux and windows machines
ubuntu 14.04 16GB ram windows 7 (latest patches) 4GB RAM
both are 64bit
It usually takes about 1 week to grow and its ~1.2gb before i noticed and restart owncloud
also happens on OSX
@KUTlime @mblum What's your setup? How many sync folders set up inside the client? How many files/folders synced? Do you use SSL/https?
@guruz One folder configured (containing 73 subfolders and around 1500 files) and using https.
OS: 64-bit linux. Memory usage ~1GB (running since 10 August).
Also seen on redhat6. The memory consumption increases with time to the point that one sometimes need to kill the process to avoid swapping. This needs ~10 days or so on my desktop.
kuba
On Aug 22, 2014, at 8:26 PM, Sander Lepik [email protected] wrote:
@guruz One folder configured (containing 73 subfolders and around 1500 files) and using https.
OS: 64-bit linux. Memory usage ~1GB (running since 10 August).
— Reply to this email directly or view it on GitHub.
https - yes I sync two folders:
- 40 subfolders, 167 files
- 2952 subfolders, 22 312 files
After 7 days and 2 hours of running owncloud.exe has 1 109 MB.
Possibly fixed with commit 9b88c7d3c1d11381575febde3d99bfc0909f9483
Please test with this nightly build: https://download.owncloud.com/desktop/daily/ownCloud-1.7.0.3674-nightly20140826-setup.exe and https://download.owncloud.com/desktop/daily/ownCloud-1.7.0.809-nightly20140826.dmg
Hello,
here it seems to work. The process owncloud.exe isn't growing. It has now run for 6 hours and it has the normal size.
Thanks
4,5 hour of running and 79 MB of RAM. It seems to be fine.
Thank you!
If someone were able to reproduce it, please, reopen it. Thx