title: c++ high memory usage application
body: <p>I am running a memory intensive c++ application and it is being killed by the kernel for excessively high memory usage. I would have thought that the os will automatically use swap when ram gets full. However, I don't think my swap space is getting utilised. </p>
  
  <p>I have read the following two questions, but I can't relate it to my problem.</p>
  
  <p>"<a href="https://stackoverflow.com/questions/741834/how-to-avoid-running-out-of-memory-in-high-memory-usage-application-c-c">How to avoid running out of memory in high memory usage application? C / C++</a>"</p>
  
  <p><a href="https://stackoverflow.com/questions/726690/who-killed-my-process-and-why">Who &quot;Killed&quot; my process and why?</a></p>
  
  <p>I will be grateful if someone can give me some hints/pointers to how I may solve this problem. Thanks.</p>
  
  <p>Edit: I am running my application on a 64 bit machine linux machine. My ram and swap is 6gb and 12gb respectively.</p>