lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Veit (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-6079) PatternReplaceCharFilter crashes JVM with OutOfMemoryError
Date Thu, 27 Nov 2014 13:10:12 GMT
Alexander Veit created LUCENE-6079:
--------------------------------------

             Summary: PatternReplaceCharFilter crashes JVM with OutOfMemoryError
                 Key: LUCENE-6079
                 URL: https://issues.apache.org/jira/browse/LUCENE-6079
             Project: Lucene - Core
          Issue Type: Bug
          Components: modules/analysis
    Affects Versions: 4.10.2
         Environment: Microsoft Windows, x86_64, 32 GB main memory
            Reporter: Alexander Veit
            Priority: Critical


PatternReplaceCharFilter fills memory with input data until an OutOfMemoryError is thrown.

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:569)
	at java.lang.StringBuilder.append(StringBuilder.java:190)
	at org.apache.lucene.analysis.pattern.PatternReplaceCharFilter.fill(PatternReplaceCharFilter.java:84)
	at org.apache.lucene.analysis.pattern.PatternReplaceCharFilter.read(PatternReplaceCharFilter.java:74)
    ...

PatternReplaceCharFilter should read data chunk-wise and pass the transformed output chunk-wise
to the caller.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message