Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OfflineImap leaks (or retains) a lot of memory #385

Open
emilio opened this issue Oct 19, 2016 · 2 comments
Open

OfflineImap leaks (or retains) a lot of memory #385

emilio opened this issue Oct 19, 2016 · 2 comments

Comments

@emilio
Copy link

emilio commented Oct 19, 2016

General informations

  • system/distribution (with version): Arch Linux
  • offlineimap version (offlineimap -V): offlineimap v7.0.8, imaplib2 v2.55 (bundled), Python v2.7.12
  • Python version: 2.7.12
  • CLI options: None, run in the background with systemd.

Configuration file offlineimaprc

A set of 5 accounts, each of which has the following section:

autorefresh = 0.5
quick = 10

Steps to reproduce the error

  • Leave offlineimap running in the background (for 3:15 minutes in my case this time), syncing accounts periodically.
  • See offlineimap as the top memory consumer, with 10 gigabytes of memory.
@nicolas33
Copy link
Member

Could you share your systemd unit file, please?

I'd avoid using autorefresh and use the systemd timer feature. See contrib/systemd.

@emilio
Copy link
Author

emilio commented Oct 19, 2016

My systemd unit is basically this one. For the record:

Description=Start offlineimap as a daemon
Requires=network-online.target
After=network.target

[Service]
User=%i
ExecStart=/usr/bin/offlineimap
KillSignal=SIGUSR2
Restart=always

[Install]
WantedBy=multi-user.target

Thanks for pointing to timers though, seems like a better solution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants