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

Ask A Question

Stats

  • Questions 123k
  • Answers 123k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer try this expression: ^(\s*,?\s*[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})+\s*$ May 12, 2026 at 1:01 am
  • Editorial Team
    Editorial Team added an answer I think it was there in early versions of MEF… May 12, 2026 at 1:01 am
  • Editorial Team
    Editorial Team added an answer You just need to save them for yourself. Possibly in… May 12, 2026 at 1:01 am

Related Questions

I'm having a problem with mixing managed and unmanaged code. I have created two
To an earlier question of mine, invovling VBC and NAnt with WinForms , I
Does anyone know, or have a link to an article or a step by
I have an application, myprogram.exe, which calls functions and code inside a dll, one
I am creating a small winforms application for distribution to a few people. I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.