Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1266

Email notifications spin until out of memory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ManifoldCF 2.2
    • Fix Version/s: ManifoldCF 2.3
    • Component/s: Email connector
    • Labels:
      None

      Description

      agents process ran out of memory - shutting down
      java.lang.OutOfMemoryError: Java heap space
              at java.util.Arrays.copyOf(Unknown Source)
              at java.util.Arrays.copyOf(Unknown Source)
              at java.util.ArrayList.grow(Unknown Source)
              at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)
              at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
              at java.util.ArrayList.add(Unknown Source)
              at org.apache.manifoldcf.crawler.notifications.email.EmailConnector.sendMail(EmailConnector.java:301)
              at org.apache.manifoldcf.crawler.notifications.email.EmailConnector.notifyOfJobEnd(EmailConnector.java:270)
              at org.apache.manifoldcf.crawler.system.JobResetThread.doEndNotifications(JobResetThread.java:260)
              at org.apache.manifoldcf.crawler.system.JobResetThread.run(JobResetThread.java:123)
      

      "Looked into the code
      There is a never incrementing for loop (copy&paste bug, loop runs over j and increments i) at EmailConnector.java in line 298:"

          for (int j = 0; j < childNode.getChildCount(); i++) {
      

        Attachments

          Activity

            People

            • Assignee:
              kwright@metacarta.com Karl Wright
              Reporter:
              kwright@metacarta.com Karl Wright
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: