offlineimap icon indicating copy to clipboard operation
offlineimap copied to clipboard

OfflineImap leaks (or retains) a lot of memory

Open emilio opened this issue 9 years ago • 2 comments

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.

emilio avatar Oct 19 '16 18:10 emilio

Could you share your systemd unit file, please?

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

nicolas33 avatar Oct 19 '16 20:10 nicolas33

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 :)

emilio avatar Oct 19 '16 20:10 emilio