开发者

How to see all open nhibernate sessions in the application

开发者 https://www.devze.com 2023-01-16 05:16 出处:网络
is there a way to see all open nhibernate session in the application? Why? Because, Ia m getting this error in my MVC开发者_JS百科 application:

is there a way to see all open nhibernate session in the application?

Why? Because, Ia m getting this error in my MVC开发者_JS百科 application: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.

I have done this configuration: http://www.kevinwilliampang.com/2010/04/06/setting-up-asp-net-mvc-with-fluent-nhibernate-and-structuremap/

Please help.


I would think the easiest way will be to hook up NHProf to your application. It will report back via it's UI all open sessions.

See the screenshots page for how the sessions will show up in this tool.


You can see open sessionsin the session section of the nfprof. Closed sessions have duration displayed.

0

精彩评论

暂无评论...
验证码 换一张
取 消