Hello, we are developing an ERP solution with ASP.net, DataObjects.net and SQL Server 2008 R2, we are using Domain.Build to build the access point for one or more database(users can login to more than one database), the problem is that, when calling Domain.Build(companyDomainConfig); the memory usage increases dramatically. i have three databases(each one point to a company), when build the first company the IIS w3wp.exe service memory increases from 171m to 1593m, next companies building increase by 400:500m. is that reasonable and if not, what should we do to prevent this? we are using 1. Dataobject.net V4.4.1 build 7999. 2. SQL Server 2008 R2 3. IIS 7.5 4. .Net 4.0 |
Hello Ahmad, DataObjects.Net 4.4.3 is released. It should fix memory consumption problem. See downloads section. |
We have some important fixes related to memory usage in recent releases, could you please try with 4.4.3 RC3?
Hello Denis, i have downloaded the rar file from http://dataobjects.net/downloads/Download.aspx?Upcoming/DataObjects.Net-4.4.3_RC3.rar then i replaced my program file folder with the extracted files but it gives this error during compile: "PostSharp targets have been imported twice in the project. Be sure to set the 'DontImportPostSharp' property to 'True' when you import PostSharp manually, so that it does not get imported automatically".
is this a problem with the release or i do somthing wrong?
We switched to PostSharp 2.1 (from 2.0), you likely have PS 2.0 installed. To fix the issue you can either uninstall PS 2.0 or add <dontimportpostsharp>True</dontimportpostsharp> MSBuild property to your projects with persistent types.
i installed 4.4.3 RC3 but the problem still exists, but i think there is a very little improvement(only decrease in a few megabytes).
to build the domain of the first database (company) it takes nearly 1.1 GB of w3wp.exe IIS process(excluding memory size before execute build process), then after building the second database it increased nearly by 565 M.
Could you please write to support@ for further investigation?