carluts95 Posted December 1, 2023 Share Posted December 1, 2023 I have developed a product catalog report that includes product data and their respective images, accessed via HTTPS links. When exporting it through JasperServer, more than 70% of the images are not exported. I increased the available memory for Java, thinking it was a memory issue, but it didn't resolve the issue. If I export the same report using Jasper Studio, it takes some time but exports with all the images. I don't know if it has to do with the size, as on JasperServer, it remains at 20 MB, and when I export it through JasperStudio, it becomes 80 MB. What can I do to export it with all the data? Link to comment Share on other sites More sharing options...
Mehak Rajkumar Posted December 4, 2023 Share Posted December 4, 2023 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
Jivan Phadtare Posted December 4, 2023 Share Posted December 4, 2023 It is good approach to have a look at jasperserver.log file to know about more details of error when you try to export through JasperServer. 'jasperserver.log' file can be found at location : ...\webapps\jasperserver-pro\WEB-INF\logs\ We highly recommand you to have a look at log file when you perform export operation. It should pinpoint about the error if any. Link to comment Share on other sites More sharing options...
carluts95 Posted December 5, 2023 Author Share Posted December 5, 2023 I checked the jasperserver.log file, but I couldn't find any errors related to the export process in it. However, since I'm not using the jasperserver-pro edition, I located the logs in this directory: "/apache-tomcat/webapps/jasperserver/WEB-INF/logs". Is there any other log file I should check for potential issues? I should mention that I'm using jasperreports-server-cp-8.1.1, which I installed earlier this year. Link to comment Share on other sites More sharing options...
Jivan Phadtare Posted December 5, 2023 Share Posted December 5, 2023 As you mentioned there is no error found in logs then please check the heap memory setting configured in 'setenv.bat' file under tomcat/bin folder. Minimum heap should be more than 2 GB. Sample configuration for windows is as below : set JAVA_OPTS=%JAVA_OPTS% -Xms2048m -Xmx4096m -Xss2m set JAVA_OPTS=%JAVA_OPTS% -XX:+UseConcMarkSweepGC Also, we request you to try with clean restart of tomcat. Clean restart means stop the tomcat and remove the 'temp' and 'work' folder from tomcat and then restart the tomcat. These folders will recreated during restart. Link to comment Share on other sites More sharing options...
carluts95 Posted December 6, 2023 Author Share Posted December 6, 2023 So, last week I've just tried to change the first one to: set JAVA_OPTS="-Xms4096m -Xmx8192m -Xss2m $JAVA_OPTS " ; What does this setting do? set JAVA_OPTS=%JAVA_OPTS% -XX:+UseConcMarkSweepGC Link to comment Share on other sites More sharing options...
Jivan Phadtare Posted December 6, 2023 Share Posted December 6, 2023 "UseConcMarkSweepGC" is java option to use garbage collector which instructs the JVM to use the Concurrent Mark-Sweep (CMS) garbage collector. The CMS collector is designed to minimize pauses during garbage collection in order to reduce application response time, making it suitable for applications where low latency is crucial. You can try with Clean restart means stop the tomcat and remove the 'temp' and 'work' folder from tomcat and then restart the tomcat. These folders will recreated during restart. Link to comment Share on other sites More sharing options...
carluts95 Posted December 9, 2023 Author Share Posted December 9, 2023 I tried to stop do : 1 - set JAVA_OPTS=%JAVA_OPTS% -XX:+UseConcMarkSweepGC 2 - I stoped the tom cat and deleted temp and works folders 3 - I started the tom cat again. But unfortunately didn`t work, and has no error in the logs about this report . Link to comment Share on other sites More sharing options...
shreekrishna.shankhwar Posted December 17, 2023 Share Posted December 17, 2023 Its my Suggestion as you are calling https link to display images it will take a time as first jasper will download the those images every time when you call the report . Its better to use the images from server only. Enable the cache option if not enabled. try to point to images which is small in size which will load quickly and output size will also be less. Link to comment Share on other sites More sharing options...
carluts95 Posted January 4 Author Share Posted January 4 I tried reducing the image quality, now they have a maximum of 8kb each and still the problem continues. Lazy is checked, I'm using Cache. 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