logasram Posted June 21 Share Posted June 21 Hi,Our application is a legacy application.We are using JasperReports-6.1.0 for PDF reports generation.We have a table that is rendered from DataSet. It works fine with DataSet size less than 5 and more than 15. But we are getting OutOfMemoryError when the dataset size is between 4 and 16, which is very strange for us.Kindly help me here. Thanks!Error Log:java.lang.OutOfMemoryError: GC overhead limit exceeded at sun.font.FileFontStrike.getGlyphMetrics(FileFontStrike.java:817) ~[na:1.8.0_191] at sun.font.FileFontStrike.getGlyphMetrics(FileFontStrike.java:813) ~[na:1.8.0_191] at sun.font.StandardGlyphVector$GlyphStrike.addDefaultGlyphAdvance(StandardGlyphVector.java:1791) ~[na:1.8.0_191] at sun.font.StandardGlyphVector.initPositions(StandardGlyphVector.java:1323) ~[na:1.8.0_191] at sun.font.StandardGlyphVector.getLogicalBounds(StandardGlyphVector.java:380) ~[na:1.8.0_191] at java.awt.Font.getStringBounds(Font.java:2423) ~[na:1.8.0_191] at java.awt.Font.getStringBounds(Font.java:2331) ~[na:1.8.0_191] at java.awt.Font.getStringBounds(Font.java:2365) ~[na:1.8.0_191] at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.measureParagraphFragment(SimpleTextLineWrapper.java:728) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.measureLine(SimpleTextLineWrapper.java:585) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.nextLine(SimpleTextLineWrapper.java:523) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.TextMeasurer.renderNextLine(TextMeasurer.java:829) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:632) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:573) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:672) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:186) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:330) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:382) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:357) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:435) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:395) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBreak(JRVerticalFiller.java:1926) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBreak(JRVerticalFiller.java:1953) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2061) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:755) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:262) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:551) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:411) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:122) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:667) ~[jasperreports-6.1.0.jar!/:6.1.0] at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:983) ~[jasperreports-6.1.0.jar!/:6.1.0] Link to comment Share on other sites More sharing options...
anish.rai Posted June 21 Share Posted June 21 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
pjimenezZ Posted June 22 Share Posted June 22 Hello,For that specific error, you can change your garbage collection to see if it improves. More information can be found here: https://community.jaspersoft.com/wiki/tibco-jasperreports-server-crashing-and-receiving-error-gc-overhead-limit-exceeded A server restart is required for those changes to take effect. Regards, Paul Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now