Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,
I have a problem of memory leaks in my application when its running.
The Application Uses CPU Memory like this.

Minimum Percentage is 6%
Maximum Percentage is 35%
Maximum Peak Memory is 90MB

I have used ANTS Memory Profiler for Analyzing Memory Leaks in the Application.
But I don't know how to reduce the memory usage of Application while running.

Please Any can give me solution as soon as possible.


Thanks and Regards
Ramesh N
Posted

1 solution

Well, you're pretty much on your own because we can't possibly help you with memory leaks in your code because we don't have a copy of it. It's up to you and your ability to make use of the debugger.

All you can do is become familiar with how memory is used in a .Net app, where potential problem areas exist, and mitigate them.

One problem area is creating event handlers and then not releasing them, or creating a bitmap or other GDI-like resource without disposing them.

Since we don't knwo what your mystery app does, we can't say "go look at this" or "go look at that".

As far as non-leaking memory consumption, try allocating stuff just one time. Repeated allocation/deallocation fragments memory and can stop an application just as completely as memory leaks.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900