#24549: Django with Oracle backend - Application gets killed very often in 
Ubuntu
----------------------------------------------+--------------------
     Reporter:  rajmohanh                     |      Owner:  nobody
         Type:  Bug                           |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  1.6
     Severity:  Normal                        |   Keywords:
 Triage Stage:  Unreviewed                    |  Has patch:  0
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+--------------------
 Hi,

 Our system is an application which runs on Ubuntu 14.04.2 LTS/ Apache /
 Django / Oracle / cx_Oracle.

 The application gets killed very often, as many requests are sent to the
 application. We have tried our level best to overcome this issue, but we
 couldn't. After debugging, we found that it is happening due to DB
 Connection Issues.

 The same issue can be seen in the development server also - as given below

 {{{
 [29/Mar/2015 11:47:17] "POST /*/ HTTP/1.1" 200 24632
 [29/Mar/2015 11:47:17] "POST /*/ HTTP/1.1" 200 24632
 Killed
 (env)rajmohan@o:~/src$ ==
 }}}

 We could reproduce this problem by running the following code in
 python manage.py shell


 {{{
 import threading

 class MyThread(threading.Thread):
     def run(self):
         name = User.objects.all().first().username

 for i in range(90):
    th = MyThread()
    th.start()
 }}}

 This will kill the application as  -
 In [4]: Killed

 This issue is there in Apache Server  also.

 Please note that this happens only in Oracle version - In sqlite there are
 absolutely no issues.
 The same issue does not happen on Windows. Only in our linux boxes.

 We tried connection pooling etc, but that didn't solve the problem. Please
 let me know whether we are doing something very wrong?

--
Ticket URL: <https://code.djangoproject.com/ticket/24549>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.82498fa835e159a814db0b21ac30ed12%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to