locked
Interesting RAM size related Out Of Memory exception RRS feed

  • General discussion

  • Hi,

    We have a desktop data processing app running on XP SP2, implemented in C# with VS2005. It was running well for about one year in production. But recently, we got "Out Of Memory" exception with some particular data sets on some machines.

    We noticed that the exception happened when actually lots of memory is still available (We rebooted the machines to avoid memory fragments). Also it is interesting to see that the exception only happened on machines with 2G RAM or more. The app runs well with the same data set on machines with 1G RAM or less. The observation could be reproduced on quite a few machines including laptops.

    Also I did some experiment inside Virtual PC. The app also runs well on a clean XP SP2 (only installed OS from CD and had .NET framework 2.0 installed, no Windows updates patched) with 2G RAM set up.

    I suspect that some Windows updates impact .NET runtime memory management. I hope if someone with similar experience will give me a hint or confirm that it is a known issue for .NET.


    Thanks,

    Lili Deng
    Friday, April 4, 2008 11:26 PM

All replies

  • To troubleshoot this issue, we really need the source code and the detailed repro steps to reproduce the problem, so that we can investigate the issue in house. It is not necessary that you send out the complete source of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business logic from it.

    Sunday, April 6, 2008 4:25 AM
  • We are changing the issue type to “Comment” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question” by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions. 

    Thank you! 


    Thursday, April 10, 2008 4:23 AM
  • Thank you for your feedback.

    It is difficult for us to remove the business logic and still make the exception happening. So we decided to stay with workaround we found so far. I will share progress of the issue if there is any.
    Thursday, April 10, 2008 11:50 PM