Hello,
My scenario is that I need to refresh a RadChart's data on my page periodically with a timer (around one minute) and the radchart is created dianmically from code behind.
I have tried two different solutions but each of them has some memory/space issue:
1. Setting the Usession property of the radchart to true, the memory grows exponentially at every postback (each time the radchart refreshes); then, after short time (depending on how many users, number of radcharts on my page and refreshing time of each radchart) the iis instance's memory explodes and blockes everything. I understand that every time a chart refresh, its image is memorised in session, so that is the casue why memory grows. Is there any solution to that? use the same variable in session in order to stop memory from growing? is there any setting apropiate for that?
2. The other solution i tried: setting usession property to false, and use the temporary virtual path to store the images. This way is much better, and the application (iis process) does not have any memory problem, but i have to manage the space on the disk. Any suggestions here? is there a way to override files (not creating a new one each time with a different name)? or is there any other possible solution apart separately managing the cleaning of this directory?
Could you please indicate me wich of the 2 solutions is more suitable and answer the relative questions.
Any help qould be appreciated.
Thanks a lot in advance.
My scenario is that I need to refresh a RadChart's data on my page periodically with a timer (around one minute) and the radchart is created dianmically from code behind.
I have tried two different solutions but each of them has some memory/space issue:
1. Setting the Usession property of the radchart to true, the memory grows exponentially at every postback (each time the radchart refreshes); then, after short time (depending on how many users, number of radcharts on my page and refreshing time of each radchart) the iis instance's memory explodes and blockes everything. I understand that every time a chart refresh, its image is memorised in session, so that is the casue why memory grows. Is there any solution to that? use the same variable in session in order to stop memory from growing? is there any setting apropiate for that?
2. The other solution i tried: setting usession property to false, and use the temporary virtual path to store the images. This way is much better, and the application (iis process) does not have any memory problem, but i have to manage the space on the disk. Any suggestions here? is there a way to override files (not creating a new one each time with a different name)? or is there any other possible solution apart separately managing the cleaning of this directory?
Could you please indicate me wich of the 2 solutions is more suitable and answer the relative questions.
Any help qould be appreciated.
Thanks a lot in advance.