How to minimize physical and virtual memory consum

This is a discussion on How to minimize physical and virtual memory consum within the Tech Board forums, part of the Community Boards category; Hello All, I have a Window service developed using Visual Studio .Net 2003. I am using VC++ .Net for the ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    10

    How to minimize physical and virtual memory consum

    Hello All,

    I have a Window service developed using Visual Studio .Net 2003. I am using VC++ .Net for the service development. The physical and virtual memory consumption is very high. How should i minimize this memory consumption. Please give me some clue to achieve this.

    Thanks

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Firstly, what does the service do, and how does it do it?

  3. #3
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Just to get you started: http://www.catch22.net/tuts/minexe.asp

    Yes executable does make a difference, especially when your program is imaged into RAM.

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Or perhaps it starts small and then slowly increases over time?
    The answer in this case is obvious, fix your code to stop it leaking memory.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,682
    Have u got some sort of recursion programming paradigm used in yoour code. You stack is building up. Check out.

    ssharish2005

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with insert/delete binary search tree
    By Nazgulled in forum C Programming
    Replies: 39
    Last Post: 03-25-2009, 04:24 PM
  2. difference between a segment and a page
    By cs32 in forum Tech Board
    Replies: 21
    Last Post: 03-05-2008, 02:09 PM
  3. How to minimize physical and virtual memory consum
    By dattaforit in forum Windows Programming
    Replies: 1
    Last Post: 06-20-2007, 03:38 AM
  4. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM
  5. Is it necessary to write a specific memory manager ?
    By Morglum in forum Game Programming
    Replies: 18
    Last Post: 07-01-2002, 01:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21