Silverlight Reports and Caching

4 posts, 0 answers
  1. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 16 Jul 2014 Link to this post

    So my client uses a citrix VDI to run a silverlight application and it calls a telerik silverlight report viewer.
    They say their 20GB write cache disk runs out of memory very quickly and I think that the report viewer is writing to it.  I don't see the memory of the app go up when I load a large report, so I guess it's sticking it there.

    And this is just a guess.

    For Silverlight how would I change the cache type, I see in the docs, you mention changing the config in a web.config file, but for silverlight would you set the CacheMode property?  Or can you?
  2. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 21 Jul 2014 Link to this post

    Hi Dan,

    The cache management will help you improve the performance while the user interacts with the report document in the ReportViewer, as pages and their resources will be cached and the whole document would not be reprocessed on navigating, exporting or printing. This settings are applied in the web.config file as explained in the Configuring Cache help article.

    If you are exporting the report programmatically, the whole report, including its resources are hold in memory and processed at once. Thus our suggestion is to filter the data using report parameters; or if the machine has enough resources to handle the report document generation - increase the timeouts of the service at both client and server sides. Keep in mind the native Silverlight printing also requires more resources and disabling it may reduce the used memory (set UseNativePrinting to false).
    Additional details how to improve the performance are available in the Performance Considerations article.


    If you need further help, please open a support ticket and elaborate on the scenario, the amount of data, the report complexity, when the CPU and memory usage peaks(is it specific rendering format). We will be waiting as well the requested project, including test data and results from profiling at your end.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 21 Jul 2014 in reply to Stef Link to this post

    I'm using a Silverlight OOB, how will that look at a web.config?

    I'll look into your other suggestions though.
  5. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 24 Jul 2014 Link to this post

    Hi,

    It is the Reporting WCF service which uses the cache settings. Thus the settings must be added in its project's configuration file:
    1. Add the Telerik.Reporting section first in the web.config file - Telerik Reporting Configuration Section;
    2. Add the desired cache provider settings - Configuring Cache;


    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top