Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Recommend a memory profiler

Posted on 2006-06-22
5
Medium Priority
?
319 Views
Last Modified: 2010-04-16
Hi,

this isn't a mega-points question because I'm only interested in opinions here.

We have a large application that has been created with mostly managed code, although it also runs unmanaged code, some of which we have written, other parts are libraries (eg device drivers).

The application works with heavy Bitmap object traffic  - creating, and destroying where it seems appropiate. However, we are getting some pretty big memory leaks. Some of the areas of leaks can be found using common sense, others are harder to find.

I'd like to know about tools that we could use to help us with the problem. I am aware that for unmanaged code there are some pretty powerfull profilers out there that can even tell you exactly where the application is leaking - compiling the project with the profiler libs etc...

For .NET however, these kind of highly developed tools are hard to find. I have seen one called

.NET Memory Profiler (http://www.scitech.se/)

Any comments?
Any comments on the practise of handling Bitmap objects in .NET?

Thanks.
0
Comment
Question by:Daeljan
  • 2
5 Comments
 
LVL 21

Assisted Solution

by:mastoo
mastoo earned 80 total points
ID: 16961378
The Compuware product works nice, although it is expensive.  I recently eval'd one from red-gate.com and it looked good also and is relatively cheap.
0
 
LVL 11

Accepted Solution

by:
vo1d earned 120 total points
ID: 16964372
this one is very nice:
http://www.automatedqa.com/products/aqtime/

another one is this one, but i prefer the first:
http://www.red-gate.com/products/ants_profiler/
0
 
LVL 11

Expert Comment

by:vo1d
ID: 16964408
are those bitmaps managed or unmanaged objects?
if its managed, have you called the bitmap dispose() method?
you have to keep in mind, that also you have called a dispose method the memory is not freed just in time like a free in c or a delete in c++.
the object is marked for cleanup and will be moved by time in the next generation so the gc will free that memory at any time.
in the worst case, the gc will free that memory if the system memory got low.

0
 
LVL 2

Author Comment

by:Daeljan
ID: 17120030
Thanks for the insiight. Points spit according to the contribution - like I said originally, theres no 'right' answer to this question.

BTW, we bought the SciTech profiler in the the end - not bad for the money. I think that .NETs approach to handing bitmaps with regards to memory management is badly implemented, but thats just my opinion.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question