Welcome to JavaRanch.
I set the Max heap to 1024mb but it didn’t work.
I don't see anything about the error message that indicates memory problem, so I wouldn't have expected this to make a difference.
at com.km.coreirm.client.reportNew.ReportFunctionFrm.getVisualCertificate(ReportFunctionFrm.java:2614).
There's a class with more than 2600 lines of code?
It seems some serious refactoring is in order.