This thread is 3 years old....just sayin'

Yes, one session factory per tenant is preferable, and yes, they consume
too much memory. This is something that needs to be addressed.

A possible remedy could be to spin up new session factories in the
background (on a different thread) and perform a bit of recycling logic.

/G


2014-04-10 16:13 GMT+02:00 Gustavo Rocha <[email protected]>:

> i dont agree that think about memory price solve the problem.
>
> Of course it is cheap.
> But the fact is that NH i using much more memory actually than other
> versions. Is just BuildSessionFactory.
>
>
> Take attention on my problem:
>
> I use FluentNH, about 400 entities, use Envers for auditory and have a
> multi tenancy application. One session factory per host.
> Each session factory consumes about 150mb.
> We have comercial plans to get hundreds of clients.
>
> Since I have hoirzontal or vertical scalabilty on hardware thats a LOT of
> memory.
>
> I think everyone agree that I must have a singleton ready sessionfactory
> per client, right?!
>
> I tried to put these sf´s in a standalone service who configure all and
> serve my webapps. But still... a LOT o memory. In the service and in the
> apps
>
> I am trying everything to solve this without leaving my requirements.
>
>
>
> Em quarta-feira, 18 de maio de 2011 17h49min42s UTC-3, Fabio Maulo
> escreveu:
>
>> which is the cost of 2GB DDR3 1333Mhz in your country ?
>> How many hours you are spending to solve this ""problem"" ?
>> Which is the price of each of your hours ?
>>
>> Perhaps would be better if you talk with your boss.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
>
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/nhusers.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to