learningjasper Posted July 29, 2010 Share Posted July 29, 2010 Hi.In my report i need some custom fields. For example we can take the column "week". In my database the values are in integer format. I need feth them from the DB and parse them as <nth week of MONTH_NAME YEAR>. for that i have a set of custom formatter methods which takes the resultset as input and parse them to the desired formats. As a result i get a List<Map<String, Object>>. and then i pass this List to the JRDataSource. Everything works fine for small reports. But when the report becomes large (around 1 million records) it runs for quite a long time and then throws "out of memory" exception while filling the report.Am i doing anything wrong? Or is there any work around for this? I have already tried virtualizer and increased the JVM memory.Thanks n Regards.Ansh. Code: Post Edited by learningjasper at 07/29/2010 07:12 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