Django server killed frequently
<p>I'm developing a Django project and testing it on a dedicated server. 
The project is running on:</p>

<ul>
<li>django 1.9.6</li>
<li>virtualenv</li>
<li>python 2.7</li>
<li>cx_Oracle 5.2.1</li>
</ul>

<hr>

<p><strong>Running</strong> </p>

<pre><code>python manage.py runserver 192.168.30.17:8080 &amp;
</code></pre>

<p>all goes well. Project running and with <code>ps aux</code> I get, for example:</p>

<pre><code>root      8437  0.0  0.9 461108 39036 pts/0    S    15:17   0:00 python manage.py runserver 192.168.30.17:8080
root      8861  3.5  1.5 1319364 64232 pts/0   Sl   15:24   0:14 /new_esmart/esmart_env/bin/python manage.py runserver 192.168.30.17:8080
</code></pre>

<hr>

<p><strong>THE PROBLEM: Frequently server goes down with no error showed on shell</strong>. I simply receive: 
<code>Killed</code></p>

<p>How can I retrieve more information to find the cause of this killing?</p>

<p><strong>NOTE</strong>: No gunicorn et similia solution right now. I have to use django server  for the next hours</p>

<p><strong>Temporary solution</strong></p>

<p>A script that respawns the server when killed</p>

<pre><code>until python manage.py runserver 192.168.30.17:8080; do
   echo "Server Django crashed with exit code $. Respawning ..."&gt;&amp;2
   sleep 2
done
</code></pre>

<p>From the documentation on the django development server 
<a href="https://docs.djangoproject.com/en/1.10/ref/django-admin/" rel="nofollow">https://docs.djangoproject.com/en/1.10/ref/django-admin/</a></p>

<blockquote>
  <p>DO NOT USE THIS SERVER IN A PRODUCTION SETTING. It has not gone
  through security audits or performance tests. (And thatâs how itâs
  gonna stay. Weâre in the business of making Web frameworks, not Web
  servers, so improving this server to be able to handle a production
  environment is outside the scope of Django.)</p>
</blockquote>

<p>Of course it get's killed frequently, it's not designed to be kept running for long hours. Set up one of the standard solutions such as gunicorn+nginx or apache+uswgi etc.</p>

python linux django virtualenv