This is a migrated thread and some comments may be shown as answers.

Generating takes to much memory

3 Answers 160 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marcin Szymankiewicz
Top achievements
Rank 1
Marcin Szymankiewicz asked on 16 Sep 2008, 02:35 PM
Hello.

I used the webReportViewer control to show report on my page. Generating to pdf takes some memory and when the opration is complete it does not dispose it. After generating for exapmle 4 or 5 pdf's the memory cost is 400MB (50 page report).

Is there some solution to free some memory after gnerating pdf or excel??

Does report engine use session to store internal data or variables ??

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 16 Sep 2008, 03:13 PM
Hi Marcin,

You are correct that the report engine uses session to store the report data. The memory would be freed when the session times out. Currently every time the report is previewed or exported through the viewer it is processed and rendered from scratch, which requires a more powerful hardware configuration. Obviously, this is not the best way to do this, but we still lack any caching mechanism, which is in our TODO list.
As to the 400 Mb of taken up memory - this is strange. Do you have images in your report? If you do and they are shown on every page, you can very easily make the calculation of how many memory is taken up by the images only.

Greetings,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Marcin Szymankiewicz
Top achievements
Rank 1
answered on 17 Sep 2008, 06:35 AM
Is there any way to clean up your session values(maybe you could give as a key) after genereting to pdf etc?? I also keep some values in session and i don't want to clean all of them.

When approximately you planed to release this TO DO list ??
0
Steve
Telerik team
answered on 17 Sep 2008, 12:16 PM
Hello Marcin,

There is no way to clean up the session as we're keeping the report data in it. There is no way to know, which data would not be used after filtering for example, so we keep the whole thing.
As for implementing caching - we cannot engage with a specific time frame at this point.

Regards,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Marcin Szymankiewicz
Top achievements
Rank 1
Answers by
Steve
Telerik team
Marcin Szymankiewicz
Top achievements
Rank 1
Share this question
or