I am finding that the font initialization code is frequently getting this error on the Mac
According to Sun, the error happens "if too much time is being spent in garbage collection: if more than 98% of the total time is spent in garbage collection and less than 2% of the heap is recovered, an OutOfMemoryError will be thrown.". Seems to be a result of too many small objects combined with a not so fast computer. java.lang.OutOfMemoryError: GC overhead limit exceeded at org.apache.fontbox.cff.IndexData.getBytes(IndexData.java:44) at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:437) at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:115) at org.apache.fontbox.ttf.CFFTable.read(CFFTable.java:53) at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:377) at org.apache.fontbox.ttf.OpenTypeFont.getCFF(OpenTypeFont.java:61) at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.addTrueTypeFontImpl(FileSystemFontProvider.java:432) at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.addTrueTypeCollection(FileSystemFontProvider.java:344) at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.scanFonts(FileSystemFontProvider.java:243) at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.<init>(FileSystemFontProvider.java:224) at org.apache.pdfbox.pdmodel.font.FontMapperImpl$DefaultFontProvider.<clinit>(FontMapperImpl.java:132) at org.apache.pdfbox.pdmodel.font.FontMapperImpl.getProvider(FontMapperImpl.java:151) at org.apache.pdfbox.pdmodel.font.FontMapperImpl.findFont(FontMapperImpl.java:415) at org.apache.pdfbox.pdmodel.font.FontMapperImpl.getTrueTypeFont(FontMapperImpl.java:323) at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.<init>(PDTrueTypeFont.java:196) at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:75) at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:123) at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60) at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:814) at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:471) at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:445) at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149) at org.apache.pdfbox.text.PDFTextStreamEngine.processPage(PDFTextStreamEngine.java:117) at org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.java:370) at org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.java:307) at org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:252) Any suggestions on how to deal with this?

