rebello.roy Posted July 23, 2015 Share Posted July 23, 2015 i am generating pdf report using jasper(1.2.6).Its a simple logic where i am passing data as string in to jasper.I am just using the string variable in jasper and printing the content which sometimes contains huge data. I our app server while generating swap file it is eating around 14 GB memory and application got hanged.Please suggest the cause and solution if someone is familia with the issue Link to comment Share on other sites More sharing options...
mnfaria1994 Posted July 24, 2015 Share Posted July 24, 2015 maybe the problem is in the compiling of the jrxml, that's a common memory leakage problem. Instead of something like this JasperCompileManager.compileReportToFile(inputFile, destinationFile);tryString inputFile = session.getServletContext().getRealPath("InputFile.jrxml");String destinationFile = session.getServletContext().getRealPath("InputFile.jasper");File jasperFile = new File(destinationFile);if(environmentBeanFile.exists() == false){JasperCompileManager.compileReportToFile(inputFile, destinationFile);} 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