Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 119017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:35:11+00:00 2026-05-11T03:35:11+00:00

I am working on a web app using C# and asp.net I have been

  • 0

I am working on a web app using C# and asp.net I have been receiving an out of memory exception. What the app does is read a bunch of records(products) from a data source, could be hundreds/thousands, processes those records through settings in a wizard and then updates a different data source with the processes product information. Although there are multiple DB classes, right now all the logic is in one big class. The only reason for this, is all the information has to do with one thing, a product. Would it help the memory if I divided my app into different classes?? I don’t think it would because if I divided the business logic into two classes, both of the classes would remain alive the entire time sending messages to each other, and so I don’t know how this would help. I guess my other solution would be to find out what’s sucking up all the memory. Is there a good tool you could recommend??

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:35:11+00:00Added an answer on May 11, 2026 at 3:35 am

    Are you using datareaders to stream through your data? (to avoid loading too much into memory)

    My gut is telling me this is a trivial issue to fix, don’t pump datatables with 1 million records, work through tables one row at a time, or in small batches … Release and dispose objects when you are done with them. (Example: don’t have static List<Customer> allCustomers = AllCustomers())
    Have a development rule that ensures no one reads tables into memory if there are more than X amount of rows involved.

    If you need a tool to debug this look at .net memory profiler or windbg with the sos extension both will allow you to sniff through your your managed heaps.

    Another note is, if you care about maintainability and would like to reduce your defect count, get rid of the SuperDuperDoEverything class and model information correctly in a way that is better aligned with your domain. The SuperDuperDoEverything class is a bomb waiting to explode.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web app(ASP.NET 2.0 using C#) that I am working on. In
I´ve been working with on a Asp.NET web app using jQuery to generate a
I am working on a web-app with ASP.NET MVC3. We are using nHibernate with
I am working on an asp.net web app, and I have few classes in
I have an ASP.NET application that does a large database read. It loads up
I have an ASP.NET web app that places several string data into an object
I'm working on my first ever ASP.Net project, and I seem to have been
I'm using VS2010,C#,SQL Server to develop my ASP.NET web app, although this is not
I have an iPad app that submits orders to an ASP.NET MVC web site
I'm wanting to use an ORM tool for an asp.net web app I'm working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.