Heap memory parameters are configurable now

Closes-Bug: #1364469
Change-Id: Id6383b5ed7b6841a6ecbc79f9ea4823f18c10c19
Merge "Heap memory parameters are configurable now"