OFBIZ-4864
* enabled by default the DebugManagedDataSource wrapper around ManagedDataSource * enhanced the DebugManagedDataSource wrapper to: ** print log messages only at verbose level (instead of always as it was before) ** if possible print additional information about the connection status ** added new method that returns information about the connection pool settings/status * added new static method to DBCPConnectionFactory to return information about the pools * new screen in the webtools where information about each pool/helper is shown The information provided by the screen can be very useful to analyze the status of the connection pools. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338230 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<#--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<h1>Connection Pool Status</h1>
|
||||
|
||||
<#assign groups = delegator.getModelGroupReader().getGroupNames(delegator.getDelegatorName())?if_exists/>
|
||||
<table class="basic-table light-grid hover-bar">
|
||||
<tr class="header-row">
|
||||
<td>Helper Name</td>
|
||||
<td>Num Active</td>
|
||||
<td>Num Idle</td>
|
||||
<td>Num Total</td>
|
||||
<td>Max Active</td>
|
||||
<td>Max Idle</td>
|
||||
<td>Min Idle</td>
|
||||
<td>Min Evictable Idle Time</td>
|
||||
<td>Max Wait</td>
|
||||
</tr>
|
||||
<#assign alt_row = false>
|
||||
<#if (groups?has_content)>
|
||||
<#list groups as group>
|
||||
<#assign helper = delegator.getGroupHelperName(group)?if_exists/>
|
||||
<#if (helper?has_content)>
|
||||
<#assign dataSourceInfo = Static["org.ofbiz.entity.connection.DBCPConnectionFactory"].getDataSourceInfo(helper)?if_exists/>
|
||||
<#if (dataSourceInfo?has_content)>
|
||||
<tr>
|
||||
<td>${helper}</td>
|
||||
<td>${dataSourceInfo.poolNumActive?if_exists}</td>
|
||||
<td>${dataSourceInfo.poolNumIdle?if_exists}</td>
|
||||
<td>${dataSourceInfo.poolNumTotal?if_exists}</td>
|
||||
<td>${dataSourceInfo.poolMaxActive?if_exists}</td>
|
||||
<td>${dataSourceInfo.poolMaxIdle?if_exists}</td>
|
||||
<td>${dataSourceInfo.poolMinIdle?if_exists}</td>
|
||||
<td>${dataSourceInfo.poolMinEvictableIdleTimeMillis?if_exists}</td>
|
||||
<td>${dataSourceInfo.poolMaxWait?if_exists}</td>
|
||||
</tr>
|
||||
</#if>
|
||||
</#if>
|
||||
</#list>
|
||||
</#if>
|
||||
</table>
|
||||
Reference in New Issue
Block a user