Thanks Simon.
I realized it and created the new topic for this Running Out of Memory in an application, Will surely take care of this in future posts.
Regarding Out Of memory , we switched to Java SDK 2.1.2 with buffer pool disabled and things started working fine.
Thanks,
Bharat