| || |
How do you test for Memory leaks?
Anyone know How do we test for memory leaks? Can anyone plz provide an example?
Any help is greatly appreciated.
Anyone have a answer to this?
Originally Posted by cyberdome
One of the approaches you might consider following is to set up a performance test that repeatedly executes the same script or set of scripts for a prolonged time (an hour up to 24 hours, depending on the amount of time you suspect is needed to generate memory leaks). Then, monitor the memory usage of your application, web or database server (depending on where you want to make sure there is no memory leak).
Just make sure you don't set the load too high (I would advise to configure it to reflect normal expected load) or you might encounter other problems in your application under test before you detect the possible memory leak.
One possible tool to do this is Apache Jmeter (Apache JMeter - Apache JMeter?), in combination with the PerfMon plugin (Documentation :: JMeter-Plugins.org).
If you have any additional questions, please do not hesitate to ask.
Last edited by basd; 05-24-2014 at 09:51 PM.
There are some tools out there for testing it like Drip/IESieve.
'Soak Tests' are a good way to expose Memory leaks. Google the term and you should find all the information you need.