nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis John McGibbney (JIRA)" <>
Subject [jira] [Commented] (NUTCH-1746) OutOfMemoryError in Mappers
Date Fri, 04 Apr 2014 19:36:16 GMT


Lewis John McGibbney commented on NUTCH-1746:

bq. Does it matter when running in local mode?

No most likely not. I didn't realise you were running in local until I looked into environment
so thanks for that. :) 
I think your suggestion is a valid one however I think we also need to analyse the memory
sucking aspect of regex. 4M is a suitably large input to justify looking more closely in to
One question, are you able to post your regex-urlfilter file here so I can reproduce? It's
fine if you can't I can make one.
I wonder also if you have tried this with Automaton urlfilter?

> OutOfMemoryError in Mappers
> ---------------------------
>                 Key: NUTCH-1746
>                 URL:
>             Project: Nutch
>          Issue Type: Bug
>          Components: generator, injector
>    Affects Versions: 1.7
>         Environment: Nutch running in local mode with 4M+ domains in domain-urlfilter.txt
>            Reporter: Greg Padiasek
>         Attachments: Generator.patch, Injector.patch
> Initially I found that Generator was throwing OutOfMemoryError exception no matter how
much RAM I allocated to JVM. I fixed the problem by moving URLFilters, URLNormalizers and
ScoringFilters to top-level class as singletons and re-using them in all Generator mapper
> Then I found the same problem in Injector and applied analogical fix.
> Now it seems that this issue may be common in all Nutch Mapper implementations.
> I was wondering if it would it be possible to integrate this kind of change
> in the upstream code base and potentially update all vulnerable Mapper classes.

This message was sent by Atlassian JIRA

View raw message