health-monitoring

Can “EndResponse” increase performance of ASP.Net page

∥☆過路亽.° 提交于 2019-11-26 12:45:35
问题 I have a Response.Redirect in my Employee page. It redirects to Salary page. Response.Redirect (\"Salary.aspx\"); It was working fine until I added exception handling as below. try { Response.Redirect (\"Salary.aspx\"); } catch(Exception ex) { //MyLog(); throw new Exception(); } //Remaining code in event handler This caused a new exception saying \"Thread was being aborted”. I came to know that this can be avoided by setting endResponse as false for the redirect. Response.Redirect(url, false)

How to monitor c3p0 connections

本秂侑毒 提交于 2019-11-26 12:43:38
问题 I am using Hibernate in my JBoss war, using c3p0 for connection pooling, both configured within a hibernate.cfg.xml config file in my classpath <property name=\"connection.provider_class\">org.hibernate.connection.C3P0ConnectionProvider</property> I\'ve seen server.log generates lines with interesting information about the connection pool: DEBUG [com.mchange.v2.resourcepool.BasicResourcePool] trace com.mchange.v2.resourcepool.BasicResourcePool@63f5e4b6 [managed: 10, unused: 9, excluded: 0]