laptop and a wrench

漏洞

Memory usage grows rapidly when TOC.Refresh is called.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM011068
已提交August 20, 2007
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.3
修正版本9.3
状态Fixed

解决办法

Notes from Art on workarounds for this issue, and information on why memory is increasing when toc.refresh is called.There are two work-around’s here:1) Set UseMIMEData to false oneverything. This will essentially do the same thing as #22) Force the Removal of the MIMEData objects from session state either using StateManager or the <a href="http://ASP.NET" target="_blank">ASP.NET</a> Session State object.NOTE: In looking through the code, I did notice that the TOC (as with some other objects using MIMEData) are not calling the method correctly and therefore the objects stored in session are never being removed from session state. We are a creating a CR for this now and will deal with it in the next release (SP or whatever).The way our session objects are stored on the session is through a global object known as StateManager. This object is public off the base class of our web controls (including CompositeControl) and can be used directly. In this type, we determine if session can be used, if it can, all objects are stored in session, if not, then it will try and use ViewState. In your case, it is obviously using Session State. Session objects are stored in the following format:String.Format("{0}{1}_{2}", PageID, ControlID, property )For the work-around, we can simply enumerate the objects in session and if type is MIMEData, you can quickly remove it from Session prior to calling Toc.Refresh(). I did a quick experiment and that does the trick for me. Alternativley, we can refine this to only removing the Toc’s Node’s MIMEData object by looping on the Node’s of the TOC to find the image url, if session object is MIMEData and URL == Node’s URL, then remove from session.

重现步骤

漏洞 ID: NIM011068

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项