Random issues in ES

Hi all,
i am getting this issues randomly... Is there any solution
available....

  1. Sometimes memory is increasing and getting out of memory
    exception....? How to avoid out of memory issue?

  2. Sometimes one node size is going 0 MB and all data is loading to
    one node.... What is the reason for this issue...?