Error: GC overhead limit exceeded

Stimulsoft Reports.JAVA discussion
Post Reply
TecnologiaMV
Posts: 53
Joined: Mon May 30, 2022 7:35 pm

Error: GC overhead limit exceeded

Post by TecnologiaMV »

We are experiencing problems related to memory overflow in some requests, which directly affects the performance of the service and, in some cases, results in a system crash. We need to perform an analysis to identify ways to control or limit these processings, in order to improve the visualization of the reports.
We need to identify possible bottlenecks and implement measures to mitigate the memory overflow problem.


Transaction name: /report-executor/stimulsoft_webviewer_action
Error: GC overhead limit exceeded
exception
java.lang.OutOfMemoryError: GC overhead limit exceeded


attached traces for analysis
Attachments
trace-20230630-174441-780.zip
(102.01 KiB) Downloaded 108 times
trace-20230630-175612-211.zip
(98.93 KiB) Downloaded 110 times
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: Error: GC overhead limit exceeded

Post by Vadim »

Hello.

You have two different java.lang.OutOfMemoryError exceptions:
1 - During loading data from database - report building process need to load all data to memory, only way to avoid it is to increase system memory.
2 - During report build - you can activate Report Cache Mode, then report engine saves serialised version of each page to folder when cache mode is activated. So report engine can work with big reports without high memory consumption.

If report.ReportCacheMode = StiReportCacheMode.Auto, then the first page that goes into the cache is determined by the following parameter:
StiOptions.Engine.ReportCache.LimitForStartUsingCache.

If report.ReportCacheMode = StiReportCacheMode.On then caching will start from the first page.

The number of pages that are constantly in RAM is determined by the parameter:
StiOptions.Engine.ReportCache.AmountOfQuickAccessPages.
TecnologiaMV
Posts: 53
Joined: Mon May 30, 2022 7:35 pm

Re: Error: GC overhead limit exceeded

Post by TecnologiaMV »

We will perform the adjustments and continue with the tests.
Thanks.
Max Shamanov
Posts: 798
Joined: Tue Sep 07, 2021 10:11 am

Re: Error: GC overhead limit exceeded

Post by Max Shamanov »

Hello,

Ok.
Let us know if you need our help.

Thank you.
Post Reply