title: How to check heap size for a process on Linux
body: <p>I was writing some code and it kept crashing. Later after digging the dumps I realized I was overshooting the maximum heap limit (life would have been easier if I had added a check on malloc). Although I fixed that, is there any way to increase my heap size?</p>
  
  <p>PS: A quite <a href="https://stackoverflow.com/questions/2354507/how-to-find-size-of-heap-present-in-linux">similar question</a> here but the reply is unclear to me.</p>