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 269047
In Process

The Archive Base Latest Questions

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

I have an application (winform exe) that I run several times. Does this mean

  • 0

I have an application (winform exe) that I run several times. Does this mean that I have share assemblies or does each instance have its own copie of the assemblies? When I run the app, it uses about 30MB (in task manager) and when I run another copy of the app it uses another 30MB.

How do I work out how much of the memory it is using and if I can reduce the over usage of memory if I run several instances?

Regards
JD.

  • 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. Editorial Team
    Editorial Team
    2026-05-11T23:46:35+00:00Added an answer on May 11, 2026 at 11:46 pm

    It’s complicated.

    Start by reading my recent article on virtual memory.

    http://blogs.msdn.com/ericlippert/archive/2009/06/08/out-of-memory-does-not-refer-to-physical-memory.aspx

    OK, now that you have some understanding of how virtual memory works, you can understand how the operating system loads DLLs into memory. Suppose you have two processes that both need a particular page of Foo.DLL. The operating system will load that page into physical memory ONCE and then map that physical page into the virtual space of both processes. So the amount of physical memory that is being used is, say, a 4KB page. But that 4KB shows up in BOTH processes. It is likely that most of your 30MB is shared physical memory.

    The way to find out is to be more sophisticated about your use of task manager. You want to add some columns there and look at both “Working Set” and “Private Working Set”. “Working Set” is the total number of pages, private AND shared, currently in use by that process. “Private Working Set” is the number of those which are not shared.

    To lower your memory usage — well, first off, start by understanding why you care. Machines have plenty of memory these days and 30MB is a relatively tiny amount of memory. Unless you can find a compelling customer-focused reason to work on this, then work on something else, like making your program faster or adding more features. Assuming that you do have a reason to care, get yourself some tools — particularly, memory profilers. The .NET memory profiler can tell you where all your allocations are and how big they are.

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

Sidebar

Related Questions

I have written a small WinForm application in C#. The EXE that is made
I have C# winforms application that needs to start an external exe from time
I have my winform application gathering data using databinding. Everything looks fine except that
I have an c# winform application that runs under a local account but needs
We have an in house winform application that is used by about 20 users
i want to run an application made in c# winform through service.i have done
I have Winform application,which does some operation in loops (file access, copy file, ....).
i have a winform application in which i have a lot of controls that
I have a winform application (.NET 2.0 C#). From this application, I want to
I have a winform application that i desiged in VS2005 that works fine in

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.