title: My server exited with code 137
body: <p>I wrote a C++ server/client pair using C++11, boost::asio and HDF5. The server was running fine for a some time (2 days), and then it stopped with code 137. Since I executed the server with an infinite loop, it was restarted.</p>
  
  <p>Unfortunately, my error logs don't provide sufficient information to understand the problem. So I've been trying to understand what this code means. It seems there's consensus that this means it's an error of <code>128+9</code>, with <code>9</code> meaning that the program was killed with <code>kill -9</code>. Now I'm not sure at all why this happened. I need help to find out.</p>
  
  <p>By reading further, I found out that it could have been killed by the system because it exceeded a certain allowed execution time, and thus the system killed it. Now this is not so unlikely, since my linux server is provided by my university, so they could be applying some kind of security to do this. I read about something called <code>timeout</code> in linux. <strong>My first question is:</strong> How can I know if this is the cause of the problem?</p>
  
  <p><strong>My second question is:</strong> what should I check also to understand this problem? What would you do? Please advise.</p>
  
  <p>If you require any additional information, please ask.</p>
  
  <p>Thanks.</p>