<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Major problem with smtp and reindexing in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/major-problem-with-smtp-and-reindexing/m-p/276615#M229745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yesterday Alfresco crashed on us. When investigating why, the logfile appeared to be enormous: &amp;gt;10GB. Checking the contents revealed that Alfresco was trying to send an email to a non-existing user (user was removed from the AD):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;10:39:34,686 User:eripo ERROR [action.executer.MailActionExecuter] Failed to send email to [&amp;lt;USERNAME&amp;gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.springframework.mail.MailSendException; nested exception details (1) are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed message 1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;javax.mail.SendFailedException: Invalid Addresses;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; nested exception is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This entry appeared (I guess, but didn't count) thousands of times in the logfile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shouldn't there be a limit on retrying to send an email?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though this is a major problem, the biggest problem is getting rid of it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because of the many retries, at leas that's what I think, the transactional log has gron enormously. Where the last reindex counted 117.000 transactions and was completed in 8 minutes, this one counts 3.600.000. Only the first 10% took 7,5 hours!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I extrapolate the time it should take to index 117K opposed to 3,6M, it should take less than 300 minutes. Why is this taking so locg, and, most importantly, &lt;/SPAN&gt;&lt;STRONG&gt;how can I speed things up&lt;/STRONG&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I look at the use of resources, the CPU hardly has to do any work, only once in a while tomcat peaks, than mysql. Only the SAN is working quite hard and has read and written &amp;gt;1,5TB in these 7,5 hours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco CE 3.4.b, Windows 2008 R2, Java 64bit, 2,5GB heap, MySQL on the same server as tomcat.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jan 2011 08:16:24 GMT</pubDate>
    <dc:creator>ebogaard</dc:creator>
    <dc:date>2011-01-07T08:16:24Z</dc:date>
    <item>
      <title>Major problem with smtp and reindexing</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/major-problem-with-smtp-and-reindexing/m-p/276615#M229745</link>
      <description>Yesterday Alfresco crashed on us. When investigating why, the logfile appeared to be enormous: &amp;gt;10GB. Checking the contents revealed that Alfresco was trying to send an email to a non-existing user (user was removed from the AD):10:39:34,686 User:eripo ERROR [action.executer.MailActionExecuter] F</description>
      <pubDate>Fri, 07 Jan 2011 08:16:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/major-problem-with-smtp-and-reindexing/m-p/276615#M229745</guid>
      <dc:creator>ebogaard</dc:creator>
      <dc:date>2011-01-07T08:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Major problem with smtp and reindexing</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/major-problem-with-smtp-and-reindexing/m-p/276616#M229746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;catch (Throwable e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // don't stop the action but let admins know email is not getting sent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;logger.error("Failed to send email to " + (String JavaDoc)ruleAction.getParameterValue(PARAM_TO), e);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 09:30:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/major-problem-with-smtp-and-reindexing/m-p/276616#M229746</guid>
      <dc:creator>muralie39</dc:creator>
      <dc:date>2011-01-12T09:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Major problem with smtp and reindexing</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/major-problem-with-smtp-and-reindexing/m-p/276617#M229747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update: Several days ago I posted a bug in Jira (&lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-6550" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALF-6550&lt;/A&gt;&lt;SPAN&gt;) and Alfresco is going to fix the SMTP bug (where the bug is: "no limit on number of retries") in 3.4d and 3.4.1. So that shouldn't be a problem anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But because of this bug, I'm having a bigger problem. The database has grown from ~200MB to almost 500MB. The number of transactions has gone up from about 150K to 3,6M, increasing the time to reindex from ~15 minutes to 38 hours!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody knows a way to safely (!) clean the databse of unnecessary transactions? I suspect the enormous number of retries on sending the mail (which was triggered by a rule in a Space) has impacted the DB, so if anyone knows where to find these transactions and how to clean it up, it would be greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jan 2011 15:37:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/major-problem-with-smtp-and-reindexing/m-p/276617#M229747</guid>
      <dc:creator>ebogaard</dc:creator>
      <dc:date>2011-01-15T15:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Major problem with smtp and reindexing</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/major-problem-with-smtp-and-reindexing/m-p/276618#M229748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Last week, the automatic cleaning jobs reduced te db size to ~360MB (1,9M transactions), which is a good thing. Hoped the cleaning jobs this week would reduce the size and useless transactions even more, but no cigar. Just the ususal few MB's. Anyone a suggestion?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 11:01:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/major-problem-with-smtp-and-reindexing/m-p/276618#M229748</guid>
      <dc:creator>ebogaard</dc:creator>
      <dc:date>2011-01-26T11:01:26Z</dc:date>
    </item>
  </channel>
</rss>

