client icon indicating copy to clipboard operation
client copied to clipboard

[1.6.2] Memory leak in sync-client

Open cdamken opened this issue 12 years ago • 17 comments

Expected behaviour

Memory use from sync client don't grow

Actual behaviour

Memory use from sync client grows

Steps to reproduce

  1. Start the sync client
  2. open monitor window (top in linux, task manager in windows or Activity Monitor in Mac)
  3. open Settings in sync-client
  4. Repeat many times pressing "Pause" and "Resume" (Slow, Waiting not to interrupt the syncing)
  5. 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

cdamken avatar Jul 02 '14 17:07 cdamken

Hi,

I have the same problem

sensemila avatar Jul 11 '14 13:07 sensemila

Same problem here.

This shows owncloud after 5 hours of work to sync 5 folders.

ocmemory

ghost avatar Jul 15 '14 11:07 ghost

@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=]
``

cdamken avatar Jul 25 '14 16:07 cdamken

@ogoffart @dragotin Tested in 1.6.2 (Build 3463) and using Process Explorer to see the increase, after 2 hours:

moz-screenshot-28

(Windows 7 32 bits, 4 GB memory, Intel Core Duo CPU E7600 3.06 GHz)

cdamken avatar Jul 30 '14 16:07 cdamken

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

cdamken avatar Aug 05 '14 13:08 cdamken

Same here: 2 PC both running 8.1 Pro: 936 MB vs 726 MB of system memory used.

KUTlime avatar Aug 06 '14 12:08 KUTlime

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

cdamken avatar Aug 08 '14 13:08 cdamken

also happens on OSX

mblum avatar Aug 22 '14 09:08 mblum

@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 avatar Aug 22 '14 18:08 guruz

@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).

sander85 avatar Aug 22 '14 18:08 sander85

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.

moscicki avatar Aug 23 '14 07:08 moscicki

https - yes I sync two folders:

  1. 40 subfolders, 167 files
  2. 2952 subfolders, 22 312 files

After 7 days and 2 hours of running owncloud.exe has 1 109 MB.

KUTlime avatar Aug 26 '14 14:08 KUTlime

Possibly fixed with commit 9b88c7d3c1d11381575febde3d99bfc0909f9483

ogoffart avatar Aug 26 '14 16:08 ogoffart

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

dragotin avatar Aug 26 '14 18:08 dragotin

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

ghost avatar Aug 27 '14 06:08 ghost

4,5 hour of running and 79 MB of RAM. It seems to be fine.

Thank you!

KUTlime avatar Aug 27 '14 11:08 KUTlime

If someone were able to reproduce it, please, reopen it. Thx

luciamaestro avatar Aug 27 '14 15:08 luciamaestro