Presuming you are running only the one WSGI application, the normal
thing to try would be to add to Apache config:

  WSGIApplicationGroup %{GLOBAL}

This would eliminate it being an issue with Oracle module working in
sub interpreters. I don't recollect it having such an issue though.

I don't otherwise understand what the code is doing with the Oracle
module to know.

Graham

On 8 December 2011 22:34, [email protected]
<[email protected]> wrote:
> I'm using Apache + mod_wsgi(3.3)  + python 2.7.2 + cx_Oracle 5.1.1 +
> oracle instance client 11g under Windows 2008R2
> next code works corrent from python console:
>
> import cx_Oracle
> import time
> pool = cx_Oracle.SessionPool('fiods','fiods', "omsk-edat-
> db.omsk.luxoft.com:1521/edattst", 1, 3, 2)
> pool.timeout=60
> print str(pool.opened)+" "+str(pool.busy)
> con1 = pool.acquire()
> print str(pool.opened)+" "+str(pool.busy)
> con2 = pool.acquire()
> print str(pool.opened)+" "+str(pool.busy)
> con3 = pool.acquire()
> print str(pool.opened)+" "+str(pool.busy)
> pool.release(con3)
> print str(pool.opened)+" "+str(pool.busy)
> time.sleep(32)
> print str(pool.opened)+" "+str(pool.busy)
> time.sleep(32)
> print str(pool.opened)+" "+str(pool.busy)
> pool.release(con2)
> print str(pool.opened)+" "+str(pool.busy)
>
> but when I start this code under Apache it hang up on
> pool.release(con2)
> any ideas?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/modwsgi?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to