Bug Report DB25601
Visible to All Users

Memory leak in Server mode

created 19 years ago

We have used the grid in the server mode to display a minimum of 200 records and a maximum of 6000 records at a time. We have implemented paging, sorting, editing and inserting functionalities in the grid. The datasource to the grid is a dataset, which changes often in our application. Since we are using Server mode of the grid, for each operation, we hit the server and load the grid again. We are facing some problems in our application wherein we are getting 'Out of memory' exception. From our analysis, we found that this exception DOES NOT occur when we use the CLIENT MODE or the INTERMEDIATE MODE of the grid. We also found that whenever a dataset is assigned to the grid, the system memory increases tremendously. We presumed that the memory allocated to the grid is not getting released whenever a new datasource is assigned to it. We have to use Server mode of the grid to meet our application requirements, but it is posing a serious problem due to this memory issue.
Can you please do an analysis of this problem, and let us know, if in anyway we can overcome this problem? Thanks. Praveen.
Steps to Reproduce:

  1. Select the mode as 'Server-side mode(10000 records)' in the databindings page
  2. Open the task Manager. Click on processes and select aspnet_wp.exe
  3. Do paging and sorting in the grid.
  4. You can note that for each operation the Mem usage increase by a minimum of 3 MB and a maximum of 10 MB
  5. Within few minutes of operation on the grid, the memory usage, suppose it was 90 MB when it started, would have been 140 MB.
Show previous comments (3)

    Can you please let me know the status of this issue?! We need the solution ASAP for our project.
    Thanks,
    Praveen

    Serge (DevExpress Support) 19 years ago

      Dear Praveen,
      Sorry for the delay, but we definitely need more time. The problem looks rather complex and we should perform some tests to clear up the situation. Please keep tracking. We will let you know once we have any news on this subject.
      Thanks,
      Serge

      Serge (DevExpress Support) 19 years ago

        Sorry for the delay in responding. It has taken us some time to perform additional tests. As we can see, the problem is caused by the ASP.NET itself … it does work in such a manner. To understand this, we have created a similar sample with the standard DataGrid and we do see the same results - the memory usage increases on every postback. Though it is lower in comparison to the ASPxGrid, it is well explained by the fact that our Grid has a more complex server-side structure and creates more objects on the server.
        Thanks,
        Serge

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.