From: Jean-Baptiste Lievremont Date: Tue, 5 Aug 2014 08:35:41 +0000 (+0200) Subject: SONAR-4769 Add JDBC connection pool configuration and status info X-Git-Tag: 4.5-RC1~256 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7318a185991235756bb382b0f1acbacb0cd96f31;p=sonarqube.git SONAR-4769 Add JDBC connection pool configuration and status info --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb index 8d9f74c1a9b..a6e4f5dd0d9 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb @@ -67,6 +67,9 @@ class Server add_property(sonar_info, 'Database Login') { sonar_property('sonar.jdbc.username') } add_property(sonar_info, 'Database Driver') { "#{jdbc_metadata.getDriverName()} #{jdbc_metadata.getDriverVersion()}" } add_property(sonar_info, 'Database Dialect (Hibernate)') { "#{Java::OrgSonarServerUi::JRubyFacade.getInstance().getDatabase().getDialect().getId()} (#{Java::OrgSonarServerUi::JRubyFacade.getInstance().getDatabase().getDialect().getHibernateDialectClass().getName()})" } + add_property(sonar_info, 'Database Active Connections') { "#{Java::OrgSonarServerUi::JRubyFacade.getInstance().getDatabase().getDataSource().getNumActive()}" } + add_property(sonar_info, 'Database Max. Active Connections') { sonar_property('sonar.jdbc.maxActive') } + add_property(sonar_info, 'Database Max. Pool Wait') { sonar_property('sonar.jdbc.maxWait') } add_property(sonar_info, 'External User Authentication') { realm_name } add_property(sonar_info, 'Automatic User Creation') { sonar_property(org.sonar.api.CoreProperties.CORE_AUTHENTICATOR_CREATE_USERS) } add_property(sonar_info, 'Allow Users to Sign Up') { sonar_property(org.sonar.api.CoreProperties.CORE_ALLOW_USERS_TO_SIGNUP_PROPERTY) }