#14298: maximum open cursors exceeded on Jython and Oracle
---------------------------------------------------+------------------------
Reporter: stephanekonstantaropoulos | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: 1.1
Resolution: | Keywords: Oracle
Jython
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by jbaker):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Most likely this is the problem: Jython does not do deterministic garbage
collection, unlike CPython. In CPython, when a variable goes out of scope,
it will be immediately GCed because of ref counting. To do the same in
Jython, use either the with-statement or
{{{
try:
# acquire resource
finally:
# close resource
}}}
Hope that helps.
--
Ticket URL: <http://code.djangoproject.com/ticket/14298#comment:1>
Django <http://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 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/django-updates?hl=en.