well, there's a lot of things that can cause a lot of entities to be
loaded.

your mappings could be loading all of the child entities.
your queries could be bringing back way too much information.

So question would be:

What's the db schema look like?
what do your mappings look like?
how are you querying the db?


Another good product is NHProfiler (http://nhprof.com/).  It will show you
what it going on with your session and the sql sent to the db.

you could also turn up logging inthe web.config to log the sql statements
directly from Nhibernate.



On Wed, Feb 9, 2011 at 1:28 PM, Paul Allington <
[email protected]> wrote:

> The first is how it's working - in fact I think I may have originally read
> that article to get the httpmodule to work.
>
> *
> *
>   *Paul Allington [image: See my 
> profile]<http://www.intelligentpenguin.co.uk/about/theteam/paul>
> *
> *T:* 01799 522 665
> *M:* 07973 145 754
> *E:* [email protected]
> *W:* www.intelligentpenguin.co.uk
> *W:* www.creative-penguin.co.uk
>  [image: Intelligent Penguin] <http://www.intelligentpenguin.co.uk>  For
> highly creative & technically brilliant websites, and on-line management
> systems
>
> ------------------------------------------------------------------------------
>   My
> profiles: [image: Facebook] <http://www.facebook.com/paulallington>[image:
> LinkedIn] <http://uk.linkedin.com/in/paulallington>[image: 
> Twitter]<http://twitter.com/paulallington>
> Contact me: [image: Google Talk/]phallington [image: Skype/]paul-allington
> [image: Y! messenger/]paul_allington
>
>
>
>
> On Wed, Feb 9, 2011 at 6:21 PM, John Davidson <[email protected]>wrote:
>
>> Are you using SessionPerRequest as described in
>>
>>
>> http://nhforge.org/blogs/nhibernate/archive/2010/07/11/nhibernate-bootstrapper-unitofwork-and-sessionperrequest.aspx
>>
>> If you are using that threading then check what FlushMode is.
>>
>> Also the NHibernate 3.0 Cookbook is an excellent reference NHibernate 3.0
>> Cookbook <https://www.packtpub.com/nhibernate-3-0-cookbook/book>
>>
>> <https://www.packtpub.com/nhibernate-3-0-cookbook/book>John Davidson
>>
>> On Wed, Feb 9, 2011 at 1:15 PM, Paul Allington <
>> [email protected]> wrote:
>>
>>> It's in an asp.net web app - it's just a simple architecture at the
>>> moment
>>>
>>> *
>>> *
>>>   *Paul Allington [image: See my 
>>> profile]<http://www.intelligentpenguin.co.uk/about/theteam/paul>
>>> *
>>> *T:* 01799 522 665
>>> *M:* 07973 145 754
>>> *E:* [email protected]
>>> *W:* www.intelligentpenguin.co.uk
>>> *W:* www.creative-penguin.co.uk
>>>  [image: Intelligent Penguin] <http://www.intelligentpenguin.co.uk>  For
>>> highly creative & technically brilliant websites, and on-line management
>>> systems
>>>
>>> ------------------------------------------------------------------------------
>>>   My
>>> profiles: [image: Facebook] <http://www.facebook.com/paulallington>[image:
>>> LinkedIn] <http://uk.linkedin.com/in/paulallington>[image: 
>>> Twitter]<http://twitter.com/paulallington>
>>> Contact me: [image: Google Talk/]phallington [image: Skype/]paul-allington
>>> [image: Y! messenger/]paul_allington
>>>
>>>
>>>
>>>
>>> On Wed, Feb 9, 2011 at 6:13 PM, John Davidson <[email protected]>wrote:
>>>
>>>> What are the general archictural components? and what is your threading
>>>> model?
>>>>
>>>> John Davidson
>>>>
>>>>
>>>> On Wed, Feb 9, 2011 at 12:49 PM, Paul <[email protected]>wrote:
>>>>
>>>>> Hello
>>>>>
>>>>> I'm having issues with NHibernate and the amount of memory it uses.
>>>>> I've tried turning off all caching, however the data objects that are
>>>>> loaded in each session are still persisting in memory, which isn't
>>>>> great.  Memory profiling shows that they're being held on to by the
>>>>> factory (the session has been disposed)
>>>>>
>>>>> NHibernate seems to just consume about 60MB of my app with no reason -
>>>>> and about 30MB of that appears to be in unmanaged code...
>>>>>
>>>>> Any ideas?  I'm tearing my hair out!
>>>>>
>>>>> Thanks, Paul
>>>>>
>>>>> --
>>>>> 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.
>>>>>
>>>>>
>>>>  --
>>>> 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.
>>>>
>>>
>>>  --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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