Memory leak SF BO with DevExpress ASPxDataGridView


Author
Message
ChanKK
ChanKK
Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Hi,

I am facing memory leak problem when using SF BusinessObject and DevExpress ASPxDataGridView.

I have simple test project, which only has one BO, bind to ASPxDataGridView. It does nothing complicated, just load all records in Page_Load if not IsPostBack.



I found that, the memory usage would become double when I just "refresh" the page. I also used dotTrace profiler and found that # of BO instances keep increasing. I suspect it is the same issue with the post http://forum.strataframe.net/Topic20903-8-1.aspx.



I have prepared sample project and the dotTrace memory profiler files for your reference. MemoryLeak1.dtm is first load memory snapshot and MemoryLeak2.dtm is 2nd snapshot after refresh.



As the file size > 30MB, please download it from http://www.visualsolutions.com.my/blog/chankk/WebApplication6.zip



Hope you could get back to me as soon as possible! It is very urgent!



Thank you
Replies
ChanKK
ChanKK
Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Hi
After so many months/years of this issue solved, we found memory leak again after upgrade to SF 1.7.0.7.. I have attached the sample project, database and also snapshot of the memory profiler captured using redgate tool.

Just open and run the project, keep reload (F5) the page, you will found that memory usage keep increasing, use any memory profiler will found that some object like BOs, descriptors are not released.

Our SF dll is compiled using 1.7.0.7 source code, as we need to solve the issue convert PrimaryKey value to string manually.
We are using DevExpress 10.1.4.



Please advice. Urgent!!
Edited 15 Years Ago by ChanKK
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Chan,

For whatever this is worth, we have not changed anything in this regard.  I am willing to bet that you have an old assembly someplace, or something within your environment has changed.  I will look at this, but I find it strange that this would just suddenly "reappear."
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Chan,

I am confused as to what your application is trying to do.  You supplied the nwind.mdb database, but your connection string is an SqlDataSourceItem (not Access), so I am not sure what database I am supposed to connect to.  Since your test app is wired to look at an SQL database I am assuming that you have an MDF somewhere that I should be connecting to.  I will look through all of the attached files again, but please advise.  Thank you.
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Just to update you, I noticed that the nwind.mdb table name was Employees (with an "s") and your BO was mapped without the "s".  Changed this and it still did not work.  45 minutes into it and still can't make your sample work.  Sorry.  I am going to wait until I receive more details about what database I am supposed to connect to.

One other thing I noticed is that this is not a StrataFrame wired web application.  Clearly you can do this, but you may have Session issues, etc. since we wire things up through the ApplicationBasePage and the global.asax.  I noticed that you created your own TestBasePage.cs....this is really not related to the issue, just an observation.

Awaiting further instruction.  Thanks.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
ChanKK - 16 Years Ago
Trent L. Taylor - 16 Years Ago
ChanKK - 16 Years Ago
Trent L. Taylor - 16 Years Ago
ChanKK - 16 Years Ago
Trent L. Taylor - 16 Years Ago
                         Hi,
May I know any update? Do you think it could be solved in...
ChanKK - 16 Years Ago
                             We are looking at this right now and trying to reproduce. Should know...
Trent L. Taylor - 16 Years Ago
                                 Just FYI, your sample is missing the BusinessobjectLibrary6 project....
Trent L. Taylor - 16 Years Ago
                                     Hi,
I have attached the missing project.
Beside, I spent...
ChanKK - 16 Years Ago
                                     Sorry that this has taken so long, but in this instance, there is no...
Trent L. Taylor - 16 Years Ago
                                         Hi,
Shall you please test using DevExpress 8.2?
I will ask...
ChanKK - 16 Years Ago
                                         [quote][b]Trent L. Taylor (03/18/2009)[/b]

Finally, the...
ChanKK - 16 Years Ago
                                             That particular method doesn't play into this. However, we have made a...
Trent L. Taylor - 16 Years Ago
                                                 Hi,
I have tested with the fix you sent, but when refresh the...
ChanKK - 16 Years Ago
                                                     Sorry, this exception was easily reproducable and we already have a...
Trent L. Taylor - 16 Years Ago
                                                         Hi,
I tested it and it fixed the problem. I will release it to...
ChanKK - 16 Years Ago
                                         Hi,
After some more testing, I still found "memory leak". When I...
ChanKK - 16 Years Ago
                                             Chan, The screen shot you provided doesn't do me any good. We have...
Trent L. Taylor - 16 Years Ago
                                                 Hi,
OK, I will prepare sample for it.

However, I would...
ChanKK - 16 Years Ago
                                                     [quote]Does 1.6.6.9 include the memory leak fix as well?[/quote] Yes....
Trent L. Taylor - 16 Years Ago
                                                         Hi,
I have created sample project, which is exactly the same as...
ChanKK - 16 Years Ago
ChanKK - 16 Years Ago
Trent L. Taylor - 16 Years Ago
ChanKK - 16 Years Ago
ChanKK - 16 Years Ago
ChanKK - 16 Years Ago
                         Chan, We have looked at this from a number of angles. I am at a loss...
Trent L. Taylor - 16 Years Ago
                             Hi,
I hope you do not misunderstand me, I do appreciate SF help...
ChanKK - 16 Years Ago
                             Hi,
[quote]Some of your issues are coming from retrieving vast...
ChanKK - 16 Years Ago
                                 Chan, I appreciate your comments. We too appreciate you and your...
Trent L. Taylor - 16 Years Ago
                                     Hi,
Any status?

Beside, as promised I have downloaded...
ChanKK - 16 Years Ago
                                         Hi,
BTW, the error posted just now happen to all page that...
ChanKK - 16 Years Ago
                                             Sorry, one more week past. Any update?

Thank you
ChanKK - 16 Years Ago
                                                 Chan, We have not reproduced your memory leak as we had mentioned in...
Trent L. Taylor - 16 Years Ago
                                                     Hi,
As mentioned in PM, the actual problem of Save transaction is...
ChanKK - 16 Years Ago
                                                         Hi,
After further thinking, don't feel loCommand =...
ChanKK - 16 Years Ago
                                                             Agreed. The Clone should not cause an issue as it creates a unique...
Trent L. Taylor - 16 Years Ago
                                                                 Hi,
Any hint how to troubleshoot on this?

Thank you
ChanKK - 16 Years Ago
                                                                     Well, this thread is getting a bit ambiguous. I was just commenting on...
Trent L. Taylor - 16 Years Ago
                                     Hi,
After some further testing, I think I found the root cause of...
ChanKK - 16 Years Ago
                                         Glad you found a solution. We will take this post into consideration...
Trent L. Taylor - 16 Years Ago
ChanKK - 15 Years Ago
Trent L. Taylor - 15 Years Ago
Trent L. Taylor - 15 Years Ago
Trent L. Taylor - 15 Years Ago
ChanKK - 15 Years Ago
Trent L. Taylor - 15 Years Ago
ChanKK - 15 Years Ago
ChanKK - 15 Years Ago
Ivan George Borges - 15 Years Ago
ChanKK - 15 Years Ago
Ivan George Borges - 15 Years Ago
                         Hi Could you reproduce the memory leak issue? I need solution ASAP....
ChanKK - 15 Years Ago
                             Sorry Chan, not yet.
Ivan George Borges - 15 Years Ago
ChanKK - 15 Years Ago
ChanKK - 15 Years Ago
Ivan George Borges - 15 Years Ago
ChanKK - 15 Years Ago
Ivan George Borges - 15 Years Ago
                         [quote][b]Ivan George Borges (10/29/2010)[/b][hr]Hi Chan. Well,...
ChanKK - 15 Years Ago
                             Thanks for posting, Chan. I will reproduce here just in case we loose...
Ivan George Borges - 15 Years Ago
ChanKK - 15 Years Ago
Ivan George Borges - 15 Years Ago
ChanKK - 15 Years Ago
             Not yet, Chan.
Ivan George Borges - 15 Years Ago
ChanKK - 15 Years Ago
ChanKK - 15 Years Ago
Ivan George Borges - 15 Years Ago
ChanKK - 15 Years Ago
Ivan George Borges - 15 Years Ago
     any updates??
ChanKK - 15 Years Ago
             No Chan, not yet.
Ivan George Borges - 15 Years Ago
ChanKK - 15 Years Ago
Ivan George Borges - 15 Years Ago
Trent L. Taylor - 14 Years Ago
ChanKK - 14 Years Ago
Trent L. Taylor - 14 Years Ago
ChanKK - 14 Years Ago
ChanKK - 14 Years Ago
Trent L. Taylor - 14 Years Ago
ChanKK - 14 Years Ago
ChanKK - 14 Years Ago
ChanKK - 14 Years Ago
Trent L. Taylor - 14 Years Ago
ChanKK - 14 Years Ago
ChanKK - 14 Years Ago
Trent L. Taylor - 14 Years Ago
ChanKK - 14 Years Ago
Trent L. Taylor - 14 Years Ago
ChanKK - 14 Years Ago
Trent L. Taylor - 14 Years Ago
Peter Jones - 14 Years Ago
ChanKK - 14 Years Ago
ChanKK - 14 Years Ago
ChanKK - 14 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search