asp.net - .NET Memory Leak -


Our ASP After running our stress test for the internal Web Services on .NET applications, our mid-tier server (where we host Asmaks. Net 3.5 web services) showed close to 1 GB of memory consumption.

The review of memory dump from the mid-tier server, I have more than 1000 objects Microsoft.Xml.Serialization. GeneratedAssembly.ArrayOfObjectSerializer is referred to by the Web Services Runtime.

What are some deals that are being Siriylaijd / Diserilaijh our custom objects in Web services level? Can it be more light on this?

When I look gcroot on some of these 1,000 objects, I discovered the following: (Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Storage.ConfigurationChangeFileWatcher) -> 1c4bb450 (System.Threading.Thread ) -> L8236aa0 (Sistmkruntimekremotingkcontektskcontekst) -> 18,236,914 (Sistmkappdoman) -> L0409dc4 (Sistmkresolviventhandler) -> 10,409,494 (Sistmkvebkkanpaileshnkbuildmnagr) -> L0409f30 (Sistmkveb Kkanpaileshnkmemoribuildresultkache) -> 103d115c (Sistmkvebkkasingkkchemltiple) -> 103d1174 (Sistmkobjekt []) -> 103d2034 (Sistmkvebkkasingkkchesingle) -> 103d2080 (Sistmkklekshnskhshtable) - > 1c24b97c (System.Collections.Hashtable + bucket []) -> 1c24b934 (System.Web.Caching.CacheEntry) -> 18,363,994 (System.Web.Services.Protocols.SoapServerType) -> 183639c4 (System.Collections.Hashtable) - > 1c24aa5c (System.Collecti ons.Hashtable + bucket []) -> 1c24a458 (System.Web.Services.Protocols.SoapServerMethod) -> 1c248ae4 (Microsoft.Xml.Serialization.GeneratedAssembly.A RreOfObjectSerializer26)

(Microsoft.Practices.EnterpriseLibrary .Common.Configuration.Storage.ConfigurationChangeFileWatcher) -> 1c5ac4b0 (System.Threading.Thread) -> 1c52b5f0 (System.Runtime.Remoting.Contexts.Context) -> 1c52b464 (System.AppDomain) -> 18823,880 (System.ResolveEventHandler) - > L8822f50 (Sistmkvebkkanpaileshnkbuildmnagr) -> L88239e0 (Sistmkvebkkanpaileshnkmemoribuildresultkache) -> L4463lfc (Sistmkvebkkasingkkchemltiple) -> 14,463,214 (Sistmkobjekt []) -> 14,465,088 (system .Web.Caching.CacheSingle) -> 144650d4 (System.Collections.Hashtable) -> 1446510c (System.Collections.Hashtable + bucket []) -> 1c5a580c (System.Web.Caching.CacheEntry) -> 109e6e34 (System.Web Ksrvisejkprotocolsksoapsserverteepe) -> 109e6e64 (Sistmkklekshnskhshtable) -> 1c5a4fcc (Sistmkklekshnskhshtable + Alti []) -> 1c5a4a54 (System.Web.Services.Protocols.SoapServerMethod) -> 1c5a44f4 (Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer28)

(Microsoft.Practices.EnterpriseLibrary.Common.Configura tion .storage.ConfigurationChangeFileWatcher) -> 108b38f0 (System.Threading.Thread) -> 1c1155ec (System.Runtime.Remoting.Contexts.Context) -> 1c115460 (System.AppDomain) -> 1030d348 (System.ResolveEventHandler) -> 1030ca18 (System Kvebkkanpaileshnkbuildmnagr) -> 1030d4a0 (Sistmkvebkkanpaileshnkmemoribuildresultkache) -> L02d7ae4 (Sistmkvebkkasingkkchemltiple) -> 102d7afc (Sistmkobjekt []) -> 102d7b1c (Sistmkveb. Caching.CacheSingle) -> 102d7b68 (System.Collections.Hashtable) -> 102d7bac (System.Collections.Hashtable + bucket []) -> 181ee124 (System.Web.Caching.CacheEntry) -> 10350eac (System.Web.Services. Protocols.SoapServerType) -> 10350edc (System.Collections.Hashtable) -> 181ed260 (System.Collections.Hashtable + bucket []) -> 181ed148 (System.Web.Services.Protocols.SoapServerMethod) -> 181eb708 (Microsoft.Xml. serialization. generated. assembly. Aruofobjekt Srtilaijr 61)

thanks BK

tools You can try your code from the Red Gate.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -