Insane cpu usage by zmmailboxd

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
matteo.fracassetti
Posts: 16
Joined: Thu Feb 08, 2018 3:56 pm

Re: Insane cpu usage by zmmailboxd

Post by matteo.fracassetti »

A collegue of mine made some deep investigations and he may have found the issue...

We use z-push to allow our users to access to their mailbox through ActiveSync. Into the logs we noticed that one e-mail was causing a mailloop while syncing: It happens quite often but usually z-push is able to address the issue by itself. But while z-push was trying to solve the loop, in zmmailboxd.out appears some messages like this:

2018-03-22 16:19:56.521:INFO:oejm.ThreadMonitor:Thread-52: Thread 'qtp1286783232-336:http://our.server.url/service/soap/'[RUNNABLE,id:336,cpu:99.79%] SPINNING

With zmthrdump he discovered that thread was in state "RUNNABLE" and was locked by something concerned to "java.util.regex".

With some more debugging he was able to identify the e-mail which was causing the issue and he tried to open it through the zimbra web interface... And it crashes.
So we move that email out from the mailbox and restarted mailboxd, after that we don't notice CPU spikes anymore.

The email was a normal commercial email sent from Tustena_CRM throught Microsoft cloud infrastructure, with tons of headers and bloat code in it but nothing of so unusual.

It seems related to this issue, again: https://bugzilla.zimbra.com/show_bug.cgi?id=101227
User avatar
msquadrat
Advanced member
Advanced member
Posts: 183
Joined: Mon Oct 14, 2013 10:09 am

Re: Insane cpu usage by zmmailboxd

Post by msquadrat »

Are you able to share the bad mail with us so we can try to reproduce the issue? Please contact me via PM if you can share it in private only and I'll see if I can create a test case from the mail.
matteo.fracassetti
Posts: 16
Joined: Thu Feb 08, 2018 3:56 pm

Re: Insane cpu usage by zmmailboxd

Post by matteo.fracassetti »

Sure.
I'll send it to you in some minutes.
User avatar
L. Mark Stone
Ambassador
Ambassador
Posts: 2799
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 10.0.7 Network Edition
Contact:

Re: Insane cpu usage by zmmailboxd

Post by L. Mark Stone »

I'd be happy to test as well.

If the test proves reproducible, then we can open a new support case as a first step to getting developer attention on this.

Thanks!
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
unaiSolaguren
Posts: 3
Joined: Wed Mar 21, 2018 10:09 am

Re: Insane cpu usage by zmmailboxd

Post by unaiSolaguren »

Hi matteo.

¿Did you test this paremeter in z-push?

config.php: define('SYNC_FILTERTIME_MAX', SYNC_FILTERTYPE_2WEEKS);

Accounts with high number of folders and big mailboxes generete high cpu use.
matteo.fracassetti
Posts: 16
Joined: Thu Feb 08, 2018 3:56 pm

Re: Insane cpu usage by zmmailboxd

Post by matteo.fracassetti »

Hi, thank you for your suggestion.

The issue is definitively due to that email I talk about some posts ago: I sent it to users msquadrat for testing some times ago (to L. Mark Stone I sent it only today due to a misunderstading)... I would be courious to know if they has been able to reproduce the issue.
7224jobe
Outstanding Member
Outstanding Member
Posts: 283
Joined: Sat Sep 13, 2014 1:55 am
ZCS/ZD Version: 8.8.15_FOSS Patch38

Re: Insane cpu usage by zmmailboxd

Post by 7224jobe »

Maybe Patch 2 for Zimbra 8.7.11 that was just released will help with similar issues, since it fixes this bug: https://bugzilla.zimbra.com/show_bug.cgi?id=108928

Here is the patch announcement: https://wiki.zimbra.com/wiki/Zimbra_Rel ... i=62062265
Post Reply