Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutOfMemoryError in DefaultFieldExtractor #79

Open
chorniyn opened this issue Jun 24, 2016 · 0 comments
Open

OutOfMemoryError in DefaultFieldExtractor #79

chorniyn opened this issue Jun 24, 2016 · 0 comments

Comments

@chorniyn
Copy link
Collaborator

OOM happened in DefaultFieldExtractor.getFields() method
`java.lang.OutOfMemoryError: Java heap space

at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:622)
at java.lang.StringBuilder.append(StringBuilder.java:202)
at java.lang.StringBuilder.append(StringBuilder.java:76)
at net.htmlparser.jericho.Renderer$HR_ElementHandler.processBlockContent(Renderer.java:1193)
at net.htmlparser.jericho.Renderer$AbstractBlockElementHandler.process(Renderer.java:1111)
at net.htmlparser.jericho.Renderer$Processor.appendSegmentProcessingChildElements(Renderer.java:852)
at net.htmlparser.jericho.Renderer$Processor.appendTo(Renderer.java:823)
at net.htmlparser.jericho.Renderer.appendTo(Renderer.java:140)
at net.htmlparser.jericho.CharStreamSourceUtil.toString(CharStreamSourceUtil.java:63)
at net.htmlparser.jericho.Renderer.toString(Renderer.java:150)
at com.ontometrics.scraper.extraction.DefaultFieldExtractor.extractFieldsFromUL(DefaultFieldExtractor.java:312)
at com.ontometrics.scraper.extraction.DefaultFieldExtractor.extractFieldsFromULs(DefaultFieldExtractor.java:204)
at com.ontometrics.scraper.extraction.DefaultFieldExtractor.getFields(DefaultFieldExtractor.java:65)`

The page content on which failure happens is referred to in test DefaultFieldExtractorTest.canExtractFieldsWOOutOfMemoryError().

chorniyn added a commit that referenced this issue Jun 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant