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.
精彩评论