megatro Posted June 13, 2023 Share Posted June 13, 2023 Dear Community,I have jasperreports-server processes, and the end of the months its consuming high memory usage, which causing many alerts on all sites. Looks all other resources (CPU, disk) are idle or low usage.Only memory going to use 99%My question: Is there any recommended linux tuning which maybe can decrease the memory usage? Meaning which limits recommended to use?If you have any good solution or tips for linux tuning, please let me know?RegardsBalazs Link to comment Share on other sites More sharing options...
tepavac05 Posted June 14, 2023 Share Posted June 14, 2023 Hello megatro, did you set JVM Options for Application Server?I don't work for jaspersoft, I just had same issues with my Jasper server 8.0.0.Read these posts.https://community.jaspersoft.com/documentation/tibco-jasperreports-server-installation-guide/v80/setting-jvm-options-application#additional_646152231_1121908https://community.jaspersoft.com/wiki/changing-garbage-collection-g1-tibco-jasperreports-server Link to comment Share on other sites More sharing options...
megatro Posted June 14, 2023 Author Share Posted June 14, 2023 Hi tepavac05,-Xms32g -Xmx56g -Xss2m set.Which options used by your jasper hosts?regmegatro Link to comment Share on other sites More sharing options...
tepavac05 Posted June 14, 2023 Share Posted June 14, 2023 Hi again,this is mine setenv.sh file:export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms12288m -Xmx12288m -Xss20m"export CATALINA_OPTS="$CATALINA_OPTS -XX:MetaspaceSize=96m -XX:MaxMetaspaceSize=256m"export CATALINA_OPTS="$CATALINA_OPTS -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/tomcat/logs/java_heapdump_pid_%p.log"export CATALINA_OPTS="$CATALINA_OPTS -XX:+UseConcMarkSweepGC"export CATALINA_OPTS="$CATALINA_OPTS -XX:+CMSIncrementalMode"export CATALINA_OPTS="$CATALINA_OPTS -XX:+CMSIncrementalPacing" I have Oracle Linux 8.x server with 20 GB RAM and 6 core processor.Ram is always about 16GB in used, and proces depends on number of transactions.Java: jva version "1.8.0_321"Java SE Runtime Environment (build 1.8.0_321-b07)Java HotSpot 64-Bit Server VM (build 25.321-b07, mixed mode)Daily between 50000 and 90000 transactions I have. Link to comment Share on other sites More sharing options...
Mehak Rajkumar Posted June 15, 2023 Share Posted June 15, 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...
Jitendra Mandalia Posted June 20, 2023 Share Posted June 20, 2023 Options suggested by @tepavac05 in his answers are valid options to improve memory performance. Your memory setting with -Xms32g and -Xmx56g seems high enough to handle large datasets in memory if you are pulling large amount of data into JasperReports Server memory. Either you are running very large reports towards the month ends or your garbage collection is not happening properly. I don't see any other reasons for memory to reach to 99% (assuming it's only happening due to JRS and no other process in conjunction doing this).The only thing, apart from the options suggested by @tepavac05, would be to use different Garbage collector i.e. G1GC and see if that improves memory cleanup. We have seen this Garbage collector, compared to ConcMarkSweepGC.JAVA_OPTS="$JAVA_OPTS -XX:+UseG1GC"(This setting specific link is also what @tepavac05 shared in his answers) Assuming your current max available RAM 56GB. 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