Try to completely disable your own log4net logging and see if nhprof
still throws these alarms.

Francisco A. Lozano



On Thu, Oct 15, 2009 at 08:33, Artur Dorochowicz
<[email protected]> wrote:
>
> I have exactly the same problem, although my app is still early in
> production and I didn't (yet) see my 'server crash'.
>
> I have the same setup: Castle Monorail + Windsor + NHibernate
> Integration Facility, and no manual management of threads.
> Yet, NHProf is alerting about session usage from different threads.
>
> To investigate a bit more I have configured log4net to log thread ids
> for NH loggers and indeed I could see that on concurrent requests
> sessions were disposed on different thread than they had been created.
> I'm not sure if this was the only problem and that that was the only
> thing that triggered NHProf alert.
>
> I'm also looking forward to seeing this resolved or explained if this
> is not a real issue.
>
> Artur
>
>
> On 14 Paź, 22:12, Jan Limpens <[email protected]> wrote:
>> Hi,
>>
>> NhProf keeps telling me that on _some_ requests of my webb app my
>> session/transactions seem to use multiple threads.
>> And the server sometimes enters into a race condition, where too many
>> requests kill sql server (problems with closing transactions that are
>> already disposed of, sounding just like what you would expect from
>> multiple threads per session).
>>
>> Now, nowhere i my code I am even coming close to managing my threads.
>> From my point of view 1 thread should be all I need. I am using
>> Monorails with castle windsor integration. My daos are created per web
>> request, sessions come from castle's NHibernateIntegrationFacility and
>> Automatic Transaction Facility, so these might need my love in some
>> way, but I cannot tell from the outside.
>>
>> Are there some good debug paths to find out what is wrong before I get
>> the next server crash?
>>
>> ....I might have posted this to the castle list, but I suppose most
>> people who could help me there read this list as well, and nh is at
>> the center of all this...
>>
>> --
>> Jan
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to