Hi Mamatha,
There is already a thread over Out of Memory Exception, please refer to it here :
Regards, V