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'm working on my first ever ASP.Net project, and I seem to have been
I have an ASP.NET application that does a large database read. It loads up
I am working on a web app in ASP.NET/C# which needs to be scalable
My team and I have a asp.net web forms application and are using several
So far I've been using ASP.NET MVC 3 BETA. Everything was working fine till
I have Ninject working nicely in an ASP.NET MVC3 web application. I'd like to
Im working on an web app using c#. I have in my code the
I'm working on a database for a small web app at my school using
Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app
I'm working on creating a new base class for an asp.net app in order

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.