I just did: CONNECTORS-1266. Karl
On Sun, Dec 13, 2015 at 6:05 PM, Ahmet Arslan <[email protected]> wrote: > Hi Markus, > > Can you please create a Jira issue? > > > https://issues.apache.org/jira/browse/CONNECTORS/?selectedTab=com.atlassian.jira.jira-projects-plugin:issues-panel > > Anyone can create an account, if you don't have already. > > Thanks for reporting this! > > Thanks, > Ahmet > > > > > > On Monday, December 14, 2015 12:55 AM, Markus Schuch <[email protected]> > wrote: > > > > Hi, > > i just tried the relatively new email notification feature with version > 2.2 and keep running into an OOME when notifications are about to be sent: > > 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++) { > > Regards, > Markus >
