cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Ross uses Dropbox to answer some new house questions here!

Dropbox installs & integrations

Connect your tools and content together with help from the Dropbox Community. Join a discussion or post a question of your own to get started.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

3.0.3 memory leak on Linux

Re: 3.0.3 memory leak on Linux

Zsolt Peter B.
New member | Level 1

Same here. You can easily test this behavior on a DigitalOcean 2GB VPS server. My account got only two bigger (~10g files), and a couple of smaller ones (~500mb). Ram usage from 150mb goes up to 2gb steadily.

Addig a 4gb swap mitigates the issue - the machine will just swap heavily, but the process won't get killed by oom.

Here are the oom kill lines from dmesg:

[71879.800778] Out of memory: Kill process 4359 (dropbox) score 938 or sacrifice child
[71879.800914] Killed process 4359 (dropbox) total-vm:3338164kB, anon-rss:1918816kB, file-rss:4kB

Now I am at ~50% of my sync with swap:

$ free -m
> total used free shared buffers cached
> Mem: 2001 1932 69 0 0 10
> -/+ buffers/cache: 1920 81
>Swap: 4095 3968 127

 

Re: 3.0.3 memory leak on Linux

Jeroen N.
New member | Level 1

Similar issues here on Debian (Jessie). In the end Dropbox was using up 5GB of memory. It looks like it may be related to a Dolphin (file manager) Dropbox service that I added to keep track of the file synchronization. 

Re: 3.0.3 memory leak on Linux

Dimitris G.
New member | Level 1

@Jeroen N. Having the same issue with xfce/thunar. I don't think it's related to Dolphin.

Re: 3.0.3 memory leak on Linux

Cyber M.
New member | Level 2

Same problem with version 6.4.14 on a Debian Openbox system. "Solved" killing and re-launching the app.

Re: 3.0.3 memory leak on Linux

Isaac Isao S.
Helpful | Level 6

I've been experiencing this issue on my Ubuntu Xenial. I'm not sure if I've found a permanent fix, but so far my Dropbox is working fine by doing:

 

  • Use the latest software version. I once noticed the version shown on Dropbox' window was old[1] although the version of the DEB binary seemed up-to-date (2015.10.28 at that time). Don't know how I updated it, but maybe stashing ~/.dropbox-dist, run Dropbox (this creates new ~/.dropbox-dist folder) and stashing it back might have helped.
  • Reboot OS whenever this issue starts occuring.

HTH.

 

If you're interested I keep track of my personal issue regarding this at [2].

[1] https://github.com/130s/hut_10sqft/issues/109?_pjax=%23js-repo-pjax-container#issuecomment-282851526
[2] https://github.com/130s/hut_10sqft/issues/109

Re: 3.0.3 memory leak on Linux

Pavel K.9
New member | Level 2

Here is my way of fixing the problem.

I am using Docker (https://www.docker.com/) to restrict memory usage of Dropbox

Here is a shell script.

https://gist.github.com/i026e/b135eadd6149956d1e979f9c83beb84c

Save it and change DROPBOX_FOLDER variable to absolute path of your sync folder,

after that launch "./dropbox-docker install" from shell. Provided Docker is installed, all necessary files would be downloaded and container will be started.

The original image (https://hub.docker.com/r/janeczku/dropbox/ ) is using headless client, so the script will also install several extra packages into a container(not a good way to do)

After that, Docker will take the job to autostart Dropbox and to restart it whenever there is any problem.

 

However there are several disadvantages.

Import from camera would not be possible anymore.

Also opening folder from Dropbox menu seems not to work, and there are no Dropbox icons in file manager.

 

 

Re: 3.0.3 memory leak on Linux

alamaral
Helpful | Level 6

Actually memory leaks are not all that hard to find and fix.  There are several different programs, such

as valgrind which comes for free on just about all Linux distros, that can be used to find memory leaks

quite easily.

Re: 3.0.3 memory leak on Linux

joes
Explorer | Level 3

The solution here worked for me https://www.dropboxforum.com/t5/Installation-and-desktop-app/Solution-to-Dropbox-on-Linux-using-all-...

 

[This thread is now closed by moderators due to inactivity. If you're experiencing a similar behavior, feel free to start a new discussion in the Ask a Question section here.]

Who's talking

Top contributors to this post

  • User avatar
    joes Explorer | Level 3
  • User avatar
    Cyber M. New member | Level 2
  • User avatar
    Dimitris G. New member | Level 1
  • User avatar
    Jeroen N. New member | Level 1
  • User avatar
    Zsolt Peter B. New member | Level 1
What do Dropbox user levels mean?
Need more support?