A very interesting question.
I do not think there is a specific button in Ranorex that is called "Memory leak detection".
Detecting memory leak is a rather complex procedure that involves:
Produce a string of re-producible actions that may cause memory leak
Observe if the system memory depletes over time
Gradually remove one factor at a time to isolate ...
Have a look at the Eclipse Memory Analyzer:
The Memory Analyzer provides a general purpose toolkit to analyze Java heap dumps. Besides heap walking and fast calculation of retained sizes, the Eclipse tool reports leak suspects and memory consumption anti-patterns. The main area of application are Out Of Memory Errors and high memory consumption.
We were testing some memory leaks with the ranorex on eclipse based application with sleak.
Basically we were running few steps over and over and sometimes checked the sleak, if there are any uncleaned handles or other resources.
Ranorex can help you do the boring repeating part, but you must know how to identify the memory leaks. And that is technology ...
Same question asked in stack-overflow [SO]. Please refer this.
There are some tool as well Valgrind, Quick Start Guide here.
Basically memory leakage happen more likely when you hold an Object, long after its purpose has been served.
It is hard, if not possible, to test memory leak with manual testing. Even if you can catch it, you can not prove it.
With a memory leak, an application will run slower and slower, consuming more and more memory.
We need to catch memory leak with tools, depends on which platform you are testing on, there are multiple options to choose from. Check out ...