Hi All,

I'm suffering an issue with NH and oracle running out of cursors (a 
thousand). My application does a lot of tracking in database, it's 
multithreaded and with some concurrence I'm running out of cursors. I'm 
using regular and stateless sessions and I'm almost shure that I close all 
them at the end of every thread work. I'm using a ThreadStatic Dictionary 
of connections in ObjectContextFactory to create them only one.

I have request support to a DBA but he says it's something related with my 
application.

Does somebody know apart from not closing sessions what else could cause 
this massive cursors leakage? I have ayende's profiler but I don't now how 
it can help me with this, I can see when a session was open but never when 
it was closed.

I'm closing sessions this way

            foreach (string key in StatelessSessions.Keys)
            {
                StatelessSessions[key].Close();
                StatelessSessions[key].Dispose();
            }

Thnaks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/h3H9TsTE_rsJ.
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/nhusers?hl=en.

Reply via email to