<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Long running SQL queries blocking mailboxes - Zimbra Build by Zextras - no Zextras support guaranteed				            </title>
            <link>https://community.zextras.com/forum/zimbra-ose-9-by-zextras/long-running-sql-queries-blocking-mailboxes/</link>
            <description>Zextras Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 18 May 2026 22:26:09 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Long running SQL queries blocking mailboxes</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-9-by-zextras/long-running-sql-queries-blocking-mailboxes/#post-9425</link>
                        <pubDate>Thu, 07 Nov 2024 13:22:29 +0000</pubDate>
                        <description><![CDATA[Additionally, it seems to be this problem posted in the Zimbra Forums (or at least something similar):]]></description>
                        <content:encoded><![CDATA[<p>Additionally, it seems to be this problem posted in the Zimbra Forums (or at least something similar): https://forums.zimbra.org/viewtopic.php?t=72998</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-9-by-zextras/">Zimbra Build by Zextras - no Zextras support guaranteed</category>                        <dc:creator>btbs</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-9-by-zextras/long-running-sql-queries-blocking-mailboxes/#post-9425</guid>
                    </item>
				                    <item>
                        <title>Long running SQL queries blocking mailboxes</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-9-by-zextras/long-running-sql-queries-blocking-mailboxes/#post-9407</link>
                        <pubDate>Wed, 06 Nov 2024 11:42:36 +0000</pubDate>
                        <description><![CDATA[Hi,we have a problem with (mostly) one mailbox, that the user cannot retrieve mails/attachments and is unable to send mails or login via webinterface.It took some time investigating, but app...]]></description>
                        <content:encoded><![CDATA[<p>Hi,<br /><br />we have a problem with (mostly) one mailbox, that the user cannot retrieve mails/attachments and is unable to send mails or login via webinterface.<br />It took some time investigating, but apparently it comes down to this:<br /><br />Every time when this happens, we see the mysql-process is using 100% of one CPU core and we see something like this query in the mysql processlist:</p>
<pre contenteditable="false">#&gt; SHOW FULL PROCESSLIST;
Id      User    Host    db      Command Time    State   Info    Progress
6504    zimbra  localhost:44998 zimbra  Sleep   0               NULL    0.000
7479    zimbra  localhost:46622 zimbra  Sleep   2               NULL    0.000
28951   zimbra  localhost:41804 zimbra  Sleep   16              NULL    0.000
38392   zimbra  localhost:48888 zimbra  Query   1127    Sending data    SELECT COUNT(*) FROM mboxgroup20.mail_item AS mi WHERE mi.mailbox_id = 20 AND ((((mi.type = 0x05 OR mi.type = 0x06 OR mi.type = 0x10)) AND ((mi.id = 1013345) OR (mi.id = 1013349) OR (mi.id = 1013358) 
OR (mi.id = 1013375) OR (mi.id = 1013402) OR (mi.id = 1013412) OR (mi.id = 1013422) OR (mi.id = 1013438) OR (mi.id = 1013441) OR (mi.id = 1013444) OR (mi.id = 1013448) OR (mi.id = 1013455) OR (mi.id = 1013464) OR (mi.id = 1013466) OR (mi.id = 1013496) OR (mi.id = 1013512) OR (mi.id = 1013525) OR (mi.id = 1013531) OR (mi.id = 1013537) OR (mi.id = 1013555) OR (mi.id = 1013563) OR (mi.id = 1013565) OR (mi.id = 1013580) OR (mi.id = 1013585) OR (mi.id = 1013615) OR (mi.id = 1013624) OR (mi.id = 1013632) OR (mi.id = 1013638) OR (mi.id = 1013647) OR (mi.id = 1013651) OR (mi.id = 1013664) OR (mi.id = 1013677) OR (mi.id = 1013685) OR (mi.id = 1013687) OR (mi.id = 1013690) OR (mi.id = 1013725) OR (mi.id = 1013740) OR (mi.id = 1013750) OR (mi.id = 1013753) OR (mi.id = 1013760) OR (mi.id = 1013769) OR (mi.id = 1013799) OR (mi.id = 1013805) OR (mi.id = 1013812) OR (mi.id = 10138 </pre>
<p><br />Does anyone know, what this process does and why it is stuck in "sending data"? The query is huge, I cut it off in the excerpt above.<br /><br />When I kill this process, everything seems to work fine after that.<br />The mailbox.log logfile then shows this error "imap - SEARCH failed":</p>
<pre contenteditable="false">2024-11-06 11:36:45,418 WARN    imap - SEARCH failed
</pre>
<p><br />This is rather frustating, I cannnot run around and kill mysql processes in order to work. The user is using an iPhone, but we already ditched that and set the mailaccount up on a new iPhone, it still shows up with this problem. So we can rule that out, it must have something to do with the server.<br /><br />We are using Zimbra Release 9.0.0_ZEXTRAS_20240927.<br />The issue started over month ago. All other mailboxes seem to run fine.<br /><br />Hope you can help me with this.</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-9-by-zextras/">Zimbra Build by Zextras - no Zextras support guaranteed</category>                        <dc:creator>btbs</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-9-by-zextras/long-running-sql-queries-blocking-mailboxes/#post-9407</guid>
                    </item>
							        </channel>
        </rss>
		