deborupa0402 Posted October 1, 2020 Share Posted October 1, 2020 We have a report generation job , with an average execution time of 2 mins and generates 10-12 reports. The job fetches the necessary data from DB and then uses multithreading to generate the reports. Last week the job generated 3 reports and then got stuck for over an hour. We took the thread dump [ attached below] and other VM stats like memory , cpu and everything was normal. We killed the job and restarted it and it got executedin its normal time [1:11min] and generated 8 reports. On thread dump analysis we found the thread for jasper report was present for nearly an hour [ we took the dump at around 50 mins ] . Is there any issue from jasper report writter than can cause this , especially the "AbstractThreadSubreportRunner" ? We use OpenJDK and jasper jar version 6.0.0Thanks in advance for any help. "pool-2-thread-1" #23 prio=5 os_prio=0 cpu=11702.10ms elapsed=2958.36s tid=0x00007fc4a8251000 nid=0x2897 in Object. wait() [0x00007fc534166000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(java.base@11.0.2/Native Method) - waiting on <no object reference available> at java.lang.Object.wait(java.base@11.0.2/Object.java:328) at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.waitResult(AbstractThreadSubreportRunner. java:81) at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.resume(AbstractThreadSubreportRunner.java :68) at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:812) - waiting to re-lock in wait() <0x000000043c814e28> (a net.sf.jasperreports.engine.fill.JRVerticalFiller) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:331) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:383) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:358) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2058) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:754) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:264) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:124) - locked <0x000000043d5c0af0> (a net.sf.jasperreports.engine.fill.JRVerticalFiller) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:540) at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:411) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:116) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:668) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:984) Link to comment Share on other sites More sharing options...
pavankalburgi17 Posted March 23, 2023 Share Posted March 23, 2023 Hi,I am also facing the same issue. if you have found any workaround please let me know 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