Memory leak in performance testing

Neha Nirmal's picture
Neha Nirmal asked on December 11, 2015 - 1:09am | Replies (1).

Can anyone please explain me memory leak in performance testing in detail? with an example will be much helpful.

1 Answer

Matthew Heusser's picture

A memory leak happens when software allocates memory but does not clean it up. In performance testing, you'll may see the operation that creates the 'leak' called over and over again. Memory monitoring tools ('top' in unix or process monitor in windows) will show memory use increase and increase until something breaks - the system will become incredibly slow, etc.

If you can identify the leaky process, performance /testing/'s job is done. It's time for something else, like performance investigation to find the problem code. Profiling tools can help at this point.

 

StickyMinds is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.