Title:
Java Heap Space OutOfMemoryError using CFINDEX after installation of Update 12
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Eric Belair / Eric Belair ()
Created: 05/09/2017
Components: Performance
Versions: 11.0
Failure Type: Memory Leak
Found In Build/Fixed In Build: 11,0,12,302575 / CF11 update 13
Priority/Frequency: Normal / Few users will encounter
Locale/System: English / Win 2012 Server x64
Vote Count: 0
Problem Description:
I have a template file that runs as a CF scheduled task to index a collection of PDFs. It has run every day without incident for months. I installed ColdFusion 11 Update 12 last night, and this morning, the template through a Java Heap Space OutOfMemoryError.
Steps to Reproduce:
Call this template file (pseudo-code):
<cfsetting requesttimeout="3600" />
<cfset LOCAL = {} />
<cfquery name="qAllDocuments">
SELECT DISTINCT
ID,
Status,
'F:\PDFs\Processed\'
CONCAT TRIM(DOCUMENTID)
CONCAT '.PDF' AS DocumentFile,
'No' AS FileExists
FROM Documents
</cfquery>
<cfloop query="qAllDocuments">
<cfset qAllDocuments["FileExists"][CURRENTROW] =
YesNoFormat(FileExists(qAllDocuments["DocumentFile"][CURRENTROW])) />
</cfloop>
<cfquery name="LOCAL.qDocuments" dbtype="Query">
SELECT
ID,
Status,
DocumentFile
FROM qAllDocuments
WHERE FileExists = 'Yes'
</cfquery>
<cfindex
query="LOCAL.qDocuments"
collection="MyDocCollection"
action="refresh"
type="file"
key="DocumentFile"
custom1="ID"
custom2="Status" />
Actual Result:
Message: Java heap space
StackTrace: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Unknown Source)
at java.lang.String.(Unknown Source)
at java.lang.String.substring(Unknown Source)
at com.adobe.internal.pdftoolkit.pdf.graphics.font.CMapResourceBuilder.splitToUnicodeSubSequence(CMapResourceBuilder.java:556)
at com.adobe.internal.pdftoolkit.pdf.graphics.font.CMapResourceBuilder.parseToUnicodeMap(CMapResourceBuilder.java:295)
at com.adobe.internal.pdftoolkit.pdf.graphics.font.PDFToUnicodeCMap.(PDFToUnicodeCMap.java:297)
at com.adobe.internal.pdftoolkit.pdf.graphics.font.PDFToUnicodeCMap.getInstance(PDFToUnicodeCMap.java:332)
at com.adobe.internal.pdftoolkit.pdf.graphics.font.PDFFontType0.getToUnicodeCMap(PDFFontType0.java:148)
at com.adobe.internal.pdftoolkit.pdf.graphics.font.PDFFontType0.getCharCodes(PDFFontType0.java:345)
at com.adobe.internal.pdftoolkit.pdf.graphics.font.PDFFontType0.getCharCodes(PDFFontType0.java:302)
at com.adobe.internal.pdftoolkit.services.textextraction.impl.contentprocessor.TextRun.getCharCodesFromFont(TextRun.java:672)
at com.adobe.internal.pdftoolkit.services.textextraction.impl.contentprocessor.TextRun.cacheHorizontalGlyphInfo(TextRun.java:754)
at com.adobe.internal.pdftoolkit.services.textextraction.impl.contentprocessor.TextRun.cacheGlyphInfo(TextRun.java:662)
at com.adobe.internal.pdftoolkit.services.textextraction.impl.contentprocessor.TextRun.init(TextRun.java:274)
at com.adobe.internal.pdftoolkit.services.textextraction.impl.contentprocessor.TextRun.(TextRun.java:147)
at com.adobe.internal.pdftoolkit.services.textextraction.impl.contentprocessor.TextObject.addTextRun(TextObject.java:96)
at com.adobe.internal.pdftoolkit.services.textextraction.impl.TextObjectExtractor.Tj(TextObjectExtractor.java:942)
at com.adobe.internal.pdftoolkit.services.textextraction.impl.contentprocessor.TextShowingOperator.process(ContentOperators.java:513)
at com.adobe.internal.pdftoolkit.services.textextraction.impl.TextObjectExtractor.process(TextObjectExtractor.java:359)
at com.adobe.internal.pdftoolkit.services.textextraction.impl.TextObjectExtractor.extractTextObjects(TextObjectExtractor.java:326)
at com.adobe.internal.pdftoolkit.services.textextraction.impl.TextObjectExtractor.extractTextObjects(TextObjectExtractor.java:221)
at com.adobe.internal.pdftoolkit.services.textextraction.TextExtractor.extractWords(TextExtractor.java:273)
at com.adobe.internal.pdftoolkit.services.textextraction.TextExtractor.getWordsIterator(TextExtractor.java:465)
at com.adobe.internal.pdftoolkit.services.textextraction.TextExtractor$DocumentWordsIterator.(TextExtractor.java:626)
at com.adobe.internal.pdftoolkit.services.textextraction.TextExtractor.getWordsIterator(TextExtractor.java:392)
at coldfusion.pdf.PDFDocHandler.extractTextString(PDFDocHandler.java:3566)
at coldfusion.pdf.PDFDocHandler.extractText(PDFDocHandler.java:3533)
at coldfusion.pdf.PDFDocOperation.extractText(PDFDocOperation.java:987)
at coldfusion.tagext.search.SolrUtils.getSolrDocument(SolrUtils.java:732)
at coldfusion.tagext.search.SolrUtils.addDocument(SolrUtils.java:1273)
at coldfusion.tagext.search.IndexTag.doQueryUpdate(IndexTag.java:778)
at coldfusion.tagext.search.IndexTag.doStartTag(IndexTag.java:351)
Expected Result:
Template runs without exception and CFINDEX updates the collection.
Any Workarounds:
None tried. Considering uninstalling update and/or adding memory.
Attachments:
- June 23, 2017 00:00:00: 130903.PDF
Comments: