Nhibernate uses a lot of memory

I have free nhibernate in my application and am trying to find the reason for using high memory. (I say high, it is 60 MB, but it is a web application and it is not very large). Unfortunately, it looks like many of them are in unmanaged memory, so I started to figure it out - and as soon as I took out any calls to nhibernate, memory usage dropped to 11 MB! Why, why is it so exciting for memory? In particular, why will it occupy unmanaged memory?

I was “Googling” all day, and all I can find is messages from people saying, “NHibernate eats memory ...” and answers that say “no, no, no evidence.” NHibernate people deny this?

+4
source share
1 answer

Possible reasons: NHibernate caching.

Check out these articles:

Keep in mind that “more memory usage” should not be “it's the devil”. I mean, some caching or other factors will improve overall performance if there are enough resources on the hosting on the computer.

You can also use this free profiler so that you can check what your memory is wasting - maybe it's not a waste of memory, but the right use for optimizing performance is:

+5
source

Source: https://habr.com/ru/post/1338990/


All Articles