I do not post many questions but I get to the answers by myslef. Should have tried more and then post here. Thank you guys if you are looking out for a solution. I fixed it by changing memory setting. I had to do a number of tests on these memory settings and finally one of them worked.
So for this deployment I kept 1024MB for XMx and perm size of 412 MB and it worked.
Cheers!