[ https://issues.apache.org/jira/browse/NUTCH-702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757637#action_12757637 ]
zhangxihua commented on NUTCH-702: ---------------------------------- I used NUTCH1.1 Integrated in Nutch-trunk #929,but still outmemory. java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.util.ArrayList.ensureCapacity(Unknown Source) at java.util.ArrayList.add(Unknown Source) at org.apache.nutch.crawl.CrawlDbReducer.reduce(CrawlDbReducer.java:97) at org.apache.nutch.crawl.CrawlDbReducer.reduce(CrawlDbReducer.java:35) at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:436) at org.apache.hadoop.mapred.Child.main(Child.java:158) > Lazy Instanciation of Metadata in CrawlDatum > -------------------------------------------- > > Key: NUTCH-702 > URL: https://issues.apache.org/jira/browse/NUTCH-702 > Project: Nutch > Issue Type: Improvement > Affects Versions: 1.0.0 > Reporter: Julien Nioche > Fix For: 1.1 > > Attachments: NUTCH-702.patch, NUTCH-702.patch.v2, NUTCH-702v3.patch > > > CrawlDatum systematically instanciates its metadata, which is quite wasteful > especially in the case of CrawlDBReducer when it generates a new CrawlDatum > for each incoming link before storing it in a List. > Initial testing on the lazy instanciation shows an improvement in both speed > and memory consumption. I will generate a patch for it ASAP -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.