title: Cassandra Process Killed by OS
body: <p>I'm using apache cassandra server. After random amount of time my cassandra service stops. when I try to check its status using 'service cassandra status' using centOS7 it shows me the following log</p>
  
  <pre><code>[centos@ip-172-31-24-101 routes]$ service cassandra status
  
  cassandra.service - LSB: distributed storage system for structured data
     Loaded: loaded (/etc/rc.d/init.d/cassandra; bad; vendor preset: disabled)
     Active: failed (Result: exit-code) since Mon 2018-12-31 10:26:13 UTC; 34min ago
       Docs: man:systemd-sysv-generator(8)
  Main PID: 2078 (code=killed, signal=KILL)
  
  Dec 31 05:12:46 ip-172-31-24-101.ap-south-1.compute.internal su[781]: (to cassandra) root on none
  
  Dec 31 05:12:49 ip-172-31-24-101.ap-south-1.compute.internal cassandra[761]: Starting Cassandra: OK
  
  Dec 31 05:12:49 ip-172-31-24-101.ap-south-1.compute.internal systemd[1]: Started LSB: distributed storage system for structured data.
  
  Dec 31 10:25:46 ip-172-31-24-101.ap-south-1.compute.internal systemd[1]: cassandra.service: main process exited, code=killed, s...KILL
  
  Dec 31 10:25:47 ip-172-31-24-101.ap-south-1.compute.internal su[15760]: (to cassandra) root on none
  
  Dec 31 10:25:47 ip-172-31-24-101.ap-south-1.compute.internal cassandra[15746]: Shutdown Cassandra: bash: line 0: kill: (2078) - ...ess
  
  Dec 31 10:26:13 ip-172-31-24-101.ap-south-1.compute.internal cassandra[15746]: ERROR: could not stop cassandra
  
  Dec 31 10:26:13 ip-172-31-24-101.ap-south-1.compute.internal systemd[1]: cassandra.service: control process exited, code=exited...us=1
  
  Dec 31 10:26:13 ip-172-31-24-101.ap-south-1.compute.internal systemd[1]: Unit cassandra.service entered failed state.
  
  Dec 31 10:26:13 ip-172-31-24-101.ap-south-1.compute.internal systemd[1]: cassandra.service failed."
  </code></pre>
  
  <p>How can I figure out what wrong with the Cassandra? why its crashing? </p>