CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2005
    Posts
    1,828

    Memory Management

    Hi I've experienced a strange problem in one of the server. That because of high virtual memory paging, When there is too much of load, the memory usuage of that server increases almost touches 100% and even after the load is reduced the memory usuage unnecessarily remains high. So I have to develop an MFC / Win32 application that reduces unnecessary memory occupied or remained trapped somewhere in garbage. How can I accompalish this?

    Thanks in Advance

  2. #2
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,656

    Re: Memory Management

    How do you measure memory usage?
    Do you plan to fix memory problems in one app from another app? I am afraid the only way might be to terminate and restart it.
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

  3. #3
    Join Date
    Apr 2005
    Posts
    1,828

    Re: Memory Management

    Task manager, usually there is load in server and usually the server is free from load. But in task manager every time it is showing 100% load means when the load is free still the memory is not free. So we have to develop some application that should release that memory

  4. #4
    Join Date
    Aug 2008
    Location
    Scotland
    Posts
    379

    Re: Memory Management

    Hi,

    So I presume the 100% CPU load and what appears to be a memory leak are both symptoms of a bug in some application or service running on that machine. Alternatively, there is something running on the PC that develops a memory leak whenever the load is 100%, but this seems less likely.

    If you need to fix it from a separate program, the only way I can think of will be to identify the application or service then stop and restart it. Of course, this won't actually be a fix, just a workaround which is likely to cause other problems in future.

    Do you already know what is causing the 100%CPU load and runaway memory allocation? If so, is there some reason you can't debug that program?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured