|
|
|
|
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
Last post Wed, Sep 03 2008, 10:50 AM by Sasha. 17 replies.
-
Mon, Jun 23 2008, 10:56 AM |
-
victorgunta
-
-
-
Joined on 04-21-2008
-
-
Posts 72
-
-
|
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
Hello, For about a week, the CommerceManager started to behave strangely. There were huge loading times, on the "Edit product" and "Add new product". And since today, it stopped working completely throwing this error : [OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.] System.IO.MemoryStream.set_Capacity(Int32 value) +56 System.IO.MemoryStream.EnsureCapacity(Int32 value) +48 System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count) +124 System.Security.Cryptography.CryptoStream.FlushFinalBlock() +76 System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo) +164 System.Web.UI.ObjectStateFormatter.Serialize(Object stateGraph) +168 System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Serialize(Object state) +4 System.Web.UI.Util.SerializeWithAssert(IStateFormatter formatter, Object stateGraph) +37 System.Web.UI.HiddenFieldPageStatePersister.Save() +106 System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state) +82 System.Web.UI.Page.SaveAllState() +550 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2357
I have a production license version 4.1.2.16172
|
|
-
Mon, Jun 23 2008, 2:37 PM |
-
jasonkim
-
-
-
Joined on 10-03-2007
-
-
Posts 51
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
Hello,
How much memory does your server have and how much of it is being used? What were the figures before you noticed this issue?
Mediachase Software
|
|
-
Mon, Jun 23 2008, 2:45 PM |
-
victorgunta
-
-
-
Joined on 04-21-2008
-
-
Posts 72
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
Hello,
The server has 4gb of memory. Before i was forced to restarted it, sqlserver process was using 1,5gb of memory. Which seems a bit to much to me...
|
|
-
Mon, Jun 23 2008, 3:09 PM |
-
Sasha
-
-
-
Joined on 01-01-2000
-
Los Angeles
-
Posts 1,064
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
1.5 GB for a SQL Server is not that much, but it all depends on the settings and how many applications are using SQL Server. What was the other memory used for? You should still have 2.0 GB available. Is your .NET/IIS application limited to a space it can use?
|
|
-
Mon, Jun 23 2008, 3:24 PM |
-
victorgunta
-
-
-
Joined on 04-21-2008
-
-
Posts 72
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
This is only a database server, with only the ecf database. No webserver, no nothing.
I think the OutOfMemory exception occurs when i make too many attempts to edit products in CommerceManager (which i explained earlier, behaves very strange).
|
|
-
Thu, Jun 26 2008, 12:43 AM |
-
victorgunta
-
-
-
Joined on 04-21-2008
-
-
Posts 72
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
It seems to be related to the problem i reported here : http://www.mediachase.com/Community/forums/thread/9764.aspx
Anyway, i cand send you either access to CommerceManager of the development site, or the ECF file with the XML export.
|
|
-
Thu, Jun 26 2008, 4:44 AM |
-
victorgunta
-
-
-
Joined on 04-21-2008
-
-
Posts 72
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
I've sent the ECF and SQL file to support.
|
|
-
Fri, Jun 27 2008, 2:02 AM |
-
victorgunta
-
-
-
Joined on 04-21-2008
-
-
Posts 72
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
It seems i fixed the problem. The MetaAtribute table had alomost 3 million records with null values. So i deleted them and everything looks and works fine. However, i still got this error when i go into one of the category :
System.NullReferenceException: Object reference not set to an instance of an
object. at Mediachase.MetaDataPlus.MetaObject.GetElementaryFieldValues() at
Mediachase.eCF.BusFacade.Filters.Products.MetaAttributesContentFilter.GetProductMetaFields(Product
product) at
Mediachase.eCF.BusFacade.Filters.Products.MetaAttributesContentFilter.CreateItem(Item&
item, IMetaObject metaObject, String[] responseGroup, IList`1& errorArray)
at Mediachase.eCF.BusFacade.ContentFilters.PopulateProductItem(Item&
productItem, Product product, String currencyCode, String[] responseGroup,
IList`1& errorArray) at
Mediachase.eCF.BusFacade.Filters.Products.ProductSearchContentFilter.CreateProductItemsBySearch(SiteSearchRequest
request, IList`1& errorArray) at
Mediachase.eCF.BusFacade.ContentFilters.PopulateProductSearchItem(SiteSearchRequest
request, IList`1& errorArray) at
Mediachase.eCF.BusFacade.SiteManager.SiteSearch(SiteSearch search) at
Mediachase.eCF.ClientLib2.ClientCatalog.SearchProducts(String searchIndex,
String keywords, String[] searchFields, KeyValueAttribute[] filter, Int32
categoryid, Boolean incSubCategoryNodes, Decimal minprice, Decimal maxprice,
String sort, Boolean sortOrder, String wherest, Int32 itemsPerPage, Int32
currentPage, String[] responseGroup, Int32& totalRecords, ErrorsError[]&
errors)
|
|
-
Tue, Jul 22 2008, 1:11 PM |
-
jasonkim
-
-
-
Joined on 10-03-2007
-
-
Posts 51
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
Hi Victor,
Sorry for responding so late, but are you still experiencing the latest problem?
Thank you,
Mediachase Software
|
|
-
Thu, Aug 07 2008, 5:31 AM |
-
victorgunta
-
-
-
Joined on 04-21-2008
-
-
Posts 72
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
Yes, i do. However, not every product category behaves this way. Some of them are working just fine.
I read somewhere on your forum about serializing product meta-data by re-saving them. Could this be the problem ?
|
|
-
Fri, Aug 22 2008, 1:07 AM |
-
victorgunta
-
-
-
Joined on 04-21-2008
-
-
Posts 72
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
|
-
Fri, Aug 22 2008, 1:30 AM |
-
Sasha
-
-
-
Joined on 01-01-2000
-
Los Angeles
-
Posts 1,064
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
That shouldn't be a problem. You said SQL Server is a separate machine. If so, then what is the memory limit set for IIS application if any? And what is the amount of available memory on the web server?
|
|
-
Fri, Aug 22 2008, 6:19 AM |
-
victorgunta
-
-
-
Joined on 04-21-2008
-
-
Posts 72
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
The server has 2gb of memory. And the application runs in it's own Application Pool. I don't think there are any memory limits to it. Is there a way i can find this ?
|
|
-
Tue, Aug 26 2008, 1:08 AM |
-
ga
-
-
-
Joined on 07-25-2007
-
-
Posts 193
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
In IIS 6/7 right click on your application pool, choose "Properties" and tab "Recycling". At the bottom of the opened tab there will be block "Memory recycling".
|
|
-
Tue, Aug 26 2008, 1:25 AM |
-
victorgunta
-
-
-
Joined on 04-21-2008
-
-
Posts 72
-
-
|
Re: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
The only checked option is "Recycle worker process at the following time : 05:00"
|
|
Page 1 of 2 (18 items)
1
|
|
|
|