As far as the RAM usage goes, Android is not Windows. It manages RAM well on it's own.
Now the heat is another story. What are you doing when your phone is heating up? Like samurikuma197 said, the only time that my phone heats up is when I am doing "intensive" type things (gaming, watching videos, etc). If your phone is heating up while idle then there are some issues there.