]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4769 Add JDBC connection pool configuration and status info
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 5 Aug 2014 08:35:41 +0000 (10:35 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 5 Aug 2014 08:35:41 +0000 (10:35 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb

index 8d9f74c1a9bd3ee3286ea9438dd9a576a55ffd62..a6e4f5dd0d992077b6a0408462583b0ccd706e9b 100644 (file)
@@ -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) }