I have scheduled over 150 report in jasper server and reports fetching data from mongodb. Scheduler runs every day and required to run within 2 hours,i am collecting over 40 millions records every day in mongodb and report fetching data from mongodb.
I am getting Heap space memory error at the time of scheduler runs
Error Message: The job was not completed. A system error occurred while running it. Exceptions: java.lang.OutOfMemoryError: Java heap space
For this issue i have set following parameter in apache tomcat setenv.sh
JAVA_OPTS="-Xms25g -Xmx35g -XX:PermSize=10g -XX:MaxPermSize=20g -Xss2m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled $JAVA_OPTS "
For some report scheduler runs but report not generated