title: How can I figure out why this process is terminated On Ubuntu16.04
body: <p>I tried to run a python script which trains a lstm model on a server.</p>
  
  <p>Here is the server's os information.
  <a href="https://i.stack.imgur.com/xOOln.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xOOln.png" alt="Here is the server&#39;s os information."></a></p>
  
  <p>However,everytime before the traning ends,the process will be terminated.</p>
  
  <p>the screenshot of the terminated process
  <a href="https://i.stack.imgur.com/dwDlW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dwDlW.png" alt="the screenshot of the terminated process"></a></p>
  
  <p>(Thanks to Barmar's advice,I update some command)
  <a href="https://i.stack.imgur.com/5drKX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5drKX.png" alt="information of the terminated process &amp; memory used"></a></p>
  
  <p>But I found that the cmd 'ps -aux' isn't consistent to the cmd 'free -mt'&amp;'vmstat -a'.</p>
  
  <p>I suspect If the kernel killed the process (because the system ran out of memory).So I try to find the kernel log.</p>
  
  <p>But there's no piece of log file that I want listing under /var/log.</p>
  
  <p><a href="https://i.stack.imgur.com/JPQDZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JPQDZ.png" alt="the listed files under /var/log"></a></p>
  
  <p>Can anyone help me find what really happened in the running of the python script?
  Or tell me how to find some logs recording why this process is terminated?</p>