#722097 xfce4-mailwatch-plugin: uses all available CPU while checking on slow links

Package:
xfce4-mailwatch-plugin
Source:
xfce4-mailwatch-plugin
Description:
mail watcher plugin for the Xfce4 panel
Submitter:
Sebastian
Date:
2013-11-17 15:15:04 UTC
Severity:
normal
#722097#5
Date:
2013-09-07 22:23:43 UTC
From:
To:
Dear Maintainer,

I am using the xfce4-mailwatch-plugin to check on POP3 and IMAP mailboxes
regularly (using a 10 minute interval) and I noticed that the plugin uses
up all available CPU time while checking mails.

In cases where the link is slow or the server connection times out, this
becomes a major annoyance on battery-powered devices, because this results
in a lot of CPU time burned - on fast links, it is barely noticeable.

"top" shows CPU usages of ca. 188% on my dual-core CPU, but I also noticed
that sometimes only one core is used up (ca. 99%) - I assume this happens
when only one of the servers times out and the other answers fast.

Please have a look into this and

Thank you in advance.

#722097#10
Date:
2013-11-04 12:40:24 UTC
From:
To:
I only have configured a local mailbox (mbox).

It appears that if the mailwatch-plugin fails to fetch the local system
mail (forwarded from root -> my user account) or has another problem, it
generates another mail and thus ends up in a dead loop. This happens
quite seldom, maybe once par 2 weeks or so. Today I saw new mail
notification (yellow letter) with a tiny warning sign (red triangle with
exclamation mark in) when it happened.

In that case I also get full load on 1 or 2 (of my 4) CPU-cores. The
desktop finaly becomes unusable/frozen.
I now removed the xfce4-mailwatch-plugin an will report the result.

#722097#15
Date:
2013-11-17 15:12:13 UTC
From:
To:
I now have removed the mailwatch-plugin and since 2 weeks all is fine -
no glitches anymore.
Tests were done with version 1.1.0-5+b1 in Wheezy-amd64

I also reviewed my logs, recordings and local mail:
There appears to be a correlation between "arriving of local mail" and
the "lock-up of the desktop". I have configured a cron-job which
"depending on result" sends a local mail to root which is aliased to my
user account. The last 2 desktop lock-ups's exactly happened when such a
mail was generated (and of course triggered the plugin).

I don't know whether this information is also helpfull:
when the lock-up's happened also a VM in VirtualBox was running and the
NIC was in promiscuous mode for "bridged networking".

Now all is fine and I have uninstalled the xfce4-mailwatch-plugin. I
would appreciate if it is removed from the dependencies of the
"xfce4-goodies", so it is not automatically installed.

/Ingo