Page 1 of 1

Error: GC overhead limit exceeded

Posted: Wed Jul 05, 2023 1:57 pm
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

Re: Error: GC overhead limit exceeded

Posted: Thu Jul 06, 2023 11:52 am
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.

Re: Error: GC overhead limit exceeded

Posted: Fri Jul 21, 2023 5:23 pm
by TecnologiaMV
We will perform the adjustments and continue with the tests.
Thanks.

Re: Error: GC overhead limit exceeded

Posted: Sat Jul 22, 2023 11:23 am
by Max Shamanov
Hello,

Ok.
Let us know if you need our help.

Thank you.